SuSe Linux virtual IP config

Matthew Hawkins matthew at topic.com.au
Tue Oct 9 17:34:31 EST 2001


On Tue, 09 Oct 2001, Kim Holburn wrote:
> If you're not familiar with suse how about the actual ifconfig line
> that gets executed.  Does it use eth0 or eth0:0 for virtual IP
> addresses?

Hi Kim,

The first aliased interface for eth0 is eth0:0, that's definately what
you'd put on the ifconfig command line.  I think the limit is 256,
therefore you get :0 to :254 (and the real interface)

ifconfig eth0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 up
ifconfig eth0:0 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 up
ifconfig eth0:1 10.0.0.3 netmask 255.255.255.0 broadcast 10.0.0.255 up
ifconfig eth0:2 192.168.31.254 netmask 255.255.255.0 broadcast 192.168.31.0 up
ifconfig eth1 192.168.31.1 netmask 255.255.255.0 broadcast 192.168.31.0 up

...

Cheers,

-- 
Matt




More information about the linux mailing list