Re: 2.2 network questions

Jim Bourne (jbourne@affinity-systems.ab.ca)
Mon, 15 Feb 1999 00:36:52 -0700 (MST)


On Mon, 15 Feb 1999, Meelis Roos wrote:

> VI> 2) "ifconfig down" (net-tools 1.50) on an aliased interface also brings
> VI> the parent interface down. Ouch. That means if I alias interface for
> VI> testing on some machine I will have either to give it a bogus IP address
> VI> or reboot. Maybe there is some special method of bringing the aliases
> VI> down I don't know about?
>
> For me, ifconfig eth0:0 takes down all the virtual interfaces on eth0
> but eth0 itselt stays up. net-tools 1.50 here too.

Re all,

I've found aliasing works fine (Red Hat 5.2, kernel 2.2.1, net-tools-1.50).
The only thing needed under RH is to tweak
/usr/sysconfig/network-scripts/ifup-aliases to check for /proc/net/ip_alias
until linuxconf get's updated as the sysconfig scripts look for hints from
linuxconf and linuxconf has no idea about 2.2 /proc fs...

net-tools-rhcn-1.50-1 can be found (source and binary rpms) on either
http://www.affinity-systems.ab.ca/software/2.2.x-upgrades/
or on
http://developer.redhat.com/ under the Red Hat Contrib|Net

(BTW, tested with eth0:0 and it worked fine too)
cafe:bash# uname -a
Linux cafe.affinity-systems.ab.ca 2.2.1 #2 Fri Jan 29 23:10:24 MST 1999 i486
unknown
cafe:bash# uptime
12:28am up 12 days, 7:09, 3 users, load average: 0.50, 0.64, 0.67
cafe:bash# rpm -q net-tools-rhcn
net-tools-rhcn-1.50-1
cafe:bash# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:C0:A8:35:19:64
inet addr:172.16.1.1 Bcast:172.16.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:411068 errors:0 dropped:0 overruns:0 frame:0
TX packets:1062952 errors:0 dropped:0 overruns:0 carrier:0
collisions:569 txqueuelen:100
Interrupt:11 Base address:0x300

cafe:bash# ifconfig eth0:1
eth0:1 Link encap:Ethernet HWaddr 00:C0:A8:35:19:64
inet addr:172.16.1.4 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x300

cafe:bash# ifconfig eth0:2
eth0:2 Link encap:Ethernet HWaddr 00:C0:A8:35:19:64
inet addr:172.16.1.2 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x300

cafe:bash# ifconfig eth0:2 down
cafe:bash# ifconfig eth0:2
eth0:2 Link encap:Ethernet HWaddr 00:C0:A8:35:19:64
unspec addr:[NONE SET] Bcast:[NONE SET] Mask:[NONE SET]
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x300

cafe:bash# ifconfig eth0:1
eth0:1 Link encap:Ethernet HWaddr 00:C0:A8:35:19:64
inet addr:172.16.1.4 Bcast:172.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x300

Regards,
Jim

-- 
James Bourne                  | Email:  jbourne@affinity-systems.ab.ca
Affinity Systems Inc.         | WWW: http://www.affinity-systems.ab.ca
Everything Unix               | Linux:  The choice of a GNU generation
----------------------------------------------------------------------
Unix System Administration, System programming, Network Administration

- 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/