[Linux-users] 2 IP's on the same network card

James McDonald james
Tue Aug 28 04:56:55 PDT 2007


Dirk Moolman wrote:
> Just a question - how do I make a network setting, like the eth0:1 that
> I created below, permanent ? .... so that it stays when I reboot the
> server
>
>   
The trouble with that question is that it's distro centric and I only 
know redhat/centos/fedora
Anyone with Suse experience?
> -----Original Message-----
> From: linux-users-bounces at pananix.com
> [mailto:linux-users-bounces at pananix.com] On Behalf Of Dirk Moolman
> Sent: 27 August 2007 11:49 PM
> To: linux-users at linux-sxs.org
> Subject: Re: [Linux-users] 2 IP's on the same network card
>
> Ok, I found it - and it is actually so simple:
>
> http://learnlinux.tsf.org.za/courses/build/net-admin/ch01s10.html 
>
> To plumb your device, you may run the command:
>
> ifconfig eth0 192.168.0.1 netmask 255.255.255.0
> ifconfig eth0:1 172.16.5.1 netmask 255.255.255.0
>
>
> "These commands would plumb the interface. Notice that the eth0:1 gives
> the interface the second IP address. Using any number in place of the
> '1' would also work."
>
>  
>
>
>   

The t



More information about the Linux-users mailing list