Channel bonding with 2 IPs
Hello,
I have some question about channel bonding.
I have a redhat 8 server with 2 NICs. The first NIC, eth0 is use and have 2IPs on the same LAN. example :
eth0 Lien encap:Ethernet HWaddr 00:0B:CD:FE:4F:AB
inet adr:xx.xx.xx.33 Bcast:xx.xx.xx.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61657 errors:0 dropped:0 overruns:0 frame:0
TX packets:56643 errors:0 dropped:0 overruns:0 carrier:0
collisions:34 lg file transmission:100
RX bytes:21055360 (20.0 Mb) TX bytes:47338775 (45.1 Mb)
Interruption:30
eth0:1 Lien encap:Ethernet HWaddr 00:0B:CD:FE:4F:AB
inet adr:xx.xx.xx.35 Bcast:xx.xx.xx.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interruption:30
The second NIC, eth1 is not used. I want to configure a channel bonding between those two IPs and of course to keep the two IPs.
I try to define a bond0 with the command
# modprobe bond0 bonding
# ifconfig bond0 up
# ifenslave bond0 eth0 eth1
I fixed the IP and netmask with another ifconfig command. It's worked fine.
Then I try to configure the second IP. But I have never success.
I try to fixe the second IP with a command ifconfig bond0:1 xx.xx.xx.35 up
It doesn't work (no such device found)
I try the same command as before :
# modprobe bond1 bonding
# ifconfig bond1 up
# ifenslave bond 1 eth0:1 eth1:1
And it doesn't work again.
Is anyone have an idea?
dark_luder
|