two routers (two wans) connecting to one lan using two nics.

two routers (two wans) connecting to one lan using two nics.

Post by bust » Fri, 24 Jan 2003 13:10:34



Hello,
Let me try reposting this once more maybe I wasn't too clear in my
previous post.
I have a Linux RH7.3 server running ssh service. I want clients to log
in using ssh from two different Wans.

Wan1: Frame relay router (closed network with another frame relay
router)
Wan2:DSL router allowing clients to login from the internet.

The ip of the frame relay router is 192.168.100.254
The ip of the dsl router is 192.168.10.254

The fr relay is associated with eth0:192.168.100.10 defaultgw
192.168.100.254
The dsl is associated with eth1:192.168.10.10 defaultgw 192.168.10.254

Our GUI network configurator is not working due to bugzilla reports.
However it worked during the initial install and setup of these two
cards. But now we cannot access the tool.
We tried linuxconf but that only allows us one default gw to be
configured. Only one network works at a time.

Is it possible to have two default gateways (one per interface) and
have the box recognize and negotiate them both at the same time?
Which config files can I vi to achieve the desired result of two
gateways without using the gui tool?
If we are only allowed one default gateway per machine, how will the
box know
that the other router exists?
If static routes is the answer, then it is not clear to me how this
will work.
route -net add 192.168.10.0 255.255.255.0 eth1
Remember someone coming over the internet will have a private ip of
192.168.20.1 nat'ed through some pubic ip 68.1.1.10 for example trying
to ssh to
my public ip 68.1.10.20 conecting to my eth1:192.168.10.10.

        |--?------eth1---dsl router--------internet      
server--|                            
        |--defgw--eth0---frame router1--|--frame router2

Any suggestions?

Thanks guys.

 
 
 

two routers (two wans) connecting to one lan using two nics.

Post by Carlos K » Fri, 24 Jan 2003 14:58:25


Hi,

Your case is very interesting.
I have a suggestion and hope can help you.

Firstly, you can check your routing table of your Linux by typing:

netstat -r

Then it will show the default route with default gateway of your Linux. In
your case, the table should also include 2 routes for 192.168.10.0 and
192.168.100.0. Each route can set it's own gateway.

For your case, the network 192.168.100.0 is only for closed network and
hence all network connected to this interface are known. (That mean all
traffic for this interface will be handled by the frame relay router.)
And for the default gateway of your Linux should be set to 192.168.10.254.
(That mean all traffic to / from internet should be used this interface).

There are some files related to network, you can check / modify it.
/etc/sysconfig/network
/etc/syscnofig/network-scripts/ifcfg-eth0
/etc/syscnofig/network-scripts/ifcfg-eth1

--
Best regards,
Carlos Ko



Quote:> Hello,
> Let me try reposting this once more maybe I wasn't too clear in my
> previous post.
> I have a Linux RH7.3 server running ssh service. I want clients to log
> in using ssh from two different Wans.

> Wan1: Frame relay router (closed network with another frame relay
> router)
> Wan2:DSL router allowing clients to login from the internet.

> The ip of the frame relay router is 192.168.100.254
> The ip of the dsl router is 192.168.10.254

> The fr relay is associated with eth0:192.168.100.10 defaultgw
> 192.168.100.254
> The dsl is associated with eth1:192.168.10.10 defaultgw 192.168.10.254

> Our GUI network configurator is not working due to bugzilla reports.
> However it worked during the initial install and setup of these two
> cards. But now we cannot access the tool.
> We tried linuxconf but that only allows us one default gw to be
> configured. Only one network works at a time.

> Is it possible to have two default gateways (one per interface) and
> have the box recognize and negotiate them both at the same time?
> Which config files can I vi to achieve the desired result of two
> gateways without using the gui tool?
> If we are only allowed one default gateway per machine, how will the
> box know
> that the other router exists?
> If static routes is the answer, then it is not clear to me how this
> will work.
> route -net add 192.168.10.0 255.255.255.0 eth1
> Remember someone coming over the internet will have a private ip of
> 192.168.20.1 nat'ed through some pubic ip 68.1.1.10 for example trying
> to ssh to
> my public ip 68.1.10.20 conecting to my eth1:192.168.10.10.

>         |--?------eth1---dsl router--------internet
> server--|
>         |--defgw--eth0---frame router1--|--frame router2

> Any suggestions?

> Thanks guys.


 
 
 

two routers (two wans) connecting to one lan using two nics.

Post by bust » Fri, 24 Jan 2003 23:13:31


Thank you for responding sir.