Networking Forums

Networking Forums > Computer Networking > Linux Networking > Several IPs for one Host / Box / PC

Reply
Thread Tools Display Modes

Several IPs for one Host / Box / PC

 
 
Fritz Bayer
Guest
Posts: n/a

 
      07-06-2004, 10:10 AM
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?
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      07-06-2004, 11:34 AM
Fritz Bayer <fritz-(E-Mail Removed)> 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.
|
|
 
Reply With Quote
 
Fritz Bayer
Guest
Posts: n/a

 
      07-07-2004, 12:50 PM
Davide Bianchi <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Fritz Bayer <fritz-(E-Mail Removed)> 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!
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      07-08-2004, 01:55 AM
On 6 Jul 2004, Davide Bianchi <(E-Mail Removed)> wrote:
> Fritz Bayer <fritz-(E-Mail Removed)> 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Host-To-Host Data Sharing via Modem Josh Converse Linux Networking 2 02-14-2007 06:48 PM
Host-to-host connection in wireless adhoc network? Tim Boneko Linux Networking 0 08-17-2005 05:28 PM
Linux<->Windows connection using USB host-to-host cable =?iso-8859-2?Q?Rados=B3aw?= Grzanka Linux Networking 0 04-10-2004 03:23 PM
Access to public host from private host through Linux router Santanu Chatterjee Linux Networking 5 11-14-2003 11:57 PM
Problems Networking Win98 host with a Win XP host Drew Windows Networking 2 10-01-2003 02:25 AM



1 2 3 4 5 6 7 8 9 10 11