码迷,mamicode.com
首页 > 数据库 > 详细

Oracle_bond网卡配置

时间:2016-05-07 01:20:42      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:oracle_bond网卡配置

***************************@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网卡配置

原文地址:http://8789878.blog.51cto.com/8779878/1770866

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!