This is a discussion on Several IPs for one Host / Box / PC within the Linux Networking forums, part of the Linux Forums category; Hello, I'm running debian/testing under kernel 2.6.5 and I would like to setup my box so ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I'm running debian/testing under kernel 2.6.5 and I would like to setup my box so that it has two ip addresses. I have one ethernet card installed. The ip of the box is 192.168.1.4. The module I'm loading eth0 on is b44. I added another ip to the hosts file. Now I guess I have to create another alias for the module b44 - which I would name eth1 - and load this with ifconfig? Can somebody briefly explain the steps I have to walk through? |
|
|||
|
Fritz Bayer <fritz-bayer@web.de> wrote:
> I have one ethernet card installed. The ip of the box is 192.168.1.4. > The module I'm loading eth0 on is b44. > I added another ip to the hosts file. Now I guess I have to create You can have "aliases" on the same Network Card. Each alias is eth0:X where 'X' is a number from 1 to 255. Just use ifconfig eth0:1 your.second.ip.address And that's it. Davide -- | Just go with the flow control, roll with the crunches, and, when you | get a prompt, type like hell. | | |
|
|||
|
Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<2kvh1oF6avmqU2@uni-berlin.de>...
> Fritz Bayer <fritz-bayer@web.de> wrote: > > I have one ethernet card installed. The ip of the box is 192.168.1.4. > > The module I'm loading eth0 on is b44. > > I added another ip to the hosts file. Now I guess I have to create > > You can have "aliases" on the same Network Card. Each alias > is eth0:X where 'X' is a number from 1 to 255. > Just use ifconfig eth0:1 your.second.ip.address > > And that's it. > > Davide Thanks Davide! This is what i was looking for! |
|
|||
|
On 6 Jul 2004, Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
> Fritz Bayer <fritz-bayer@web.de> wrote: >> I have one ethernet card installed. The ip of the box is 192.168.1.4. >> The module I'm loading eth0 on is b44. >> I added another ip to the hosts file. Now I guess I have to create > > You can have "aliases" on the same Network Card. Each alias > is eth0:X where 'X' is a number from 1 to 255. > Just use ifconfig eth0:1 your.second.ip.address Actually 'X' starts at zero, but it does not matter if you skip numbers. -- David Efflandt - All spam ignored http://www.de-srv.com/ |