CentOS 5.4上雙網路卡(多網路卡)繫結
在CentOS上做雙網路卡繫結:
1.確定網路卡和配置檔案
修改配置檔案:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
#廣播域
BROADCAST=10.10.10.255
#網路卡實體地址
IPADDR=10.10.10.221
#子網掩碼
NETMASK=255.255.255.0
NETWORK=10.10.10.0
ONBOOT=yes
#閘道器地址
GATEWAY=10.10.10.1
TYPE=Ethernet
2. 在模組檔案中新增如下標紅的內容:
vi /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 usb-storage
alias bond0 bonding
options bond0 miimon=100 mode=0
3.在啟動檔案中加入如下標紅內容:
cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script. will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style. init stuff.
touch /var/lock/subsys/local
ifenslave bond0 eth0 eth1
4.重啟網路服務
/etc/init.d/network restart
Shutting down interface bond0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: [ OK ]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23141985/viewspace-701726/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux 網路卡繫結Linux
- Linux網路卡繫結Linux
- Oracle 11gR2 RAC 單網路卡轉雙網路卡繫結配置Oracle
- 深度分析Linux下雙網路卡繫結七種模式 多網路卡的7種bond模式原理Linux模式
- 剖析網路卡繫結模式模式
- Linux(09):網路卡繫結Linux
- Linux雙網路卡繫結單個IP之(team)Linux
- Linux 雙網路卡雙IP配置Linux
- centos 7.4 新增新網路卡CentOS
- 雲主機新增網路卡配置多網路卡策略路由路由
- 基於nodejs的阿里雲DDNS服務,支援多網路卡繫結NodeJS阿里DNS
- CentOS 8 修改網路卡名稱CentOS
- OpenHarmony雙網路卡配置例項
- 多網路卡路由出口配置路由
- CentOS6.x實現單網路卡雙IP的方法CentOS
- 多網路卡 配置多閘道器
- CentOS 6.X怎麼更改網路卡名稱?CentOS 6.X更改網路卡名稱的方法CentOS
- 如何在centos上配置802.1Q VLAN標記,linux單網路卡多vlan多網段Ip配置案例CentOSLinux
- centos6 修改網路卡名指令碼CentOS指令碼
- Centos將網路卡放到橋接組中CentOS橋接
- 請教硬改蝸牛星際c主機板,單網路卡改雙網路卡
- 千兆網路卡與萬兆網路卡的區別在哪?
- 虛擬網路卡介面VETH(Virtual Ethernet )建立使用和繫結關係
- Linux系統自定義網路卡並更改網路卡介面Linux
- 【Linux伺服器雙IP配置】如何實現不同IP的雙網路卡同時上網?Linux伺服器
- 雙網路卡環境下如何內網外網同時用內網
- VMwareNAT網路卡配置
- Windows 一個網路卡配多個IPWindows
- Linux系統新增自定義網路卡並更改網路卡介面Linux
- NB物聯網路卡與物聯網路卡的區別
- 【DB寶51】CentOS7修改網路卡名稱CentOS
- 什麼是智慧網路卡?智慧網路卡的作用是什麼?
- 三大運營商網際網路卡套餐大全 網際網路卡套餐有哪些
- linux下一個網路卡配置多個IPLinux
- 網路卡-國家碼
- 實戰網路卡bond
- 有線網路卡與無線網路卡有什麼不同之處?
- 更改 RHEL7 或者 CentOS 7 的網路卡名稱CentOS
- centos7的網路卡名修改為eth0CentOS