SHARE
TWEET

Untitled

a guest Sep 11th, 2019 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
  3.  
  4. robocfg vlan 1 ports "0 8t"
  5. robocfg vlan 3 ports "1 2 4t 8t"
  6. robocfg vlan 4 ports "3 4t 8t"
  7.  
  8. vconfig add eth0 3
  9.  
  10. ifconfig vlan3 up
  11.  
  12. brctl addbr br1
  13.  
  14. brctl delif br0 eth1
  15. brctl delif br0 eth2
  16.  
  17. brctl addif br1 vlan3
  18. brctl addif br1 eth1
  19. brctl addif br1 eth2
  20.  
  21. ifconfig br1 up
  22.  
  23. nvram set lan_ifnames="vlan1 wl1.1"
  24. nvram set lan1_ifnames="eth1 eth2 vlan3"
  25. nvram set lan1_ifname="br1"
  26.  
  27. nvram commit
  28.  
  29. killall eapd
  30. eapd
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top