]> git.proxmox.com Git - mirror_ifupdown2.git/blob - ifupdown2/docs/examples/vlan_aware_bridges/interfaces.vlan_prune_and_access_ports
Merge 'vlan filtering bridge + vxlan + mlag + vrr' support from internal
[mirror_ifupdown2.git] / ifupdown2 / docs / examples / vlan_aware_bridges / interfaces.vlan_prune_and_access_ports
1 #
2 # vlan-aware bridge access ports and pruned vlan example
3 #
4 # 'bridge' is a vlan aware bridge with all ports (swp1-52).
5 # native vlan is by default 1
6 #
7 # 'bridge-vids' attribute is used to declare vlans.
8 # 'bridge-pvid' attribute is used to specify native vlans if other than 1
9 # 'bridge-access' attribute is used to declare access port
10 #
11 #
12
13 # The following is an access port to vlan 310, no trunking
14 auto swp1
15 iface swp1
16 bridge-access 310
17 mstpctl-portadminedge yes
18 mstpctl-bpduguard yes
19
20 # The following is a truk port that is "pruned".
21 # native vlan is 1, but only .1q tags of 707, 712, 850 are
22 # sent and received
23 #
24 auto swp2
25 iface swp2
26 bridge-vids 707 712 850
27 mstpctl-portadminedge yes
28 mstpctl-bpduguard yes
29
30 # The following port is the trunk uplink and inherits all vlans
31 # from 'bridge'
32 auto swp49
33 iface swp49
34 mstpctl-portpathcost 10
35 # Enable bridge assurance on uplink port using 'portnetwork' attribute
36 mstpctl-portnetwork yes
37
38 # The following port is the trunk uplink and inherits all vlans
39 # from 'bridge'
40 auto swp50
41 iface swp50
42 mstpctl-portpathcost 0
43 # Enable bridge assurance on uplink port using 'portnetwork' attribute
44 mstpctl-portnetwork yes
45
46 #
47 # ports swp3-swp48 are trunk ports which inherit vlans from the 'bridge'
48 # ie vlans 310,700,707,712,850,910
49
50 #
51 # the following is a vlan aware bridge with ports swp1-swp52
52 # It has stp on
53 #
54 auto bridge
55 iface bridge
56 bridge-vlan-aware yes
57 bridge-ports glob swp1-52
58 bridge-stp on
59 bridge-vids 310 700 707 712 850 910