LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-25-2004, 04:42 PM   #1
timlitw
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
linux router - 1 of 4 not working


here is the network diagram

do=district office
rms=middle school
rhs=highschool
pe=elementary school

do network 172.16.96.x <-> 172.16.127.x netmask 255.255.224.0
eth1 do router ip address 172.16.96.1
eth0 do to rms radio interface ip 10.0.0.2 netmask 255.255.255.0
static routes
route add -net 172.16.32.0 netmask 255.255.224.0 gw 10.0.0.102
route add -net 172.16.0.0 netmask 255.255.224.0 gw 10.0.0.102
route add -net 172.16.64.0 netmask 255.255.224.0 gw 10.0.0.102
|
|
eth1 rms to do radio interface ip 10.0.0.103 netmask 255.255.255.0
eth0 rms router ip address 172.16.32.1
rms network 172.16.32.x <-> 172.16.63.x netmask 255.255.224.0
eth2 rms to rhs radio interface ip 10.0.1.2 netmask 255.255.255.0
static routes
route add -net 172.16.96.0 netmask 255.255.224.0 gw 10.0.0.2
route add -net 172.16.0.0 netmask 255.255.224.0 gw 10.0.1.102
route add -net 172.16.32.0 netmask 255.255.224.0 gw 10.0.1.102
|
|
eth1 rhs to rms radio interface ip 10.0.1.102 netmask 255.255.255.0
eth0 rhs router ip address 172.16.1.1
rhs network 172.16.0.x <-> 172.16.31.x netmask 255.255.224.0
rhs gateway to internet 172.16.1.254
rhs windows file server 172.16.0.1
eth2 rhs to pe radio interface ip 10.0.2.3 netmask 255.255.255.0
route add -net 172.16.32.0 netmask 255.255.224.0 gw 10.0.1.2
route add -net 172.16.96.0 netmask 255.255.224.0 gw 10.0.1.2
route add -net 172.16.64.0 netmask 255.255.224.0 gw 10.0.2.102
|
|
eth0 pe to rhs radio interface ip 10.0.2.102 netmask
eth1 pe router ip address 172.16.64.1
pe network 172.16.64.x <-> 172.16.95.x netmask 255.255.224.0
route add -net 172.16.32.0 netmask 255.255.224.0 gw 10.0.2.2
route add -net 172.16.0.0 netmask 255.255.224.0 gw 10.0.2.2
route add -net 172.16.96.0 netmask 255.255.224.0 gw 10.0.2.2


the problem seems to be some setting on the rms router
at the console of the machine
from do I can ping rms
from rms I can ping rhs and pe and do
from rhs I can ping all and internet
from pe I can ping all and internet

from laptop on each network
from do I can ping do and rms
from rms I can ping do and rms
from rhs I can ping all and internet
from rhs I can ping all and internet

so rms isn't passing anything from eth1 and eth0 thru to eth2

in /etc/sysctrl I have
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 1

cat /proc/sys/net/ipv4/ip_forward
cat /proc/sys/net/ipv4/conf/ethx/proxy_arp

these command for each out put is 1

any ideas are welcome!
 
Old 03-26-2004, 07:25 AM   #2
timlitw
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
doesn't anyone use linux as a router?

Or maybe you can tell me where to go to get help?
 
Old 03-26-2004, 07:55 AM   #3
enteal
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Red hat 8.0
Posts: 13

Rep: Reputation: 0
Hi

I am having a similar problem.

if u want see my trhead posted and replies.

it is Route on Linux

Thx

Enteal
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
linux as3 working as router with 2 public IPs rajeshdogra Linux - Networking 1 07-18-2005 07:53 AM
DNS Server not working on Linux Router Trano Linux - Networking 5 04-21-2005 01:41 PM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration