e1cdf39fd25c4c9fe8711f7329b9a478db86097c
[racktables] / gateways / switchvlans / trunkdecoder-sample
1 #!/bin/sh
2
3 [ $# = 1 ] || exit 1
4
5 case $1 in
6 6001)
7 NATIVE=100
8 ;;
9 6002)
10 NATIVE=200
11 ;;
12 *)
13 exit 2
14 ;;
15 esac
16 VOICE=300
17
18 echo switchport trunk native vlan $NATIVE
19 echo switchport trunk allowed vlan $NATIVE,$VOICE
20 echo switchport voice vlan $VOICE
21 echo spanning-tree portfast trunk