How to set default gateway?

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


Joined: 18 Aug 2006
Posts: 7
Location: Grecce, thessaloniki

PostPosted: Wed Aug 23, 2006 18:10    Post subject: How to set default gateway? Reply with quote
Hello!
How can i set default gateway in dd-wrt?
Because dd-wrt uses automaticaly the wan gateway as default and i want to use a lan gateway as default....

i can do the changes by

ip route delete default
ip route add 10.0.0.0/8 via 10.104.78.1
ip route add default via 192.168.1.101

but after restar the settings are resets...
How can i save the changes that i make with ip route ?
Sponsor
pazuzu
DD-WRT Novice


Joined: 04 Jul 2006
Posts: 44

PostPosted: Wed Aug 23, 2006 18:12    Post subject: Reply with quote
You can type those lines under Admin -> Diagnostic -> then click "save as startup"
_________________
D-link DI-524 -> DD-WRT v23sp1 WRT54GS v2 client bridge -> DD-WRT v23sp1 WRT54GS v1 AP and Apple AirPort Graphite base station bridge
GrumpY54gsv4
DD-WRT User


Joined: 07 Jun 2006
Posts: 286

PostPosted: Wed Aug 23, 2006 18:13    Post subject: Reply with quote
setup -> basic setup -> network setup.

to save your script, look for rc_firewall in the forum
or look at the wiki for http://www.dd-wrt.com/wiki/index.php/Startup_Scripts

listed in http://www.dd-wrt.com/phpBB2/viewtopic.php?t=327

_________________
- WRT54gs v4 @ 225 Mhz - DD-WRT V24 vpn -
- SD/MMC Mod 128 MB - Serial port & JTAG -
- Diversity switch removed -
azyx
DD-WRT Novice


Joined: 18 Aug 2006
Posts: 7
Location: Grecce, thessaloniki

PostPosted: Wed Aug 23, 2006 18:31    Post subject: Reply with quote
Thanks a lot guys for your ideas Smile
have a nice day!
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