LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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: Disabled
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration