ifconfig $(nvram get wan0_ifname):0 192.168.0.2 netmask 255.255.255.0
Default Gateway - 192.168.50.1What does ipconfig show for default gateway when you do not have a static WAN IP set?
Your firmware is a bit different than mine, so you might have to interpret: What Profile and WAN Type does the router show (under WAN settings)?
ONT address -192.168.11.1There are lots of examples and instructions in the forums here on how to do this.....
You have not given any real details to work with here so I'm going to make some assumptions and give an example. I am assuming that your ONT is on a different network than your router (I.E your ONT may be on network 192.168.0.0/24 while your router's network is 192.168.1.0/24).
If my assumption is right, let's say your ONT's address is 192.168.0.1, then SSH into your router and issue the following command
Bash:ifconfig $(nvram get wan0_ifname):0 192.168.0.2 netmask 255.255.255.0
now see if you can ping your ONT from the router.
So, in that case, you could use;ONT address -192.168.11.1
Router address - 192.168.50.1
ifconfig $(nvram get wan0_ifname):0 192.168.11.2 netmask 255.255.255.0
That worked! I'm able to ping the ONT from the router and access the ONT web interface using a static route. Thank you very much for the help.So, in that case, you could use;
Bash:ifconfig $(nvram get wan0_ifname):0 192.168.11.2 netmask 255.255.255.0
You should be able to this too using a static route, but I suspect you are running into the firewall on the ONT.
However after a reboot, I can no longer access the ONT web interface.So, in that case, you could use;
Bash:ifconfig $(nvram get wan0_ifname):0 192.168.11.2 netmask 255.255.255.0
You should be able to this too using a static route, but I suspect you are running into the firewall on the ONT.
Okay, sounds good!No, it won't survive a reboot. When I sit down at my computer tomorrow, I will send instructions on how to add this to a Merlin script so it will servive a reboot. Working off of a tablet at moment.
want-event
script in /jffs/scripts
.wan-event
script, put the following code (adding the #!/bin/sh as the very first line only if you are creating the script for the first time, otherwise if there is already a wan-event
script, the first line should already be there).#!/bin/sh
if [ "$1" = "0" ] && [ "$2" = "connected" ];then
ifconfig $(nvram get wan0_ifname):0 192.168.11.2 netmask 255.255.255.0
fi
if [ "$1" = "0" ] && [ "$2" = "stopping" ];then
ifconfig $(nvram get wan0_ifname):0 down
fi
chmod u+x /jffs/scripts/wan-event
Script wasn't there in jffs/scripts so I used nano to create the wan-event file. As for rights & permissions, what should I set it to? Currently it's on 0766 rwxrw-rw-.To make this survive a reboot, you will have to create or modify thewant-event
script in/jffs/scripts
.
Okay. Just rebooted the router a few times to test the script and it survives. Everything works flawlessly. Thank you Jeffrey for your time and effort in making this work!What it is set to is fine. Virtually everything that runs on the router is root anyway. But if you are concerned, 700 is good.
@Erah can you test a theory with me? I'm also on a BE88u and had the issue with the GUI static route setting not allowing me to access the PON.Okay. Just rebooted the router a few times to test the script and it survives. Everything works flawlessly. Thank you Jeffrey for your time and effort in making this work!
It is more than likely that your PON's firewall is getting in the way of the static route. The firewall is likely denying access from any other subnet then it's own. Creating the alias address on the Asus Router on the same subnet as the PON gets around the firewall issue.@Erah can you test a theory with me? I'm also on a BE88u and had the issue with the GUI static route setting not allowing me to access the PON.
I also realized that my port forwarding cant be configured through the Asus GUI. I wonder if these two issues are related. Could you try to forward a random port and then check to see if it's working for you, please?
Edit: Also want to confirm if you're using Merlin 3006.102.3 like I am.
This PON is more like a fancy swtich. It has no firewall.It is more than likely that your PON's firewall is getting in the way of the static route. The firewall is likely denying access from any other subnet then it's own. Creating the alias address on the Asus Router on the same subnet as the PON gets around the firewall issue.
ifconfig $(nvram get wan0_ifname):0 192.168.0.2 netmask 255.255.255.0
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!