#!/bin/sh # The swconfig port number are: # |2|1|0|4| |3| # (looking at front of ports) swconfig dev switch0 set reset swconfig dev switch0 set enable_vlan 1 swconfig dev switch0 vlan 102 set ports '0 1 2 3 4 8' swconfig dev switch0 port 0 set pvid 102 swconfig dev switch0 port 1 set pvid 102 swconfig dev switch0 port 2 set pvid 102 swconfig dev switch0 port 3 set pvid 102 swconfig dev switch0 port 4 set pvid 102 swconfig dev switch0 set apply