Mailing List Archive

Support open source code!


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

Adding interfaces



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?

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

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links