WAN Port Assignment in script

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
M4TH
DD-WRT Novice


Joined: 07 Feb 2011
Posts: 3

PostPosted: Mon Apr 21, 2014 19:11    Post subject: WAN Port Assignment in script Reply with quote
Hi
I'm trying to enable dual wan on an Asus RT-N10P

My vlan2 is set to physical port 3(nvram set vlan2ports="1 5")

It seems I have problems switching WAN vlans...
Code:
ip route delete default
ip route add default via 192.168.1.1 dev vlan2

This return: "RTNETLINK answers: No such process"

I can switch the "WAN Port Assignment" to vlan2 in GUI and everything work fine

How can switch WAN vlan in script like the "WAN Port Assignment" from GUI?

I've also tried(without success):
Code:
nvram set wan_ifname='vlan2'
...
stopservice wan
startservice wan


Thanks for your help
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum