What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Problems with services-start jffs script after upgrade to Merlin

Jared Heath

New Around Here
Hello,

I have a RT-AC68U that has been on stock ASUS firmware forever. Recently I went through the process of getting a VLAN setup for guest access for various reasons. I have a script I was running that worked just fine on the stock firmware.

Enter a power failure and my desire to have these run automatically and I'm upgrading to Merlin's firmware that can to jffs scripting automatically.

My existing script crashes and burns on the new firmware. Just swapping some of the ports to vlan 1 causes the network to drop and essentially not come back without rebooting.

Here is the output of robocfg show

Switch: enabled
Port 0: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 1: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: 1000FD enabled stp: none vlan: 1 jumbo: off mac: a4:db:30:e5:1f:cb
Port 5: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 1c:b7:2c:c6:d4:c8
Port 7: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 0 1 2 3 4 5t
2: vlan2: 5t
56: vlan56: 0t 1 3t 5 7
57: vlan57: 1 2 3t 4 7 8u
58: vlan58: 0 1 4t 7
59: vlan59: 3t 5 7t
60: vlan60: 1 2 4 5t 7t 8t
61: vlan61: 2 3t 7
62: vlan62: 0 1t 2t 3 4 7 8u

And the script I have to make the vlan changes:

robocfg vlan 1 ports "1 2 3 4 8t"
robocfg vlan 2 ports "0t 8t"
ifconfig vlan2 up

brctl addbr br1
brctl delif br0 wl0.1
brctl addif br1 wl0.1
brctl addif br1 vlan2
ifconfig br1 10.0.1.3 netmask 255.255.255.0
ifconfig br1 up


nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan2 wl0.1"
nvram set lan1_ifname="br1"
nvram commit
killall eapd
eapd

I pieced this script together probably last year reading multiple posts here and elsewhere, but I cannot find anything helpful at this point that leads to any sort of understanding why the first line blows up the networking. I have yet to find a way to get into the router once the first line is issued.

Is there something missing that's different in the firmware? Did the flash go bad somehow?
 
D'oh.

Well, it was 8t before. Changing the script to 5t makes it all magicall work. I completely forgot the switch assignment might change.

Thanks
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top