Configure dual-nic bonding and bridging in RHEL6

Source: Internet
Author: User
Lab environment: VMwareWorkstation8RHEL6.2 dual NIC (Virtual Machine bonding experiment only supports mode = 1 hot standby mode) # cd/etc/sysconfig/network-scripts/# catifcfg-eth0DEVICE = "eth0" HWADDR = "00: 0C: 29: E4: DC: 43" (we recommend that you do not specify the MAC address) # NM_CON

Lab environment: VMware Workstation8

RHEL6.2

Dual-nic (the bonding experiment on virtual machines only supports mode = 1 hot standby mode)

# Cd/etc/sysconfig/network-scripts/
 
# Cat ifcfg-eth0
DEVICE = "eth0"
HWADDR = "00: 0C: 29: E4: DC: 43" (we recommend that you do not specify the MAC address)
# NM_CONTROLLED = "yes"
ONBOOT = "yes"
BOOTPROTO = none
MASTER = bond1
SLAVE = yes
USERCTL = no
 
# Cat ifcfg-eth1
DEVICE = "eth1"
HWADDR = "00: 0C: 29: E4: DC: 4D" (we recommend that you do not specify the MAC address)
# NM_CONTROLLED = "yes"
ONBOOT = "yes"
BOOTPROTO = none
MASTER = bond1
SLAVE = yes
USERCTL = no
 
# Cat ifcfg-bond1
DEVICE = bond1
# TYPE = Ethernet
BOOTPROTO = none
ONBOOT = yes
# IPADDR = 192.168.10.88
# NETMASK = 255.255.255.0
# GATEWAY = 192.168.10.2
USERCTL = no
BRIDGE = br0
BONDING_OPTS = "miimon = 100 mode = 1"
# Because RHEL6 is different from the previous one, the specified mode parameter is stored in this bonding File
 
# Cat ifcfg-br0
DEVICE = "br0"
# HWADDR = "00: 0C: 29: E4: DC: 43"
# NM_CONTROLLED = "yes"
ONBOOT = "yes"
TYPE = Bridge
BOOTPROTO = static
# MASTER = bond1
# SLAVE = yes
# USERCTL = no
IPADDR = 192.168.10.88
NETMASK = 255.255.255.0
GATEWAY = 192.168.10.2
 
# Cat/etc/modprobe. d/modprobe. conf
Alias netdev-bond1 bonding
 
Restart the system to view
# Ifconfig
Bond1 Link encap: Ethernet HWaddr 00: 0C: 29: E4: DC: 43
Inet6 addr: fe80: 20c: 29ff: fee4: dc43/64 Scope: Link
Up broadcast running master multicast mtu: 1500 Metric: 1
RX packets: 1947 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 2774 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 185500 (181.1 KiB) TX bytes: 279330 (272.7 KiB)
 
Br0 Link encap: Ethernet HWaddr 00: 0C: 29: E4: DC: 43
Inet addr: 192.168.10.88 Bcast: 192.168.10.255 Mask: 255.255.255.0
Inet6 addr: fe80: 20c: 29ff: fee4: dc43/64 Scope: Link
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets: 925 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 2708 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 78625 (76.7 KiB) TX bytes: 274754 (268.3 KiB)
 
Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: E4: DC: 43
Up broadcast running slave multicast mtu: 1500 Metric: 1
RX packets: 1039 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 2775 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 100299 (97.9 KiB) TX bytes: 280072 (273.5 KiB)
 
Eth1 Link encap: Ethernet HWaddr 00: 0C: 29: E4: DC: 43
Up broadcast running slave multicast mtu: 1500 Metric: 1
RX packets: 909 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 85267 (83.2 KiB) TX bytes: 0 (0.0 B)
 
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.