Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
- robocfg vlan 1 ports "0 1 2 3 4 5 7 8t"
- robocfg vlan 4 ports "0 4t 8t"
- robocfg vlan 5 ports "4t 8t"
- robocfg vlan 10 ports "4t 8t"
- vconfig add eth0 4
- vconfig add eth0 5
- vconfig add eth0 10
- ifconfig vlan4 up
- ifconfig vlan5 up
- ifconfig vlan10 up
- brctl addbr br1
- brctl addbr br2
- ifconfig br0 down
- brctl delif br0 wl0.1
- brctl delif br0 wl0.3
- brctl delif br0 wl1.1
- brctl delif br0 wl1.3
- brctl addif br1 wl0.1
- brctl addif br1 wl1.1
- brctl addif br1 vlan4
- brctl addif br2 wl0.3
- brctl addif br2 wl1.3
- brctl addif br2 vlan5
- brctl addif br0 vlan10
- #brctl addif br0 eth1
- #brctl addif br0 eth2
- brctl stp br0 on
- brctl stp br1 on
- brctl stp br2 on
- ifconfig br1 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
- ifconfig br2 192.168.3.2 netmask 255.255.255.0 broadcast 192.168.3.255
- ifconfig br1 up
- ifconfig br2 up
- ifconfig br0 up
- nvram set lan_ifnames="vlan1 vlan10 eth1 eth2"
- nvram set lan_ifname="br0"
- nvram set lan1_ifnames="vlan4 wl0.1 wl1.1"
- nvram set lan1_ifname="br1"
- nvram set lan2_ifnames="vlan5 wl0.3 wl1.3"
- nvram set lan2_ifname="br2"
- #nvram set vlan4hwname=et2
- #nvram set vlan5hwname=et2
- nvram commit
- killall eapd
- eapd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement