Simple Routing using FC2/3

Todd Wohlwend todd_wohlwend at hotmail.com
Mon Mar 7 04:06:19 UTC 2005


This silly routing thing is driving me buzzonkers.  I did have a typo in my 
first email concerning the gateway address of the LAN PC.  The PC was 
configured correctly.  Here are the correct stats and output.

FC3 Soon to be Router Box :  (dns-172.16.176.72)
eth1 - ip-172.16.176.153, snm-255.255.240.0, gw-172.16.176.1
eth0 - ip-192.168.213.254, snm-255.255.255.0, gw-blank

PC tied to FC3 eth0 NIC via crossover cable :  (dns-172.16.176.72)
eth0 - ip-192.168.213.253, snm-255.255.255.0, gw-192.168.213.254

Router box route command.
[root at FC3-dt ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.213.0   *               255.255.255.0   U     0      0        0 eth0
172.16.176.0    *               255.255.240.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
default         172.16.176.1    0.0.0.0         UG    0      0        0 eth1

/etc/sysctl.conf routing section
# Controls IP packet forwarding
net.ipv4.ip_forward = 1

>From the PC, I can ping itself of course, 192.168.213.254, and 
172.16.176.153.  I cannot ping anything else on the 172 network.  (Note : 
The Router Box can ping all devices in the 172 network)

Todd Wohlwend
Computer Information Systems Instructor
Southeast Technical Institute
Todd_Wohlwend at hotmail.com or Todd.Wohlwend at southeasttech.com



----Original Message Follows----
 >
 > This should be a simple task.  I need to use a FC2/3 as a router.  (I 
have
 > done this in RH7.2 with no problems)  Here is my senerio :
 >
 > Fedora C3 (soon to be router - I hope)
 > External Interface 172.16.176.152 / 20
 > Internal Interface 192.168.213.152 / 24
 > No GW on internal
 > net.ipv4.ip_forward = 1 set in sysctl.conf file (rebooted of-course)
 >
 > Internal PC
 > IP = 192.168.213.253 / 24
 > GW = 192.168.213.254
 >
 > I can ping the 192.168.213.254 and 172.16.176.152 from the internal PC, 
but
 > not any device in the 172.17.176 network.
 >
 > This is a full install of FC3.  iptables is default.  I have even 
disabled
 > iptables to test. Still no luck.........I need a simple solution.  I do 
not
 > want to disable iptables and install another product.....like firestarter 
or
 > enable (masquerading) NAT.
 >
 > There must be a simple solution?
 >
 > Todd Wohlwend
 > Computer Information Systems Instructor
 > Southeast Technical Institute
 > Todd_Wohlwend at hotmail.com or Todd.Wohlwend at southeasttech.com

Not sure if you got a good answer on this or not...

Aside from the issue of using private address space and connecting to the
Internet (which would require NAT- but this isn't the case with these two
networks), the only thing I see here is that the internal PC needs to have
the gateway be the interface on the router box.

Set the PC's GW to be 192.168.213.152 and you should be able to ping
things on the 172.16.176 net.

Other than the differences between iptables and ipfilter, there isn't that
much different in doing this between 7.2 and FC2.


--
  Cristopher J. Rhea                     Mayo Foundation
  Research Computing Facility             Pavilion 2-25
  crhea at Mayo.EDU                        Rochester, MN 55905
  (507) 284-0587                        Fax: (507) 284-5231





More information about the fedora-list mailing list