LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-25-2004, 10:43 AM   #1
babzog
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Multiple addresses on one NIC via DHCP - possible?


Hello,

Client server is a RH box.

Is it possible to configure one NIC to obtain more than 1 IP from a DHCP server? I'd like to configure:

eth0
eth0:0
eth0:1

to all have IPs from the same subnet, assigned from the same DHCP server, ie:

eth0 -> 10.0.0.1
eth0:0 -> 10.0.0.2
eth0:1 -> 10.0.0.3

Tried using the dhcp-client identifier in the dhcpd.conf, ala

host server {
dhcp-client-identifier "server";
fixed-address 10.0.0.1;
}
host server2 {
dhcp-client-identifier "server2";
fixed-address 10.0.0.2;
}
host server3 {
dhcp-client-identifier "server3";
fixed-address 10.0.0.3;
}

Then calling, on the client:

dhcpcd -I server eth0
dhcpcd -I server2 eth0:0
dhcpcd -I server3 eth0:1

It seems like it's trying to read the /etc/sysconfig/network-scripts/ifcfg-eth0:? files, as it complains about a missing device in ifcfg-eth0:0.

If I try using the MAC address in the server config, I only get one IP and the usual ifcfg-eth0:0 missing dev complaint.

If I mod those ifcfg-* files back to a static config, all works properly.

Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 05:10 AM
multiple ip addresses on 1 nic? houler Linux - Networking 4 04-26-2005 03:53 PM
Binding multiple IP addresses to a nic card Natalie Linux - Networking 9 08-12-2003 08:27 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM
Multiple IP addresses on one NIC hrr Linux - Networking 2 03-07-2003 12:04 PM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration