ifconfig eth? 0.0.0.0
ifconfig eth? down
This way the interface is -down- as far as all systems in the
network are concerned . Tia, JimL
+-----------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network Engineer | 25416 22nd So | Give me Linux |
| babydr@baby-dragons.com | DesMoines WA 98198 | only on AXP |
+-----------------------------------------------------------------+
Hello All, Here you go
/sbin/ifconfig eth1 > alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
BROADCAST MULTICAST 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:100
Interrupt:9 Base address:0x7000
/sbin/ifconfig eth1 192.168.0.51
/sbin/ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
/sbin/ifconfig eth1 0.0.0.0
/sbin/ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
/sbin/ifconfig eth1:?rap 10.10.10.10
/sbin/ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
eth1:?rap Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
inet addr:10.10.10.10 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:9 Base address:0x7000
/sbin/ifconfig eth1:?rap down
/sbin/ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
As you can see from the below eth1 is still receiving packets
And if this is not considered UP I do not know what is .
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
OK, After doing a DOWN will wait a few minutes again & see if the
interface receives any packets .
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
Wow, that one works . Ok Now I'm going to try just the
'ifconfig eth1 down' , without using the 'ifconfig eth1 0.0.0.0' .
ifconfig eth1 192.168.0.51
ifconfig eth1 >> alexey.tests
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
Just to prove that we are recieving traffic on this interface .
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
ifconfig eth1 down , ...
ifconfig eth1 , ...
eth1 Link encap:Ethernet HWaddr 00:80:5F:D4:25:1F
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x7000
ping 192.168.0.51
PING 192.168.0.51 (192.168.0.51): 56 data bytes
64 bytes from 192.168.0.51: icmp_seq=0 ttl=255 time=0.4 ms
64 bytes from 192.168.0.51: icmp_seq=1 ttl=255 time=0.2 ms
64 bytes from 192.168.0.51: icmp_seq=2 ttl=255 time=0.2 ms
--- 192.168.0.51 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.2/0.2/0.4 ms
traceroute 192.168.0.51
traceroute to 192.168.0.51 (192.168.0.51), 30 hops max, 40 byte packets
1 cp1500r1.baby-dragons.com (192.168.0.51) 0.603 ms 0.219 ms 0.182 ms
Hmmm, somebody is still responding to traffic from this host .
OK, lets try it from another host .
gated:/usr/src/linux# ping 192.168.0.51
PING 192.168.0.51 (192.168.0.51): 56 data bytes
64 bytes from 192.168.0.51: icmp_seq=0 ttl=255 time=1.0 ms
64 bytes from 192.168.0.51: icmp_seq=1 ttl=255 time=0.3 ms
64 bytes from 192.168.0.51: icmp_seq=2 ttl=255 time=0.3 ms
64 bytes from 192.168.0.51: icmp_seq=3 ttl=255 time=0.3 ms
--- 192.168.0.51 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.4/1.0 ms
Ouch we have a problem here . !!!
Now if we set eth1 to 0.0.0.0 then eth1 is again truly down .
/sbin/ifconfig eth1 0.0.0.0
gated:/usr/src/linux# ping -c3 192.168.0.51
PING 192.168.0.51 (192.168.0.51): 56 data bytes
--- 192.168.0.51 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/