View Single Post

   
  #1 (permalink)  
Old 02-20-2008, 01:52 PM
stm
 
Posts: n/a
Default routing between 2 private networks

I'm trying to configure Slackware to route between 2 private networks
10.1.1.0 and 10.1.2.0, but can't seem to get it working.

Here's what I've done so far:

- installed Slackware 10.2 using the default bare 2.4.31 Kernel.

- setup and configured two network cards.

#ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:4F:4C:EC:B8
inet addr:10.1.1.10 Bcast:10.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2574 errors:0 dropped:0 overruns:0 frame:0
TX packets:979 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:216388 (211.3 Kb) TX bytes:192396 (187.8 Kb)
Interrupt:11 Base address:0xcc00

eth1 Link encap:Ethernet HWaddr 00:01:02:5E:F0:C2
inet addr:10.1.2.1 Bcast:10.1.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1606 errors:0 dropped:0 overruns:1 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:122676 (119.8 Kb) TX bytes:2518 (2.4 Kb)
Interrupt:9 Base address:0xdc80

#chmod 755 /etc/rc.d/rc.ip_forward

#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
10.1.2.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 10.1.1.1 0.0.0.0 UG 1 0 0
eth0

I can ping both private networks and the internet from that machine
(router). However, a machine on the 10.1.2.x network can not reach
(ping) the 10.1.1.x network other than 10.1.1.10 (the router).

What am I missing?

Reply With Quote