[CentOS] After a long break, one more try at bond/bridge nics
Digimer
linux at alteeve.com
Sat Jan 28 01:03:33 UTC 2012
One thing at a time, let's get the bond working, then come back and add
the bridge.
They should look something like this;
# Back-Channel Network - Link 1
HWADDR="00:E0:81:C7:EC:49"
DEVICE="eth0"
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond0"
SLAVE="yes"
and
# Back-Channel Network - Link 2
HWADDR="00:1B:21:9D:59:FC"
DEVICE="eth3"
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="none"
MASTER="bond0"
SLAVE="yes"
Then the bond config should look like this:
# Back-Channel Network - Bond
DEVICE="bond0"
BOOTPROTO="static"
NM_CONTROLLED="no"
ONBOOT="yes"
BONDING_OPTS="mode=1 miimon=100 use_carrier=1 updelay=120000 downdelay=0
primary=eth0"
IPADDR="10.20.0.1"
NETMASK="255.255.0.0"
Now try to restart the network and see if the bond and it's interfaces
come up. If so, then we'll come back to the bridge. One thing I can say
right now though is that the name of the bridge has to sort *after* the
bond interfaces. For this reason, I always recommend 'vbrX' for bridge
names.
On 01/27/2012 07:32 PM, Bob Hoffman wrote:
> well, I get no errors on network restart, but all that shows starting up
> is the loopback.
> ifconfig shows br0 with all settings right.
>
> here is what I have changed, still cannot access outside world with the
> virtual host machine. I am sure it is a resolution thing, but the
> network restart does not mention the bridge.
> No copy paste as using an ipmi card, so all hand typed here, so the
> capitalization is not correct in this post.
>
> Since this is a virtual host only, I did not do 'bind' and am just using
> google dns servers until I set up my own for resolution.
>
>
> netstat -rn shows two Br0
> 1 has the destination ip and genamsk, the other has the gateway
>
> /etc/hosts
>
> xx.xx.xx.xx main.xxx.com main
> 127.0.0.1 localhost.locadomain localhost
> ::1 main.xxx.com main localhost6.localdomain6 localhost6
>
>
> /etc/host.conf
> order hosts,bind
>
> /etc/resolv.conf
> search main.xxx.com
> nameserver=8.8.8.8
> nameserver=8.8.4.4
>
> /etc/sysconfig/iptables
> (this is the basic install, nothing was changed by me)
> (copied by hand, did not type capital letters)
>
> :input accept [0:0]
> :forward accept [0:0]
> :output accept [0:0]
> -A input -m --state established,related -j accept
> -a input -p icmp -j accept
> -a input -i lo -j accept
> -a input -m state --state NEW -m tcp -p tcp --dport 22 -j accept
> -i forward -m physdev --physdev-is-bridged -j accept
> -a imput -j reject --reject-with icmp-host-prohibited
> commit
>
>
> /etc/sysconfig/network
> NETOWRKING=yes
> HOSTNAME=main.xxx.com
>
> /etc//modprobe.d/bonding.conf
> alias bond0 bonding
>
>
> /etc/sysconfig/network-scripts/br0
> (this file is where I typed in the ip of my machine.)
>
> (normal stuff)
> Device=br0
> type=BRIDGE
> nootproto=static
> ipaddr, net, broadcast, netmask, etc.. as should be
> nozeroconf=yes
> onboot yes
> defroute yes
>
>
> bond0
>
> device bond0
> nm controlled no
> bootproto no
> beridge br0
> bonding opts, etc..
>
> eths are all master bond0 slave yes, nm controlled no.
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
--
Digimer
E-Mail: digimer at alteeve.com
Papers and Projects: https://alteeve.com
More information about the CentOS
mailing list