Basic vlans with allied telesis

8000GS series

status for all sw ports
show interfaces status
add vlan – global
console(config)# configure
console(config-vlan)# vlan 2 name kur
console(config-vlan)# vlan 4 voip
console(config-vlan)# exit
add non tagged vlans to port

console(config)#  interface ethernet 1/g2
console(config-if)# switchport  access 1234
add tagged vlans to port

console(config)#  interface ethernet 1/g5
console(config-if)# switchport mode trunk 1234
console(config-if)# swutchport trunk allowed vlan add 2,4,13
show vlan – show all vlans running at trunk port on switch

native vlan
console(config)#  interface ethernet 3/g14
console(config-if)# switchport trunk native vlan 12
Destroying VLANs
console(config)# interface ethernet 1/g2
console(config-if)# switchport trunk  allowed vlan remove 2,4,13
console(config-if)# switchport mode access
console(config-if)# exit
console(config)# vlan database
console(config-vlan)# no vlan 2
console(config-vlan)# no vlan 4
console(config-vlan)# no vlan 13
console(config)# interface ethernet 1/g25
console(config-if)# switchport
console(config-if)# switchport mode
console(config-if)# switchport mode trunk
console(config-if)# switchport trunk native vlan 50
console(config-if)# switchport trunk allowed
console(config-if)# switchport trunk allowed vlan
console(config-if)# switchport trunk allowed vlan add 401

show port status
show interfaces switchport ethernet 3/g22

Bond Bridge interfaces. #debian

Bond with bridge

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode balance-tlb

auto vmbr0
iface vmbr0 inet static
address 192.168.xxx.xxx
netmask 255.255.255.xxx
gateway 192.168.xxx.xxx
bridge_ports bond0
bridge_fd 0
###bridge_vlan_aware yes

Bridge

auto eth1
iface eth1 inet manual
up ip link set eth1 up

auto br1
iface br1 inet manual
        bridge_ports eth1
        bridge_fd 0
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off
        address 192.168.xxx.xxx
        netmask 255.255.255.xxx
        gateway 192.168.xxx.xxx

Tip: Do something when network goes on

post-up (  echo 1 > /sys/devices/virtual/net/$IFACE/bridge/multicast_querier )