Question

Chris St. Pierre stpierre at NebrWesleyan.edu
Sat Mar 17 21:34:34 UTC 2007


On Sat, 17 Mar 2007, Redouane N. wrote:

> Can we have the same hostname and two difference ip address??? in one Red Hat linux box
>
>
> Exmaple
> Hostname=work
> ip address 1 = 192.168.1.1
> ip address 2 = 212.118.0.1

The easiest way to do this is with a virtual interface.  You can bring
up the second interface something like this:

ifconfig eth0:1 212.118.0.1

You may have to set broadcast, netmask, etc.  You'll also have to set
a route so that the machine knows when to use that IP.

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University
----------------------------
Never send mail to thobrux at nebrwesleyan.edu




More information about the redhat-list mailing list