Routing between WAN and LAN: 2 default gateways...

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


Joined: 18 Jan 2007
Posts: 5

PostPosted: Sun Jan 28, 2007 20:53    Post subject: Routing between WAN and LAN: 2 default gateways... Reply with quote
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.

Thanks in advance.
Sponsor
uprinz
DD-WRT User


Joined: 23 Jan 2007
Posts: 67

PostPosted: Sun Jan 28, 2007 23:41    Post subject: Reply with quote
Hi!

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.

But ssh / telnet should work as you did it.

Greez
Ulrich
silverbullet
DD-WRT Novice


Joined: 18 Jan 2007
Posts: 5

PostPosted: Mon Jan 29, 2007 13:46    Post subject: Reply with quote
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.
banderas2000
DD-WRT Novice


Joined: 31 Jan 2007
Posts: 4

PostPosted: Wed Jan 31, 2007 10:22    Post subject: help me please! Reply with quote
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!]
silverbullet
DD-WRT Novice


Joined: 18 Jan 2007
Posts: 5

PostPosted: Wed Jan 31, 2007 12:00    Post subject: Reply with quote
Sorry but what does this have to do with my post? How about you start your own post so we can both get an answer to our questions?

Thanks.
banderas2000
DD-WRT Novice


Joined: 31 Jan 2007
Posts: 4

PostPosted: Thu Feb 01, 2007 10:05    Post subject: sorry... .. I´m very scatterbrain Reply with quote
silverbullet wrote:
Sorry but what does this have to do with my post? How about you start your own post so we can both get an answer to our questions?

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