What's new

Get Ethernet subinterface IP address to save after reboot?

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

CHaynes112

Occasional Visitor
ASUS GT-AC5300

My ASUS router is on one subnet and my ISP gateway is on another subnet (when it's in bridge mode, it won't allow you to customize the subnet or IP address). My network works fine, but if I want to be able to get to my ISP gateway from a PC behind my ASUS router, then I need to add the following command to the router.

ifconfig eth0:0 192.168.1.2 netmask 255.255.255.0

The problem is that this command gets removed during a reboot. I am trying to determine how to add this to the router (nvram, script, etc.) so that it stays or gets automatically added after a reboot.
 
On stock firmware the only "user hook" that you have to play with is script_usbmount (assuming you have a USB device plugged in).

 

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