defaults

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


Joined: 24 Dec 2014
Posts: 34

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: 3772
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 R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
clippy
DD-WRT Novice


Joined: 24 Dec 2014
Posts: 34

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: 34

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