Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ethernet to Token Ring Router

Status
Not open for further replies.

ag6969

Technical User
Jun 4, 2001
85
CA
I am using RedHat 7.2 and I can't get it to route packets between the 2 interfaces. You can probably guess by the title that I am trying to route traffic between a token ring net and an ethernet network. Both interfaces are reachable on their respective network, but won't route packets. I can ping addresses on either side from the Linux box. I have tried to enable ip forwarding by doing this:

echo 1 > /proc/sys/net/ipv4/ip_forward
I have also entered in static routes for each card.
This is what I did for the static routes:
(TOken ring interface = 10.0.0.l, ethernet=192.168.0.5)

route add -net 10.0.0.0 netmask 255.0.0.0 tr0
route add -net 192.168.0.0 netmask 255.255.255.0 eth0

I still get nothing, if anyone has any suggestions, I would really appreciate the help.
Thanks
 
Hi,



What do you get from :



/sbin/route

or

/sbin/ip route (if you have the iproute rpm installed)



From what you say it sounds fine so I'd guess that its the firewalling stopping forwarding. Redhat 7.x comes with a simple ipchains based firewall called lokkit and that may be blocking the packets :



/sbin/ipchains -L



.. that should tell you what the active rules are. Under ipchains forwarded packets go through three chains (input -> forward -> output) so any of those rules could be blocking. If so, you can admin lokkit with '/usr/sbin/lokkit' and whats probably easiest is to set those two interfaces as 'trusted'. Otherwise you can turn the whole thing off :



/etc/rc.d/init.d/ipchains stop (immediately)



/sbin/chkconfig --level 2345 ipchains off (permananent off at all runlevels)



Hope this helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top