LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2006, 08:16 PM   #1
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
Route Table


Hello,

I just setup a linux router using SuSE 10.0. I have three NICS. One for NIC for my public zone (Internet) and two NICS for my internal network.

Internal NIC IP: 192.168.1.254
Internal NIC IP: 192.168.2.254

Both internal networks are able to access the Internet; however, they are not able to connect to each other. Everytime I try to access an item from 192.168.1.x to 192.168.2.x (and vica-versa), I get a timeout issue. Which I believe my routing table will not the networks talk to each other.

I believe my problem is with my routing table. My current routing table looks like the following:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth3
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
Internet * 255.255.255.0 U 0 0 0 eth2
link-local * 255.255.0.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default Internet 0.0.0.0 UG 0 0 0 eth2

Ineternet = My gateway address.

What suggestion would you give me to resolve my networking issue?

Thanks for your help!
 
Old 03-14-2006, 10:03 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Internal NIC IP: 192.168.1.254 Is this eth1?
Internal NIC IP: 192.168.2.254 Is this eth3?
 
Old 03-14-2006, 11:15 PM   #3
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 31
eth1 is 192.168.1.254
eth2 is Internet IP
eth3 is 192.168.2.254
 
Old 03-15-2006, 05:31 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check the routing tables on the other hosts. For example, if you have a computer "smith" with an IP address of 192.168.1.250, and a computer "jones" with an address of 192.168.2.240, check that "smith" has a route entry for the 192.168.2 subnet and that that "jones" has an entry for the 192.168.1 subnet.
 
Old 03-15-2006, 10:56 AM   #5
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 31
Thanks for your help jschiwal!

I verfied what you have said, and that is why I need to do. My next question is how do I push those configs out via my dhcp server? Below is my current dhcp config file.

authoritative ;
ddns-update-style none;
ddns-updates off;
max-lease-time 172800;
default-lease-time 14400;
subnet 192.168.1.0 netmask 255.255.255.0 {
option broadcast-address 192.168.1.255;
option domain-name "home.net";
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.254;
range 192.168.1.100 192.168.1.150;
}
subnet 192.168.2.0 netmask 255.255.255.0 {
option broadcast-address 192.168.2.255;
option domain-name "wireless.home.net";
option routers 192.168.2.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.2.254;
range 192.168.2.100 192.168.2.150;
}

Thanks for your help!
 
Old 03-17-2006, 08:48 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I took a look in the dhcp.pdf howto. The routers entry is the router/gateway value, so that looks correct. However, are you running your own bind service. I think that the domain-name-servers are the internet dns servers that the dhcp clients should use. Although, the values in the how-to look similar. I don't run a dhcp server because I use my linksys router for that.

Your distro may have a linux-howtos package with all of the howtos found on the www.tldp.org website.

Last edited by jschiwal; 03-17-2006 at 08:49 AM.
 
Old 03-17-2006, 09:15 AM   #7
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 31
You are correct. I am running my own dns (bind) server.

I am going to check out my sysctl.conf file...I added some hardening items in there (way back in the day). This might be my problem.

Any thoughts?? Thank you for help on going help jschiwal! :-)
 
Old 03-18-2006, 09:01 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I wonder if you also want to include the address for an internet dns server, or verify whether your DNS server can query an internet DNS server when it doesn't have the answer itself.. What is often done in larger networks, is having two name servers. The one inside the firewall knows nothing about any hosts outside the lan. The one located in the dmz knows nothing about hosts inside the network.

Last edited by jschiwal; 03-18-2006 at 09:06 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
What in happening to my route table??? Julian_Thong Linux - Networking 2 08-22-2004 01:16 PM
route table problem fdr Linux - Networking 2 02-07-2004 07:33 PM
route table prob fdr Linux - Wireless Networking 0 02-03-2004 05:41 AM
Route table christianj Linux - Networking 3 11-17-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 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