]> git.proxmox.com Git - pve-manager.git/commit
add vlan aware ifupdown script v3
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 29 Jul 2015 02:42:42 +0000 (04:42 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Jul 2015 04:46:16 +0000 (06:46 +0200)
commit1010159a8688be5af1dc8621ce23cb5385f8bace
tree6a520085f9567da54a151eed0a8df0eaf8ca0f69
parentc2dbc5e32d2676bc4e8adaae79bc070ac7099455
add vlan aware ifupdown script v3

This add support to enable vlan aware bridge,
and management interfaces

example: 1 bridge and 1 administration port on vlan 100

auto vmbr0
iface vmbr0 inet manual
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes
        bridge_vids 10-15

auto vmbr0.100
iface vmbr0.100 inet static
        address X.X.X.X
        netmask 255.255.255.0
        gateway X.X.X.X

bridge_vids is optional, and allow on the specified vlans.(current take 1 value or range, need to be improve with list)
If not specified, the allowed vlan are 2-4094.
vlan 1 is the default pvid. (all untagged traffic is going to this vlan).

scripts:
- /etc/network/if-up.d/bridgevlan

manage bridge vlan aware configuration

- /etc/network/if-up.d/bridgevlanport

manage bridge vlan admin port

-/etc/network/if-pre-up.d/vlan
-/etc/network/if-post-down.d/vlan

replace current vlan package, without vconfig usage and cleanups
It's only needed to create vlan interface from bridge_ports.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Makefile
bridgevlan [new file with mode: 0755]
bridgevlanport [new file with mode: 0755]
debian/conffiles
debian/control.in
vlan [new file with mode: 0755]
vlan-down [new file with mode: 0644]