Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP Server to assign static IP addresses for two NICs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The_Bell
Apprentice
Apprentice


Joined: 01 Jul 2002
Posts: 157

PostPosted: Thu Sep 11, 2003 1:59 am    Post subject: DHCP Server to assign static IP addresses for two NICs Reply with quote

I've got a server running a DHCP server where other machines connecto to get access to the internet.

For two of the computers I want to assign static IP addresses, I have added the code to do this using the hostname and MAC NIC of the machines I want to connect.

But one of those computers has two NICs connected to the server, and I want the DHCP server to assign one IP for one of the NICs and another for the other NIC. But I cannot put two host HOSTNAME directives separately because when the server parses the second one it tells me that hostname HOSTNAME already exists.

Anyone know how could I handle this?

Thanks.
_________________
Live long and prosper
Back to top
View user's profile Send private message
fbleagh
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2002
Posts: 98

PostPosted: Thu Sep 11, 2003 2:17 am    Post subject: Reply with quote

dns would require each ip to have a different name associated.

so your gonna have hostname and hostname1

-- some adapter channeling might be possible , but im not sure
Back to top
View user's profile Send private message
fbleagh
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2002
Posts: 98

PostPosted: Thu Sep 11, 2003 2:48 am    Post subject: Reply with quote

there is another thing u can do but its tricky

Bonding of nics -- 1 ip address - 2 nics

check out /usr/src/linux/Documentation/networking/bonding.txt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum