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!
|