If your DHCP server is working correctly you should get two separate IPs. The
MAC addresses on the NICs will guarantee that (unless the MAC addresses are
the same ... or you pool only contains one IP).
If you are using RedHat look at /etc/sysconfig/network-scripts/ifcfg-eth0.
You might be inclined to make your interface IP static. Here is an example:
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
USERCTL=no
PEERDNS=no
GATEWAY=192.168.0.1
TYPE=Ethernet
To restart your interface:
ifdown eth0; ifup eth0
To restart the network:
service network restart
j.
On Mon, 23 Jun 2003 20:46:58 +0000, Eric Liu wrote
> I used systemimager to clone one server of LVS, and used that image
> to build another server, in this case two servers' NIC got the same
> ip address , although eth0 of two servers is assigned ip through
> DHCP, they still have the same ip address. How can I change the
> second server(some configuration file or what) so that eth0 will get
> another new ip address through dhcp. Thanks
>
> Eric
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-
> users@xxxxxxxxxxxxxxxxxxxxxx Send requests to lvs-users-
request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|