Re: switch / ping -b

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mikey
Date:  
To: plug-discuss
Subject: Re: switch / ping -b
On Thursday 06 January 2005 18:56, Jeremy C. Reed wrote:
> > bmike1@3[bmike1]$ sudo ping -c 5 -I eth0 <and /dev/eth0>
> > Usage: pin......
>
> What ping is that? The ping from Linux NetKit doesn't seem to have that
> option. Although a BSD ping does have a -I.


The ping in iputils seems to have it.
Observe: (from 'man ping' options section)

-I interface address
              Set  source address to specified interface address. Argument may
              be numeric IP address or name of device. When pinging IPv6 link-
              local address this option is required.


> If your type of switch supports having an assigned IP, then you should be
> able to ping it.


well, according to 'cu -s 9600 -l /dev/ttyS2' (which accesses the Cisco
console system:

#show ip
IP State : user
IP Address : 10.10.10.5
Subnet Mask : 255.0.0.0
Default Gateway : 10.10.10.10
HTTP server : Enabled
HTTP port : 80
#

> >  2- what's wrong with the broadcast ping? I meanthe broadcast address
> >       for both eth0 and the switch are 10.255.255.255
> Maybe you are using the wrong IP and wrong broadcast address.


Here is what happens when I ping from the Cisco console system:

#ping 10.255.255.255 ****(broadcast for both switch and eth0)****
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.255.255.255, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 0/0/0 ms
#ping 10.10.10.5 ****(the switch)****
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
#ping 10.10.10.2 ****(eth0)****
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5), round-trip min/avg/max = 0/0/0 ms
#

here is what happens when I ping from a terminal window (konsole)

bmike1@3[bmike1]$ sudo ping -bc 4 10.255.255.255
WARNING: pinging broadcast address
PING 10.255.255.255 (10.255.255.255) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
--- 10.255.255.255 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3013ms
bmike1@3[bmike1]$ sudo ping -c 4 10.10.10.2
PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.
64 bytes from 10.10.10.2: icmp_seq=1 ttl=64 time=0.169 ms
64 bytes from 10.10.10.2: icmp_seq=2 ttl=64 time=0.122 ms
64 bytes from 10.10.10.2: icmp_seq=3 ttl=64 time=0.124 ms
64 bytes from 10.10.10.2: icmp_seq=4 ttl=64 time=0.123 ms
--- 10.10.10.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 0.122/0.134/0.169/0.023 ms
bmike1@3[bmike1]$ sudo ping -c 4 10.10.10.5
PING 10.10.10.5 (10.10.10.5) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
--- 10.10.10.5 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms

I am now at a loss for words.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss