PDA

Bekijk de volledige versie : default route on a br0 interface? how?



xtraya
03-07-2005, 21:35
i tryed to set nvram variables but, it won`t work because it set`s up ip of default gw but for wan interface.

routing table

0.0.0.0 10.15.1.10 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.15.1.10 0.0.0.0 UG 1 0 0 br0

now i setted up an manual default route and deleted an wan interface default route.

now it shows this

0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.15.1.10 0.0.0.0 UG 1 0 0 br0



of course it wont work...

howto set this up?

sophana
06-07-2005, 15:30
do you mean that you want 2 default gateways?
How will it work then?

xtraya
06-07-2005, 23:32
no, i want to use asus as router,but NOT to use default gw over WAN port (eth1)

just to use default gw over br0

wtzm
07-07-2005, 08:12
I'm not quite sure if I understand what you are trying to achieve, but I'll try to do so ;).
You would like to have your default route point to a host that is connected to your br0 interface, but the firmware automatically sets up a default route via the eth1 interface - Right?
Just delete the current default route with
route del default and add your new route with
route add default gw x.x.x.x (x.x.x.x = the host your default route should point to).
I don't know if (or how) this can be done with nvram variables, but you could insert the above commands into your post-boot script.

xtraya
07-07-2005, 09:11
well, how did i temporary solved this:

1. my asus have some problem and it automaticly restart itself in random order (without any rules when should it happen)
2. ofcourse i can manualy remove first def route over wan interface. but when router restarts itself, i must do it again... boring....
3. i tryed nvram option to set up manualy an adress but problem is in interface of def route, i think that it is locked on wan, not on any other interface
4. i used one of linuxes in network together with cron daemon, i made small telnet script which log in into asus every 30 minutes and checks for bad def route (i put good def route in manual route configuration), and if asus was restarted, script removes bad route,and stays only good one...

:)