Mailing List Archive

Support open source code!


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

Re: Adding interfaces



On Mon, 4 Sep 2000, Darren Cook wrote:

> I've been adding a second IP address to my Linux (Debian) test server.
> So to /etc/networks/interfaces I duplicated the existing entry, then
> changed "eth0" to "eth0:0" and "eth0:1" [1]. I did "ifup -a", and
> ssh,ftp, etc. to either address now work, but I've not tried rebooting
> yet.
> 
> Then I looked at two other machines and saw the first entry was left as
> "eth0", and the 2nd address was called "eth0:0", 3rd was "eth0:1". Does
> this matter? And should I have changed anything else or is this really
> all there is to it?

no, your main interface stays eth0, your secondary is eth0:0, your third
is eth0:1.

Unless it's Solaris, in which case eth0:0 isn't valid, so use hme0:1
(solaris doesn't like :0... starts at :1.  at least it does in 2.6.  But
hey, this is tlug, so it's irrelevant :) )

> 
> Darren
> 
> 
> [1]: 
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> 
> # The loopback interface
> iface lo inet loopback
> 
> # The first network card - this entry was created during the Debian
> installation
> # (network, broadcast and gateway are optional)
> iface eth0:0 inet static
>         address 211.123.38.194
>         netmask 255.255.255.240
>         network 211.123.38.192
>         broadcast 211.123.38.207
>         gateway 211.123.38.193
> 
> #Another interface on eth0
> iface eth0:1 inet static
>         address 211.123.38.197
>         netmask 255.255.255.240
>         network 211.123.38.192
>         broadcast 211.123.38.207
>         gateway 211.123.38.193
> 
> -----------------------------------------------------------------------
> Special TLUG/LSWG/Project BLUE/YLUG Event:
> Jon "Maddog" Hall in Japan: September 5 (Tue) 19:00        IBM Japan HQ
> Next Technical Meeting: September 9 (Sat) 13:30  Place: LinuxProbe Hall
> Next Nomikai Meeting: October (probably Oct 18 (Fri) 19:00)  Place: TBD
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan
> 
> 
> 

--------------------------
Scott M. Stone, CCNA <sstone@example.com>
UNIX Systems and Network Engineer
Taos - The SysAdmin Company 


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links