Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-01-2003, 10:51 PM   #1
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] and an external nic card [eth 0 at].
· The router is a RedHat 7.3 machine running the 2.4.7 kernal.
· The default gateway for eth0 is
· 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

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.

Old 12-01-2003, 11:09 PM   #2
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 =
eth1 =
Old 12-04-2003, 11:32 PM   #3
LQ Newbie
Registered: Nov 2003
Posts: 2

Original Poster
Rep: Reputation: 0
2 nic router problem


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



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 05:58 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 02:20 AM
Multi-NIC router whirlpool78 Linux - Networking 3 09-15-2004 02:18 PM
Another Suse 9.1 + router/NIC problem neofile Linux - Networking 24 07-27-2004 10:18 AM
Need help with 3-NIC linux router psion Linux - Networking 10 06-06-2002 07:30 PM

All times are GMT -5. The time now is 12:10 AM.

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