modprobe -o dummy1--ignore-install dummy
The response was quite fast
FATAL: Error inserting dummy (/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko): Operation not permitted
Googling around gave me a hint to sitting the number of dummies, so I vimed the /etc/modprobe.conf and added the line
options dummy numdummies=2
Running the command again with the verbose mode (-v) showed the following
insmod /lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko numdummies=2
FATAL: Error inserting dummy (/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko): Operation not permitted
Meaning that modprobe eventually calls insmod so I tried calling it directly and it responded with the error
insmod: error inserting '/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko': -1 File exists
So to sum up calling modprobe again was as dump as possible because module already loaded, all u have to do is to go direct to insmod, unload the dummy module
rmmod dummy
Then reload it with the option numdummies
insmod /lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko numdummies=2
This would create 2 dummy interfaces shown by
ls -al /sys/class/net/
Last would be to configure your dummy interface using ifconfig
ifconfig dummy1 192.168.0.2 netmask 255.255.255.0