r4254 Move "gateway" directory out of "wwwroot" and provide a mean to reconfigure
[racktables] / wwwroot / gateways / switchvlans / vlandecoder-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