[opensuse] network dummy devices
Anyone familiar with the network dummy driver? With "yast2 lan" you can create dummy interfaces and assign addresses to it but it seems there is quite a history of problems whit it. Upto OS_11.3, you had to edit /etc/modprobe.conf and add/uncomment install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy install dummy2 /sbin/modprobe -o dummy2 --ignore-install dummy ..... This way you could add quite some additional devices, and simulate a rather complex network, without real hardware. However, in 12.1 that does not work any more. Google presents a number of messages about a "-o" and dummy-nil options. Last july, big-shots like Dave Miller and Kreg K-H have shown there light over it, and signed-off some patches regarding it. Now, with 12.3 creating a dummy device with yast2 still seems not to work: I had to do a "modprobe dummy" manually and only then _one_ dummy device came up. However, i'm not able to create more than one dummy device. "modprobe dummy1 --ignore-install dummy" replies with: FATAL: Module dummy1 not found. I tried in the directory: lib/modules/3.4.47-2.38-desktop/kernel/drivers/net to hack around it, by: "# ln -s dummy.ko dummy1.ko" So, are there any other tricks to get this working in 12.x, (what was perfectly working in 11.3) Hans. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 03 Sep 2013 00:23:04 +0200 Hans Witvliet <suse@a-domani.nl> пишет:
So, are there any other tricks to get this working in 12.x, (what was perfectly working in 11.3)
linux-o0ic:~ # modprobe dummy numdummies=10 linux-o0ic:~ # ifconfig -a dummy0 Link encap:Ethernet HWaddr 26:A5:0B:B7:BE:20 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) dummy1 Link encap:Ethernet HWaddr FA:7C:A6:66:DA:A6 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) dummy2 Link encap:Ethernet HWaddr 66:1E:6B:FA:73:38 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) dummy3 Link encap:Ethernet HWaddr F6:C9:6C:60:0B:C0 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) dummy4 Link encap:Ethernet HWaddr CA:47:39:43:8F:84 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) dummy5 Link encap:Ethernet HWaddr AA:B3:11:93:8F:76 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) dummy6 Link encap:Ethernet HWaddr F6:90:F1:97:FD:AB 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) dummy7 Link encap:Ethernet HWaddr 0A:1D:47:11:C2:AB 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) dummy8 Link encap:Ethernet HWaddr F2:93:F5:B4:49:B7 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) dummy9 Link encap:Ethernet HWaddr 62:7A:AE:BE:AE:CE 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) eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3884 (3.7 Kb) TX bytes:3790 (3.7 Kb) 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:65536 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1104 (1.0 Kb) TX bytes:1104 (1.0 Kb) linux-o0ic:~ # exit Or to automate it echo "options dummy numdummies=10" > /etc/modprobe.d/dummy.conf echo dummy > /etc/modules-load.d/dummy.conf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----Original Message----- From: Andrey Borzenkov <arvidjaar@gmail.com> To: opensuse@opensuse.org Subject: Re: [opensuse] network dummy devices Date: Tue, 3 Sep 2013 07:03:42 +0400 В Tue, 03 Sep 2013 00:23:04 +0200 Hans Witvliet <suse@a-domani.nl> пишет:
So, are there any other tricks to get this working in 12.x, (what was perfectly working in 11.3)
linux-o0ic:~ # modprobe dummy numdummies=10 Or to automate it echo "options dummy numdummies=10" > /etc/modprobe.d/dummy.conf echo dummy > /etc/modules-load.d/dummy.conf -----Original Message----- [huge sigh of relief] Thanks a lot Andrey, will try asap when i'm back at the office (spent yesterday all day trying and googling on it) apparently, when you omit the "numdummies", it defaults to a single device. You certainly made my day start a lot brighter ;-) tnx, Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrey Borzenkov
-
Hans Witvliet