Public domain
#!/bin/bash
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"
# vlan config
ifconfig eth0 0.0.0.0 up
vconfig add eth0 502
ifconfig eth0.502 192.168.0.234 netmask 255.255.255.248
route add default gw 192.168.0.233
BY: Pejman Moghadam
TAG: bash-script, bash, vlan, vconfig, dot1q
DATE: 2011-09-21 14:17:39