Hello Grep, Try 'route -en' & you'll notice that a route
for the net 'one u used below' will be pointing at eth0
this was a -large- idea change around 2.1.100+/- . This
is assuming net-tools-1.49 .
Another way is to get Alexey's iproute tools @ :
ftp://ftp.inr.ac.ru/ip-routing/iproute2-current.tar.gz
Also read the README, for any other needed materials .
ftp://ftp.inr.ac.ru/ip-routing/README.iproute2+tc
Hth
On Mon, 18 Jan 1999, Greg Wickham wrote:
> Hi All,
>
> I hope this isn't something I've got wrong again, but I've been
> comparing interface aliases between 2.0.32 and 2.2.0-pre7 and
> aliased interfaces don't appear in /proc/net/dev in 2.2.0-pre7.
>
> Because of this (I believe) 'ifconfig' doesn't report aliased
> interfaces as being active:
>
> ie:
>
> # ifconfig eth0:1 192.168.1.1 up
> # ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1): 56 data bytes
> 64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.2 ms
> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.1 ms
> 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.1 ms
> ....
> # ifconfig
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:3924 Metric:1
> RX packets:64 errors:0 dropped:0 overruns:0 frame:0
> TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
>
> eth0 Link encap:Ethernet HWaddr 00:80:AD:B6:5D:E8
> inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:7569 errors:0 dropped:0 overruns:0 frame:0
> TX packets:7710 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> Interrupt:11 Base address:0x6500
> # cat /proc/net/dev
> Inter-| Receive | Transmit
> face |bytes packets errs drop fifo frame compressed multicast|bytes packets
>errs drop fifo colls carrier compressed
> lo: 6538 70 0 0 0 0 0 0 6538 70
> 0 0 0 0 0 0
> eth0: 719869 7740 0 0 0 0 0 63 1086253 7784
> 0 0 0 0 0 0
> #
>
> I don't know of any other way to determine if an interface/ip
> address pair is active.
>
> -Greg
>
> ------------------------------------------------------------------
> wheNufiNdu'RselFindAngeRwheNu'rThreAtenEdbyAstrAngeRwheNitlOoksLik
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
, JimL
+-----------------------------------------------------------------------+
| James W. Laferriere - Network Engineer - [EMAIL PROTECTED] |
| System Techniques - 25416 - 22nd S. - Des-Moines, WA 98198 |
| Give me VMS -or- Give me Linux -but- only on AXP |
+-----------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]