Вы находитесь на странице: 1из 2

--------------IP bONDING--------------

BONDING: Bonding is creation of a single bonded interface by combining 2 or more


ethernet interfaces. This helps in high availability and performance improvement.

NIC : A network interface controller (NIC, also known as a network interface card,
network adapter, LAN adapter, and by similar terms) is a computer hardware
component that connects a computer to a computer network

Modify eth0, eth1 configuration as shown below. Comment out, or remove the ip
address, netmask, gateway and hardware address from each one of these files, since
settings should only come from the ifcfg-bond0 file above.

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
MASTER=bond0
SLAVE=yes
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
#BROADCAST=192.168.1.255 IP address details are should be commented as it is
configured in bond0 section
#IPADDR=192.168.1.104
#NETMASK=255.255.255.0
#NETWORK=192.168.1.0

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth1"
BOOTPROTO="none"
MASTER=bond0
SLAVE=yes
NM_CONTROLLED="no"
ONBOOT=yes
TYPE="Ethernet"
#BROADCAST=192.168.1.255 IP address details are should be commented as it is
configured in bond0 section
#IPADDR=192.168.1.104
#NETMASK=255.255.255.0
#NETWORK=192.168.1.0

vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE="bond0"
BOOTPROTO="none"
NM_CONTROLLED="no"
ONBOOT=yes
IPADDR=192.168.1.104
NETMASK=255.255.255.0
GATEWAY=192.168.1.0
BONDING_OPTS="mode=0 miimon=100" [ mode=0 means it will work as a round robin
fashion miimon=100 after how many mili sec should it monitor the particular NIC
whether it is up or down and bring up ask the
other interfacess to send the traffic

mode=0 round robin mode= active-backup

When we create the bond0 what should be the attribute Bonding is the module which
is the loaded in a particular attributes whaether it has to work round robin
or active backup mode

cat /proc/net/bonding/bond0

BOOTPROTO=static and dhcp

gateway
In computer networking, a gateway is a node (a router) on a TCP/IP network that
serves as an access point to another network. A default gateway is the node on the
computer network that the network software uses when an IP address does not match
any other routes in the routing table.

subnet
A subnetwork, or subnet, is a logical, visible subdivision of an IP network. The
practice of dividing a network into two or more networks is called subnetting.
Computers that belong to a subnet are addressed with a common, identical, most-
significant bit-group in their IP address.

From 10.0.0.0 to 10.255.255.255. From 172.16.0.0 to 172.31.255.255. From


192.168.0.0 to 192.168.255.255

Вам также может понравиться