What's new

Asus RT-AC68U setting up Routing using CLI Help

  • 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!

Ydnaroo

Regular Contributor
Hi. I have an Asus RT-AC68U Firmware Version:3.0.0.4.380_7378 in a pretty vanilla router setup. I want to be able to access a modem on the WAN connection that is set to be accessed on 192.168.2.1. Having dug about in various places on the web I have come up with the following CLI command:

ifconfig eth0:1 192.168.2.1 netmask 255.255.255.0

which adds:
Code:
eth0:1     Link encap:Ethernet  HWaddr 1C:87:2C:68:D2:C0
           inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           Interrupt:179 Base address:0x4000
to the router interface.

Having done that I can ping the modem on 192.168.2.1 from the router or any PC on the local network (192.168.1.*). However when I try to access the webpage or telnet on port 1023 I cannot make a connection. I can access the modem using these types of connection with a PC connected direct to the modem.

Can anyone give me any idea of whet else I need to add it allow these types of connection (TCP?) to the modem?

Any help appreciated.

Cheers - Andy
 
Hi. Re above. I've now sorted this using the excellent info here: https://www.snbforums.com/threads/access-modem-configuration-page.11957/page-2#post-111756

I've entered using telnet:

ifconfig `nvram get wan0_ifname`:0 192.168.2.2 netmask 255.255.255.0

Note : the IP number shown in bold must be one more than your modem's IP. If your modem's ip is 192.168.2.1 then it must be written as 192.168.2.2.

&

iptables -t nat -I POSTROUTING -o `nvram get wan0_ifname` -j MASQUERADE

and I can now access the modem from any PC on my home network. All credit to the above link.

Cheers - Andy
 

Latest threads

Sign Up For SNBForums Daily Digest

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