LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-18-2005, 01:15 AM   #1
captain_b
LQ Newbie
 
Registered: Nov 2005
Location: Southern California
Distribution: RH 9
Posts: 2

Rep: Reputation: 0
basic LAN routing


Doing some experiments and trying to setup linux box as a basic router beween LANs. Don't get routes from other hosts forwarded across LANs.

kernel 2.4.20-8

System has 3 NICs:

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:47:DB:ED:6D
inet addr:192.168.200.10 Bcast:192.168.200.255 Mask:255.255.255.0
[...]

eth1 Link encap:Ethernet HWaddr 00:04:5A:56:42:E3
inet addr:172.16.0.1 Bcast:172.16.0.255 Mask:255.255.255.0
[...]

eth2 Link encap:Ethernet HWaddr 00:04:5A:4F:EF:9B
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
[...]

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
[...]

IP Forwarding is enabled:

# cat /proc/sys/net/ipv4/ip_forward
1

Routing table:

# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.200.1 0.0.0.0 UG 0 0 0 eth0

There is a host with ip 192.168.200.100 that responds to ping from the linux router described above (both directions)

There is a host with ip 172.16.0.2 that responds to ping from the linux router (both directions). This is a windows machine with the following configuration:

IP Address. . . . . . . . . . . . : 172.16.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.0.1

The windows machine can ping all ip addresses of the linux box. However, an attempt to ping any other hosts on the 192.168.200.xxx network does not get a response. I am expecting the linux machine to route from the 172.16.0.xxx network to the 192.168.200.xxx network, but this does not seem to be the case.

Apologies for what is no doubt a basic question, but I can't seem to find what I am missing here.

- Capt. B
 
Old 11-18-2005, 10:46 AM   #2
captain_b
LQ Newbie
 
Registered: Nov 2005
Location: Southern California
Distribution: RH 9
Posts: 2

Original Poster
Rep: Reputation: 0
Work up this morning with the answer in my head...

Needed to add routes on the 192.168 hosts to the 172.16 network. Packets could go one way but not the other.

- Capt. B
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Basic Routing broadband Linux - Networking 9 09-07-2004 12:44 AM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
Basic routing question palanisaravanan Linux - Networking 5 03-22-2004 10:55 AM
Basic routing pcrs Linux - Networking 1 10-07-2002 09:25 AM
Basic routing john.martelli Linux - Networking 3 03-25-2002 01:41 AM

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

All times are GMT -5. The time now is 02:59 PM.

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