vlan configuration script ================================================ 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_