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 12-01-2003, 09:51 PM   #1
williamc
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
2 nic router problem


I am a newby working on implementing a Linux router as part of a small network. The network consists of:

· hosts which are set at [192.168.48.xx];
· the router with an internal nic card [eth1 at 192.168.48.1] and an external nic card [eth 0 at 192.168.48.2].
· The router is a RedHat 7.3 machine running the 2.4.7 kernal.
· The default gateway for eth0 is 172.31.34.2
· IPChains is disabled
· IPTables is automatic
· Firewall is disabled [for now]
· /etc/sysctl.conf has the line “net.ipv4.ip_forward=1”
· Routes that have been entered are:

Gateway netmask Network
172.31.48.1 255.255.0.0 172.31.0.0
192.168.48.1 255.255.255.0 192.168.48.0


We can ping the default gateway from router eth0.

We can ping the router eth0 from the hosts.

We can ping the router eth1 from the hosts.

We have been unable to ping the default gateway from the hosts.

We have been unable to ping from eth0 to eth1

Thanks to all. This forum has been a great deal of help.

Bill
 
Old 12-01-2003, 10:09 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You've made a classic networking blunder. Each NIC needs to be on it's own subnet. The ip_forward setting will take care of making packets go where they're supposed to, you don't have to "point" the interfaces at each other.

Reconfigure as such:
eth0 = 172.31.48.2
eth1 = 192.168.48.1

172.31.48.1 0.0.0.0 0.0.0.0
172.31.48.2 172.31.48.0 255.255.255.0
192.168.48.1 192.168.48.0 255.255.255.0
 
Old 12-04-2003, 10:32 PM   #3
williamc
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Original Poster
Rep: Reputation: 0
2 nic router problem

Chort:

Linux routing is alive and well. Thanks for the assistance.

Bill
 
  


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
3 NIC Homebrew Router, WiFi Problem Vlad the E-Mailer Linux - Wireless Networking 3 08-22-2005 04:58 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
Multi-NIC router whirlpool78 Linux - Networking 3 09-15-2004 01:18 PM
Another Suse 9.1 + router/NIC problem neofile Linux - Networking 24 07-27-2004 09:18 AM
Need help with 3-NIC linux router psion Linux - Networking 10 06-06-2002 06:30 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration