LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   OpenBSD: ping command - bad interface address (https://www.linuxquestions.org/questions/%2Absd-17/openbsd-ping-command-bad-interface-address-876480/)

igadoter 04-22-2011 05:49 AM

OpenBSD: ping command - bad interface address
 
Hi,
I have the following issue
Code:

$ ping -I urtw0 192.168.1.100
ping: bad interface address: urtw0

in the man for ``ping" it is not described a proper form for ``ifaddr", the parameter following -I option. What's wrong? Here is ``ifconfig" output
Code:

# ifconfig urtw0
urtw0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:06:4f:85:ad:3c
        priority: 4
        groups: wlan egress
        media: IEEE802.11 autoselect (DS1 mode 11g)
        status: active
        ..................................................................................................
        inet6 fe80::206:4fff:fe85:ad3c%urtw0 prefixlen 64 scopeid 0x6
        inet 192.168.1.103 netmask 0xffffff00 broadcast 192.168.1.255


scorpions84 04-22-2011 08:07 AM

Looks like the option is only for "multicast" address and seems it's not the thing you're trying to do.

kfritz 05-02-2011 03:30 PM

If you haven't figured it out already, try:
Code:

ping -I 192.168.1.103 192.168.1.100


All times are GMT -5. The time now is 03:47 AM.