After a few system reloads, this file is slowly stabilizing now.  It's designed to set up a box ready for VMware with vlans for a variety of test applications, etc.  In my case, off the switch, vlans 1 is the production, vlan 2-5 are the test environments, 70 is the net connection for the dsl (modem), 101 is the router output for the dsl, and 24 is the cablemodem.  1000 and 1001 are the public wifi and voice networks respectively. 

 

 *********************************************************************** 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

modprobe 8021q

ip link set eth1 up
vconfig add eth1 1
vconfig add eth1 2
vconfig add eth1 3
vconfig add eth1 4
vconfig add eth1 5
vconfig add eth1 24
vconfig add eth1 70
vconfig add eth1 101
vconfig add eth1 1000
vconfig add eth1 1001

ifconfig eth1.1 10.0.1.1 netmask 255.255.255.0 up
ifconfig eth1.2 10.0.2.1 netmask 255.255.255.0 up
ifconfig eth1.3 10.0.3.1 netmask 255.255.255.0 up
ifconfig eth1.4 10.0.4.1 netmask 255.255.255.0 up
ifconfig eth1.5 10.0.5.1 netmask 255.255.255.0 up
ifconfig eth1.24 10.0.24.1 netmask 255.255.255.0 up
ifconfig eth1.70 10.0.70.1 netmask 255.255.255.0 up
ifconfig eth1.101 10.0.101.1 netmask 255.255.255.0 up
ifconfig eth1.1000 10.0.200.1 netmask 255.255.255.0 up
ifconfig eth1.1001 10.0.201.1 netmask 255.255.255.0 up

dhclient eth1.1&
dhclient eth1.24&
dhclient eth1.101&

sleep 120

ip route del default via 192.168.1.1 dev eth1.1
ip route del default via 192.168.1.1 dev eth1.2
ip route del default via 192.168.1.1 dev eth1.3
ip route del default via 192.168.1.1 dev eth1.4
ip route del default via 192.168.1.1 dev eth1.5
ip route del default via 192.168.1.1 dev eth1.24
ip route del default via 192.168.1.1 dev eth1.101
ip route del default via 192.168.1.1 dev eth1.1000
ip route del default via 192.168.1.1 dev eth1.1001

/usr/sbin/automount&

exit 0
***********************************************************************

That's it for now.