Static Routing

Static Routing

Post by Cory Schaf » Sun, 03 Nov 2002 07:55:51



Hello,

I have two networks:

192.168.1.x and 192.168.10.x subnet 255.255.255.0

I want to setup a router to route to the networks.  I can ping to
anything on the 192.168.10.x from the 192.168.1.x.

I cannot ping anything on the 192.168.1.x from the 192.168.10.x
network.  This is generic routing nothing to fancy.  I just can't
figure out what is a miss.

Here is a netstat example:

default            192.168.1.67       UGSc        0        0    xl0
localhost          localhost          UH          0        0    lo0
192.168.1          link#1             UC          5        0    xl0
192.168.1.2        0:50:8b:a3:9b:46   UHLW        0       54    xl0  
1149
192.168.1.5        0:80:5f:65:65:9a   UHLW        0       13    xl0  
669
192.168.1.26       0:6:5b:40:12:28    UHLW        6      128    xl0  
1182
192.168.1.67       0:60:8:1d:3c:b9    UHLW        1        0    lo0
192.168.1.155      0:4:5a:fd:f6:4d    UHLW        0       10    xl0  
1177
192.168.10         link#2             UC          2        0    dc0
router             0:a0:cc:62:90:8c   UHLW        2        4    lo0
192.168.10.58      0:a0:c9:11:1b:92   UHLW        0       11    dc0  
675

Internet6:
Destination        Gateway            Flags      Netif Expire
::1                ::1                UH          lo0
fe80::%xl0         link#1             UC          xl0
fe80::260:8ff:fe1d 0:60:8:1d:3c:b9    UHL         lo0
fe80::%dc0         link#2             UC          dc0
fe80::2a0:ccff:fe6 0:a0:cc:62:90:8c   UHL         lo0
fe80::%lo0         fe80::1%lo0        Uc          lo0
fe80::1%lo0        link#4             UHL         lo0
ff01::             ::1                U           lo0
ff02::%xl0         link#1             UC          xl0
ff02::%dc0         link#2             UC          dc0
ff02::%lo0         ::1                UC          lo0

Here is my rc.conf:

network_interfaces="dc0 xl0 lo0"
defaultrouter="192.168.1.67"
gateway_enable="YES"
ifconfig_xl0="inet 192.168.1.67  netmask 255.255.255.0"
ifconfig_dc0="inet 192.168.10.1  netmask 255.255.255.0"
hostname="router.xxx.com"
kern_securelevel_enable="NO"
linux_enable="YES"
nfs_reserved_port_only="YES"

Let me know if any other info is needed.

Any suggestions is greatly appreciated!

Cory Schafer

 
 
 

Static Routing

Post by Michael Sierchi » Sun, 03 Nov 2002 08:30:53



> Hello,

> I have two networks:

> 192.168.1.x and 192.168.10.x subnet 255.255.255.0

> I want to setup a router to route to the networks.  I can ping to
> anything on the 192.168.10.x from the 192.168.1.x.

> I cannot ping anything on the 192.168.1.x from the 192.168.10.x
> network.

Hint:  packets need to travel both ways.  Each host on 192.168.1.0/24 needs
to know how to get hosts to 192.168.10.0/24, and vice-versa.  It's not
enough that the router has interfaces on both nets...

 
 
 

Static Routing

Post by Phillip Michae » Sat, 09 Nov 2002 08:38:37


Make sure the client's gateway is set to the IP address of your router.

Second make sure you have packet forwarding enabled.

Phil

 
 
 

1. Static routes not so static AIX 4.3.3

We are having an issue with our routes to remote locations.  We have 2
routers on our network  - one goes to a private frame relay network, the
other goes to the Internet via a PIX firewall.

I have the default route set to go through the router to the frame
(192.0.0.251). I also have static routes to the 2 remote locations.  You can
see the boot time netstat -r below:

Route Tree for Protocol Family 2 (Internet):
default                  192.0.0.251       UG       39 22177593
n0     -   -
127/8                   127.0.0.1         U         5    43898
o0     -   -
192.0.0/24           192.0.0.254       U       114 94309245  en0     -   -
192.168.238/24   192.0.0.251       UG       12   405117  en0     -   -
192.168.241/24   192.0.0.251       UG       12   405117  en0     -   -

I have the following set: no -o udp_pmtu_discover=0, no -o
tcp_pmtu_discover=0

What will happen 2-3 times a week is our route table will look like this:

Route Tree for Protocol Family 2 (Internet):
default                  192.0.0.251       UG       39 22177593
n0     -   -
127/8                   127.0.0.1         U         5    43898
o0     -   -
192.0.0/24           192.0.0.254       U       114 94309245  en0     -   -
192.168.238/24   192.0.0.250       UGD       12   405117  en0     -   -
192.168.241/24   192.0.0.251       UG       12   405117  en0     -   -

Note the 192.168.238 network is now routing through 192.0.0.250 (The
Internet router).  This is bad because now the RS6000 cannot communicate
with that network.  To fix, I manually go in and reset the route.

How can I make the static routes stay and ignore the redirects?

Thanks,
Brian Jones

System Support Manager
Mangement Concepts, Inc

2. HELP! Starting Minilinux

3. Routing problems - with static routes

4. Help: how to remove LILO?

5. route and static route to a gateway

6. What is the 'correct' way to shut down/reboot?

7. routing with static-routes...

8. Changing from CRT to TFT

9. Why routed doesn't send static routes?

10. routing with static-routes...aahh

11. what static routes are automtically added? and routed.

12. PPP Static Routes won't route to eth0

13. What Is Proper Way to Add Static Routes ot Routing Table?