[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting up virtual IPs 3.0 woody (fixed by 2.4 kernel)



s>  This is my first post to the list and you guessed it, I have a
s>  question.

s>  I have debian 3.0 "woody" installed and working but I cannot get
s>  virtual IPs setup.

s>  uname -a gives

s>  Linux adebbox 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686 unknown
 
s>  I have tried adding the following to /etc/network/interfaces

s> # The first network card - this entry was created during the Debian installation
s> # (network, broadcast and gateway are optional)
s> auto eth0
s> iface eth0 inet static
s>         address 172.25.199.112
s>         netmask 255.255.255.0
s>         network 172.25.199.0
s>         broadcast 172.25.199.255
s>         gateway 172.25.199.144

s> auto eth0:1
s> iface eth0:1 inet static
s>         address 172.25.199.122
s>         netmask 255.255.255.0
s>         network 172.25.199.0
s>         broadcast 172.25.199.255
s>         gateway 172.25.199.144


s>  As well as trying it from the command line:

s> ifconfig eth0:1 172.25.199.122 netmask 255.255.255.0 broadcast 172.25.199.255

s>   on both occasions I get errors like:

s> SIOCSIFADDR: No such device
s> SIOCSIFFLAGS: No such device
s> SIOCSIFNETMASK: No such device
s> SIOCSIFBRDADDR: No such device
s> SIOCSIFFLAGS: No such device

s>  I have tried google and the debian lists archive and I see answers
s>  along the lines of

s>  recompile the kernel with CONFIG_IP_ALIAS=y

s>  or
 
s>  modprobe ip_alias

 
s>  Can anyone confirm that I need to re-compile the kernel in order to get
s>  it working or how I can get hold of the ip_alias module?

s>  I tried modprobe ip_alias
s>  which gives:
s>  modprobe: Can't locate module ip_alias


ok - it looks like since I was using a 2.2 kernel that the virtual ip
stuff wasn't compiled in - so I have switched to a 2.4 kernel and all
is sweet :)

uname -r
2.4.18-686

I am probably too lazy but typing apt-get -s install kernel-image gives
some idea of which pre-made kernel to use..

hopefully this will be of use to others with similar prob..

Sil



Reply to: