Re: 2 Routers



miguel-lopes wrote:
Hello I have a linux Suse 9.3 installed and it is working fine but I have a
problem is how cam I serve 2 diferente networks.

Let me explain we have 2 routers 192.168.1.254 ( framerelay) and
192.168.1.252 (internet).

The default gateway on linux box is 192.168.1.252 because I want this
machine to acces the internet and I also want it to comunicate with the
frame relay at the same time. That is when some request comes to this
machine intranet

A small Drawing

|-------router (192.168.1.252)------ internet
box1----+
|----router (192.168.1.254)------intranet---+----IP
192.168.2.*

|-----IP 192.168.3.*

|-----IP 192.168.4.*

The network 192.168.2.*, 192.168.3.*�, etc , requests infromation to work on
a aplication web developed.

How can I do this??

Well.. your diagram didn't come out well... but I'm going
to say that if you put in a static route for your framerelay network
devices to use 192.168.1.254... that things should work.

route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.254
route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.254
route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.1.254

You'd need a static route for each network via the intranet
gw.

You can set this up as part of YaST networking so that they will go
into the /etc/sysconfig... choose Routing in your Network Device
config in YaST and fill in the static route info there.
.



Relevant Pages

  • Linux is not sending ICMP redirects
    ... the following network configuration: ... computers in LAN2 have Hardware router as default gateway ... I add static route only to Linux1 and Hardware ...
    (comp.os.linux.networking)
  • ICMP redirect problem
    ... two the following network configuration: ... computers in LAN2 have Hardware router as default gateway ... I add static route only to Linux1 and Hardware ...
    (comp.os.linux.networking)
  • Linux is not sending ICMP redirects
    ... the following network configuration: ... computers in LAN2 have Hardware router as default gateway ... I add static route only to Linux1 and Hardware ...
    (comp.os.linux.networking)
  • Re: How to bind a route to a network adapter and not IP
    ... to understand why you losing packets? ... if I create a static route pointing to a next hop on one interface, ... the static route is removed from the routing table. ... I add in my network setup are lost because of ARP packet drops. ...
    (freebsd-stable)
  • Re: Sligtly OT: setting static routes on clients
    ... >>>I've got a network of clients on which I'd like to set static ... >>>to do this with DHCP? ... >>You can try using the DHCP Classless Static Route option (#121, ... Option 121 includes network and netmask fields, ...
    (freebsd-questions)