发布网友 发布时间:2022-04-08 23:14
共2个回答
懂视网 时间:2022-04-09 03:35
***************************@loyu*************************************
******************双网卡创建bond虚拟网卡实验*************************
cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << Eof
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.116.60
NETMASK=255.255.255.0
GATEWAY=172.16.116.1
DNS1=192.168.21.2
USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=eth0"
Eof
********************************************************************
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << Eof
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
USERCTL=no
MASTER=bond0
SLAVE=yes
Eof
********************************************************************
cat > /etc/sysconfig/network-scripts/ifcfg-eth1 << Eof
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
USERCTL=no
MASTER=bond0
SLAVE=yes
Eof
********************************************************************
[root@oracle-1 ~]# service NetworkManager stop
Stopping NetworkManager daemon: [OK]
********************************************************************
[root@oracle-1 ~]# service network restart
Shutting down interface bond0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Determining if ip address 192.168.21.24 is already in use for device bond0...
[ OK ]
本文出自 “流星宇” 博客,谢绝转载!
Oracle_bond网卡配置
标签:oracle_bond网卡配置
热心网友 时间:2022-04-09 00:43
sles: