I have configured 2 files in /etc/sysconfig/network-scripts below here
ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=100.100.10.1
NETWORK=100.100.10.0
NETMASK=255.255.255.0
USERCTL=no
BONDING_OPTS="mode=1 miimon=100"
ifcfg-eth0
TYPE=Ethernet
DEVICE=eth0
IPADDR=100.100.10.2
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
After booting centos 6.5 64 bit and ip anddress still blank
ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 50:B7:C3:76:8A:33
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:27 Base address:0x8000
And I should do service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Determining if ip address 100.100.10.1 is already in use for device bond0...
[ OK ]
Bringing up interface eth0: Determining if ip address 100.100.10.2 is already in use for device eth0...
ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:100.100.10.1 Bcast:100.100.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 50:B7:C3:76:8A:33
inet addr:100.100.10.2 Bcast:100.100.10.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:27 Base address:0x8000
Any ideas to get it works from booting for ifcfg-bond0 and ifcfg-eth0 without restart network again to get ip address.
Thanks.
ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=100.100.10.1
NETWORK=100.100.10.0
NETMASK=255.255.255.0
USERCTL=no
BONDING_OPTS="mode=1 miimon=100"
ifcfg-eth0
TYPE=Ethernet
DEVICE=eth0
IPADDR=100.100.10.2
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
After booting centos 6.5 64 bit and ip anddress still blank
ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 50:B7:C3:76:8A:33
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:27 Base address:0x8000
And I should do service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Determining if ip address 100.100.10.1 is already in use for device bond0...
[ OK ]
Bringing up interface eth0: Determining if ip address 100.100.10.2 is already in use for device eth0...
ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:100.100.10.1 Bcast:100.100.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 50:B7:C3:76:8A:33
inet addr:100.100.10.2 Bcast:100.100.10.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:27 Base address:0x8000
Any ideas to get it works from booting for ifcfg-bond0 and ifcfg-eth0 without restart network again to get ip address.
Thanks.