chad
12-10-2004 23:40:43
I've always used the /sbin/ifconfig command to list the configuration of my network interfaces. Recently I've upgraded a couple of RedHat 7.3 servers to SuSE 9.1 Pro. There are a couple virtual IP addresses (aliases) bound on this box and when I use the /sbin/ifconfig command it only shows eth0 and the "primary" address.
On RedHat it would show both eth0 and eth0:1 and the virtual IP bound to each. Now with the "/sbin/ip addr" command on the SuSE box I can see the virtual IPs.
So now the questions. What command does eveybody use, "ipconfig" or "ip"? Are there any other distros that exhibit this behavior?
theword:~ # /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8B:C5:D2:E0
inet addr:1.1.1.1 Bcast:1.1.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:8bff:fec5:d2e0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79100820 errors:0 dropped:4 overruns:4 frame:0
TX packets:73860649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3606724465 (3439.6 Mb) TX bytes:3651299255 (3482.1 Mb)
On RedHat it would show both eth0 and eth0:1 and the virtual IP bound to each. Now with the "/sbin/ip addr" command on the SuSE box I can see the virtual IPs.
theword:~ # /sbin/ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:8b:c5:d2:e0 brd ff:ff:ff:ff:ff:ff
inet 1.1.1.1/16 brd 1.1.255.255 scope global eth0
inet 1.1.1.2/16 brd 1.1.255.255 scope global secondary eth0
inet6 fe80::250:8bff:fec5:d2e0/64 scope link
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noqueue
link/sit 0.0.0.0 brd 0.0.0.0
So now the questions. What command does eveybody use, "ipconfig" or "ip"? Are there any other distros that exhibit this behavior?