Here’s an explanation of how to configure multiple bridges.
My server has multiple NICs.
I’ve already associated eth2 with br0
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.002655e1ezzz no eth2
virbr0 8000.000000000000 yes
|
I’m going to associate eth3 with br1.
cat /etc/network/interfaces
auto eth2
iface eth2 inet manual
auto br0
iface br0 inet static
address 10.0.10.14
netmask 255.255.255.0
network 10.0.10.0
gateway 10.0.10.254
bridge_ports eth2
bridge_stp off
bridge_fd 0
bridge_maxwait 0
|
edit /etc/network/interfaces
make a bridge ( br1 ) for eht3 and associate it with eth3
24 auto eth3
25 #iface eth3 inet static
26 # address 10.0.20.14
27 # netmask 255.255.255.0
28 iface eth3 inet manual
29
30
31 auto br1
32 iface br1 inet static
33 address 10.0.20.14
34 netmask 255.255.255.0
35 network 10.0.20.0
36 gateway 10.0.20.254
37 bridge_ports eth3
38 bridge_stp off
39 bridge_fd 0
40 bridge_maxwait 0
|
restart network script
# /etc/init.d/networking restart
|
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.002655e1ezzz no eth2
br1 8000.002655e1exxx no eth3
virbr0 8000.000000000000 yes
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.