When booting up the VM (Scientific Linux 6.4) in VirtualBox (4.3), I'm getting the same ip address for both network interfaces.
VirtualBox has NAT for the first network adapter, and Host-Only for the second network adapter.
VM is configued as follows:
ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NM_CONTROLLED=no
Type="Ethernet"
ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.56.107
NETMASK=255.255.255.0
NM_CONTROLLED=no
ONBOOT=yes
Type="Ethernet"
Results of ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:E8:14:8B
inet addr:192.168.56.107 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee8:148b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 08:00:27:92:0A:6D
inet addr:192.168.56.107 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe92:a6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
If I execute the following:
# ifdown eth0
# ifup eth0
Then eth0 gets the correct ip address.
eth0 Link encap:Ethernet HWaddr 08:00:27:E8:14:8B
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee8:148b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Why is it not picking up the correct ip address on boot? How do I configure it to have the correct ip for eth0?