LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing Problem? Help Needed. (http://www.linuxquestions.org/questions/linux-networking-3/routing-problem-help-needed-71652/)

KevinGuy 07-10-2003 05:01 PM

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.

serz 07-10-2003 07:17 PM

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.

KevinGuy 07-10-2003 07:29 PM

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

KevinGuy 07-11-2003 03:11 PM

Anyone?

david_ross 07-11-2003 03:18 PM

You have 2 cards using the same network - this won't work properly. Like serz said - change one of your networks.

neo77777 07-11-2003 03:21 PM

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

KevinGuy 07-11-2003 03:39 PM

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?

david_ross 07-12-2003 05:21 AM

Try:
route del 192.168.206.0 netmask 255.255.255.0 dev eth0


All times are GMT -5. The time now is 08:37 PM.