Re: Ip Aliasing the Debian Way...
On Wed, 17 Jan 2001, Ethan Benson wrote:
>
> just add something like this to /etc/network/interfaces:
>
> iface eth0:0 inet static
> address 192.168.0.1
> netmask 255.255.255.0
> network 192.168.0.0
> broadcast 192.168.0.255
> gateway 192.168.0.10
>
> then run either /etc/init.d/networking restart or ifup eth0:0
>
Hm. This doesn't work for me (latest potato i386). Here's the stanza I
add to /etc/network/interfaces (all values given to me by an admin):
iface eth0:0 inet static
address the.new.ip.adr
netmask 255.255.255.192
gateway the.new.ip.gw
broadcast the.new.ip.255
After running /etc/init.d/networking restart, I get this from ifconfig:
willy@trs80:~$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:5A:9C:8B:BF
inet addr:10.0.0.102 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:279 errors:0 dropped:0 overruns:0 frame:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd000
eth0:0 Link encap:Ethernet HWaddr 00:10:5A:9C:8B:BF
inet addr:the.new.ip.adr Bcast:the.new.ip.255
Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xd000
Note that the :0 alias doesn't have lines beginning with "RX packets" or
"TX packets". I can't ping the.new.ip.adr either, from anywhere.
I recompiled the kernel to turn on IP_ALIAS support. Is there another
feature I need to turn on, that I perhaps missed? Is the feature
limited to certain hardware? Is it limited to certain subnet masks?
It's like magic, this *just* came up out of the blue at work! :)
Please cc me, so I can get the email at work, where I need it :)
=wl
Reply to: