Hi all,
Given the following:
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual # switch P2
iface eth1 inet manual # switch P3
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4
auto bond0.2
iface bond0.2 inet manual
vlan-raw-device bond0
auto bond0.3
iface bond0.3 inet manual
vlan-raw-device bond0
auto bond0.4
iface bond0.4 inet manual
vlan-raw-device bond0
auto vmbr0
iface vmbr0 inet static # management interface
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports bond0.2
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static # Private subnet (192.168.2.0/24)
bridge_ports bond0.3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr2 inet static # public subnet (172.16.0.0/16)
bridge_ports bond0.4
bridge_stp off
bridge_fd 0
Switch:
vlan2: P1,2-3,4-9
vlan3: P1,2-3,10-11
vlan4: P1,2-3,12-13
P1: trunk
How should P2 and P3 be configured on the switch?
1) trunk
2) General untagged
Given the following:
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual # switch P2
iface eth1 inet manual # switch P3
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 4
auto bond0.2
iface bond0.2 inet manual
vlan-raw-device bond0
auto bond0.3
iface bond0.3 inet manual
vlan-raw-device bond0
auto bond0.4
iface bond0.4 inet manual
vlan-raw-device bond0
auto vmbr0
iface vmbr0 inet static # management interface
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports bond0.2
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static # Private subnet (192.168.2.0/24)
bridge_ports bond0.3
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr2 inet static # public subnet (172.16.0.0/16)
bridge_ports bond0.4
bridge_stp off
bridge_fd 0
Switch:
vlan2: P1,2-3,4-9
vlan3: P1,2-3,10-11
vlan4: P1,2-3,12-13
P1: trunk
How should P2 and P3 be configured on the switch?
1) trunk
2) General untagged
Last edited: