How can we create multiple dummy interfaces on Linux?
17
votes
2
answers
84670
views
To Create a Fake Ethernet dummy Interface On Linux we First initialize the dummy interface driver using the below command:
**/sbin/modprobe dummy**.
Then we Assign Ethernet Interface alias To Dummy Driver we just initialized above.
But it gives the following Fatal error saying:
**FATAL: Module dummy not found.**
Also, at the path **cd /sys/devices/virtual/net#** , we can see that there are virtual interfaces present by the following names:
dummy0/ lo/ sit0/ tunl0/
**ifconfig -a**
dummy0: Link encap:Ethernet HWaddr aa:3a:a6:cd:91:2b
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo: Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:111 errors:0 dropped:0 overruns:0 frame:0
TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8303 (8.1 KiB) TX bytes:8303 (8.1 KiB)
sit0: Link encap:UNSPEC HWaddr 00-00-00-00-FF-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tunl0: Link encap:IPIP Tunnel HWaddr
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
So, the modprobe command is not able to load the kernel module.
How can we load a kernel module using **modprobe** or insmod to initialize a dummy interface driver?
Can we create multiple dummy interfaces on a single loaded module?
Asked by Kushal
(367 rep)
Jan 6, 2017, 06:09 AM
Last activity: Dec 16, 2017, 11:05 AM
Last activity: Dec 16, 2017, 11:05 AM