1
#aptitude install bridge-utils
1
#brctl addbr br0
1
#ip addr show
1
#brctl addif br0 eth0 eth1
The equivalent configuration in /etc/network/interfaces
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo br0 iface lo inet loopback # Set up interfaces manually, avoiding conflicts with, e.g., network manager iface eth0 inet manual iface eth1 inet manual # Bridge setup iface br0 inet dhcp bridge_ports eth0 eth1
1
#ifup br0
It is possible to set a static IP for a bridge in /etc/network/interfaces
1 2 3 4 5 6
iface br0 inet static bridge_ports eth0 eth1 address 192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0 gateway 192.168.1.1
Bridge configuration variables are in
/etc/sysctl.conf
/etc/sysctl.d/bridge_local.conf
procps init script will loading the configurations. For newer Debian releases, procps needs to be started in /etc/rc.local
1 2
# Load kernel variables from /etc/sysctl.d /etc/init.d/procps restart
Setup link layer filtering rules
Need package ebtables
For supporting link aggregation (LACP), ifenslave is the required package.
references:
https://wiki.debian.org/BridgeNetworkConnections
http://wiki.libvirt.org/page/Networking
https://help.ubuntu.com/community/NetworkConnectionBridge
https://help.ubuntu.com/community/Ntop
No comments:
Post a Comment