defaults

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


Joined: 24 Dec 2014
Posts: 45

PostPosted: Thu Feb 14, 2019 14:11    Post subject: defaults Reply with quote
How do I set/modify these:

wan_ipaddr
wan_gateway
wan_netmask
http_wanport

in 'fmk/rootfs/etc/defaults.bin' when rebuilding 'dd-wrt.v24-38570_NEWD-2_K2.6_mini_RT-N16.trx' ?

Thanks.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Thu Feb 14, 2019 14:49    Post subject: Reply with quote
http_wanport is set under Administration/Management/Remote Access/ Web GUI management

wan_netmask and wan_ipaddr and wan_gateway can be set under Setup/Basic Setup/Wan Connection type, you can use static IP and set it or automatic Configuration then it will be set automatically through DHCP

Those are saved and can be get or set with nvram get/set

The file system is rebuild on boot up with the use of the nvram parameters

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
clippy
DD-WRT Novice


Joined: 24 Dec 2014
Posts: 45

PostPosted: Wed Feb 20, 2019 11:53    Post subject: Reply with quote
I want to set them as defaults, with fmk 'compiling', so they are configured on 'factory reset'.
it seems that format of file 'defaults.bin' has changed ?
clippy
DD-WRT Novice


Joined: 24 Dec 2014
Posts: 45

PostPosted: Fri Feb 22, 2019 13:06    Post subject: Reply with quote
found this line:

"wan_ipaddr" "" "WANIPADDR" "FALSE" "3"

in /etc/config/base.nvramconfig
it seems to be related?
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