Messages in this thread | | | Date | Wed, 7 Jan 1998 18:58:17 +1300 | From | Chris Wedgwood <> | Subject | Re: How to use IP_ALIAS? |
| |
Date: Wed, 7 Jan 1998 11:24:40 +0800 (CST) From: <wzy@public.shenzhen.cngb.com> To: linux-kernel@vger.rutgers.edu Subject: How to use IP_ALIAS? Message-ID: <Pine.SOL.3.96.980107111440.20878A-100000@public>
Hi,all:
Yesterday I want to use the ip_alias in kernel-2.1.78, I find I cant use. I check the files list in linux/net/ipv4, there is no ip_alias.c, I remember it can be use before 2.1.67.
Who can tell me how to do ip_alias in kernel-2.1.78? Thanks.
It works.
Turn IP alaiasing ON - not a s a module. (I think this is the only option available).
It works pretty much as before....
I'm using it now: (addresses obscured to protect the names os the innocent <g>)
[root:5] caffeine:~# uname -r 2.1.78 [root:5] caffeine:~# ifconfig | sed "/\([0-9]\+\.\)/s//X./g" lo Link encap:Local Loopback inet addr:X.X.X.1 Bcast:X.X.X.0 Mask:X.X.X.0 UP LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:1193 errors:0 dropped:0 overruns:0 frame:0 TX packets:1193 errors:0 dropped:0 overruns:0 carrier:0 Collisions:0
eth0 Link encap:10Mbps Ethernet HWaddr 00:A0:24:DE:98:55 inet addr:X.X.X.28 Bcast:X.X.X.255 Mask:X.X.X.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38489 errors:0 dropped:0 overruns:0 frame:0 TX packets:1745 errors:0 dropped:0 overruns:0 carrier:0 Collisions:52 Interrupt:10 Base address:0xff80
eth0:0 Link encap:10Mbps Ethernet HWaddr 00:A0:24:DE:98:55 inet addr:X.X.X.10 Bcast:X.X.X.255 Mask:X.X.X.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Collisions:0 Interrupt:10 Base address:0xff80
I think there may be a few net-tools bugs about - but these shouldn't affect you (other than apparently delted route will still appear in the output of route).
Presumably Phillip has a fix for this already?
-Chris
| |