Posted: Sun Jan 28, 2007 20:53 Post subject: Routing between WAN and LAN: 2 default gateways...
Hi all:
I'm trying to use my wrt54gl as a plain old router, no nat, no firewall, no nothing.
My lan is 192.168.192.101. The gateway to the internet on that lan is 192.168.192.1
My wan is static IP 192.168.1.1, which is connected to a switch with a bunch of boxes on the 192.168.1.x subnet. The gateway is set to 192.168.1.1 since I can't leave it empty in the web interface.
Now how can I set it up to avoid having 2 default gateways on the router. Currently, my routing table is:
Code:
~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.192.0 * 255.255.255.0 U 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 vlan1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 vlan1
default 192.168.192.1 0.0.0.0 UG 0 0 0 br0
As is, the router is not able to access the internet, I assume because of the default gateway on 192.168.1.1
If I delete this default gateway to get this instead:
Code:
~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.192.0 * 255.255.255.0 U 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 vlan1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.192.1 0.0.0.0 UG 0 0 0 br0
then the router can access both the internet and the 192.168.1.x subnet with no problems.
Is there any way to do this logically? I'm sure I'm missing something simple here.
Ok, as the default gateway should be the one which is able to address anything outside of you control, hardwire the address to the router which establishes the outer-rim connection. and then manually add the route to the other network (192.168.1.0).
So, more or less the oether way round asa you did it.
I don't know if your other networks contain routers supporting some automatic routing protocols. I use RIP2 on all stations and I am more or less happy with the automatisms.
But I think there are some flews in the setup, may be an issue with the WEB-Setup. I have some problems in the SP3 software with adding data into the tables as there is sometimes missing the ADD button or so. Or I added some addresses and the table expands, but only showing empty boxes.
Actually, my default route is fine and pointing to my connection to the internet. What I'm trying to avoid is having another default route created through 192.168.1.1
Basically, get rid of this
Code:
default 192.168.1.1 0.0.0.0 UG 0 0 0 vlan1
which gets created because I cannot leave the default gateway empty on the wan interface.
Posted: Wed Jan 31, 2007 10:22 Post subject: help me please!
10.10.10.253 (linksys lan eth)
80.159.x.x (linksys wan eth)
From 10.10.10.253 to Cisco 2950.......(vlan1)
From 80.159.x.x to 2950 (vlan 2)
I want to do nat outside to inside... at 10.10.10.248 (web and ftp server)
I putted the forward ports correct but dont working... where is the problem?
thanks in advance!]