LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-10-2003, 05:01 PM   #1
KevinGuy
LQ Newbie
 
Registered: Jul 2003
Posts: 29

Rep: Reputation: 15
Routing Problem? Help Needed.


Alright, Here is the situation.

First of all, I am new to linux sort of. I am running RedHat 8.0

Ok, There is two seperate networks.

The first is 192.168.0.0

The second is 192.168.206.0

192.168.0.0 is a network that is using DHCP for there internet access.

192.168.206.0 will be using static IP's. There will be about 3 - 6 machines that will be using this network. This network will be connecting through 192.168.0.0 to gain internet access.

192.168.0.0 is using a router given to them by Qwest. Router's address is 192.168.0.1 of course.

192.168.206.0 will be using the linux machine.

The linux maching will be acting as router to pass packets from 192.168.206.0 to 192.168.0.0 for internet access.

Alright, now that you know all that.. Here is the problem.

My Linux machine has of course two network cards in it, one being 192.168.0.41(Assigned by DHCP) and the other being 192.168.206.1

From the linux box I can ping everything from the internet to my inside network, example being a station with 192.168.206.3

Now when I go to that station 192.168.206.3 I can ping everything to 192.168.0.41 and anything past that I cannot ping, an example being 192.168.0.1 or the internet.

Does this relate to my routing tables or does this relate to Permission and my iptables.

Here is my netstat -r

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.206.0 * 255.255.255.0 U 40 0 0 eth0
192.168.206.0 * 255.255.255.0 U 40 0 0 eth1
192.168.0.0 * 255.255.0.0 U 40 0 0 eth0
127.0.0.0 * 255.0.0.0 U 40 0 0 lo
default 192.168.0.1 0.0.0.0 UG 40 0 0 eth0

Am I missing something in there, To me it doesnt look like I am, but I coudl be over looking something.

Thanks.
 
Old 07-10-2003, 07:17 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
I belive it is because your second NIC is using other broadcast.

Try changing 192.168.206.3 to 198.168.0.69 or something.
 
Old 07-10-2003, 07:29 PM   #3
KevinGuy
LQ Newbie
 
Registered: Jul 2003
Posts: 29

Original Poster
Rep: Reputation: 15
192.168.206.3 is just another computer on the network.

The two network cards on the Router are.

eth0: 192.168.0.41

eth1: 192.168.206.1
 
Old 07-11-2003, 03:11 PM   #4
KevinGuy
LQ Newbie
 
Registered: Jul 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Anyone?
 
Old 07-11-2003, 03:18 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You have 2 cards using the same network - this won't work properly. Like serz said - change one of your networks.
 
Old 07-11-2003, 03:21 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Yep, it is right there in your routing table
192.168.206.0 * 255.255.255.0 U 40 0 0 eth0
192.168.0.0 * 255.255.0.0 U 40 0 0 eth0
 
Old 07-11-2003, 03:39 PM   #7
KevinGuy
LQ Newbie
 
Registered: Jul 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Hrmm, I have one card using the outsiide network which is 192.168.0.0 and I have one card for out inside network which is 192.168.206.0

How are they using the same network?

What do I need to change in my routing table?
 
Old 07-12-2003, 05:21 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try:
route del 192.168.206.0 netmask 255.255.255.0 dev eth0
 
  


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
another routing problem... dugu98cxw Linux - Networking 5 11-11-2005 11:15 AM
Special case of routing mudule needed! woosting Linux - Networking 5 06-03-2005 07:43 AM
Problem with routing. jankarlsen Linux - Networking 5 08-12-2004 11:37 PM
Routing command needed carrellc Linux - Networking 6 05-28-2004 11:59 AM
routing problem manthram Linux - Networking 6 04-01-2002 08:42 PM


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