Linux下設定網路卡繫結 (final)
eth0 及eth2 繫結為 bond0
eth1 及eth3 繫結為 bond1
[root@wsjrac03 network-scripts]# cp ifcfg-eth0 ifcfg-bond0
[root@wsjrac03 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
IPADDR=10.109.196.155
NETMASK=255.255.255.0
NETWORK=10.109.196.0
BROADCAST=10.109.196.255
GATEWAY=10.109.196.1
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
[root@wsjrac03 network-scripts]# cp ifcfg-eth1 ifcfg-bond1
[root@wsjrac03 network-scripts]# cat ifcfg-bond1
DEVICE=bond1
BOOTPROTO=none
IPADDR=10.1.1.155
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@wsjrac03 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=A4:BA:DB:35:1B:AA
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
USERCTL=no
slave=yes
[root@wsjrac03 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=A4:BA:DB:35:1B:AC
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond1
slave=yes
[root@wsjrac03 network-scripts]# cat ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
HWADDR=A4:BA:DB:35:1B:AE
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
USERCTL=no
slave=yes
[root@wsjrac03 network-scripts]# cat ifcfg-eth3
DEVICE=eth3
BOOTPROTO=none
HWADDR=A4:BA:DB:35:1B:B0
ONBOOT=yes
TYPE=Ethernet
MASTER=bond1
USERCTL=no
slave=yes
[root@wsjrac03 etc]# cat modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=1 primary=eth0
alias bond1 bonding
options bond1 miimon=100 mode=1 primary=eth1
[root@wsjrac03 etc]# vi /etc/rc.local
touch /var/lock/subsys/local
ifenslave bond0 eth0 eth2
ifenslave bond1 eth1 eth3
重新啟動後檢視 :
下面bond0對應線只有一個接了網線,所以狀態是一個up, 一個down .
[root@wsjrac01 oracle]# more /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: a4:ba:db:34:8e:70
Slave Interface: eth2
MII Status: down
Link Failure Count: 0
Permanent HW addr: a4:ba:db:34:8e:74
下面心跳線都接了網線,所以狀態都是UP
[root@wsjrac01 oracle]# more /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth3
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Link Failure Count: 1
Permanent HW addr: a4:ba:db:34:8e:72
Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: a4:ba:db:34:8e:76
[root@wsjrac01 oracle]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-700060/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux網路卡繫結Linux
- linux 網路卡繫結Linux
- Linux(09):網路卡繫結Linux
- linux雙網路卡繫結Linux
- Linux 繫結雙網路卡Linux
- Linux 雙網路卡繫結Linux
- linux rac 網路卡繫結Linux
- Linux下繫結網路卡的操作記錄Linux
- Linux下雙網路卡繫結bond0Linux
- 多塊網路卡繫結IP在linux下Linux
- liunx下雙網路卡繫結
- 【LINUX】Linux網路卡繫結探析Linux
- linux6.5 網路卡繫結Linux
- linux redhat 雙網路卡繫結LinuxRedhat
- Linux 雙網路卡繫結實踐Linux
- linux6.5 雙網路卡繫結Linux
- Linux 雙網路卡繫結技術Linux
- Redhat Linux網路卡配置與繫結RedhatLinux
- RedHat Linux 5 雙網路卡繫結RedhatLinux
- Solaris下網路卡繫結多個IP
- Liunx 網路卡繫結
- 雙網路卡繫結
- Linux6.3雙網路卡繫結、刪除及多閘道器設定Linux
- Linux下雙網路卡繫結bond配置例項詳解Linux
- Redhat Linux網路卡配置與繫結(zt)RedhatLinux
- 剖析網路卡繫結模式模式
- Linux單網路卡繫結多IP與多網路卡共用單IPLinux
- Linux下多網路卡多網段訪問 --- 網路卡及Gateway, 路由設定(Linux OS)LinuxGateway路由
- SUSE linux雙網路卡繫結一個IPLinux
- Redhat linux雙網路卡繫結一個IPRedhatLinux
- Linux網路卡繫結實現頻寬翻倍Linux
- Windows下單網路卡繫結多個IP地址Windows
- CentOS 5.4上雙網路卡(多網路卡)繫結CentOS
- [Linux] Linux bond 網路卡繫結配置教程(轉載)Linux
- 深度分析Linux下雙網路卡繫結七種模式 多網路卡的7種bond模式原理Linux模式
- Oracle 10g RAC 修改心跳為繫結網路卡(設定冗餘)Oracle 10g
- Oracle RAC 與 網路卡繫結Oracle
- redhat 6.3 雙網路卡繫結Redhat