Multiple IPs
Lawrence MacIntyre
macintyrelp at ornl.gov
Wed Jan 19 22:36:05 UTC 2005
Ben:
I'm not too good at GUI interfaces either, but here's how to edit the
config files...
Here is an example of the /etc/network/interfaces file with one address
on the eth0 card being assigned by dhcp and another assigned statically.
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address 192.168.0.1
netmask 255.255.255.0
eth0 is the primary (real) address, and eth0:0 is an alias (the one you
want to add). Modify this file, substituting your preferred address and
execute the command:
/etc/init.d/networking restart
Note that you can just use DNS aliases and keep the same ip address if
you want to. The only real exception is when you want to use SSL
certificates, as they work best when the name matches the certificate.
On Wed, 2005-01-19 at 22:01 +0000, Ben Hodgson wrote:
> Hi,
>
> How can I add multiple IPs to one physical ethernet card? I tried using the
> built-in tool in webmin (i.e to create a virtual interface) but it just
> wrecked
> all the network settings and rendered the machine network-blind.
>
> Is there a config file I can edit? (or, what config file can I edit, lol)
>
> Thanks,
>
>
> Ben Hodgson
>
> ----------------------------------------
> I am using the free version of SPAMfighter for private users.
> It has removed 6834 spam emails to date.
> Paying users do not have this message in their emails.
> Try www.SPAMfighter.com for free now!
>
--
Lawrence MacIntyre 865.574.8696 macintyrelp at ornl.gov
Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group
AKO: lawrence.macintyre at us.army.mil
SIPRNet: macintyrelp at ornl.doe.sgov.gov
More information about the ubuntu-users
mailing list