LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   LAN network issues. ( (https://www.linuxquestions.org/questions/linux-networking-3/lan-network-issues-29942/)

luck02 09-09-2002 01:21 AM

LAN network issues. (
 
Ok, I have Debian 3.0 installed and running on my p233..

Among the functions I want it to perform is to act as a router for 2 other machines.

My DSL line currently runs into a hub from wich I have a line going to my windows machine and my linux machine. From eth1 I have a line going straight into another machine while I am setting this up... Once it's working I will be purchasing a hub and running two lines from it.

I have installed a second NIC card into the linux box and seem to have it configured properly. IE: when I

ifconfig eth1 192.168.0.1

It seems to be working and I can ping eth1 without problems..

From there I have tried several rulesets for setting up masquerading etc, and I can't get ANY communication with the machine it's plugged directly into. When I try to set up a route "route add -net 192.168.1.0 netmask 255.255.255.0 gw <insert my ISP's gateway here> dev eth1
"
I get this error message:

That network is unreachable.

The only thing that I can think of is that I should be useing a cross over cable instead of a straight cable, would that cause these problems or am I barking up the wrong tree?

TIA

Also, could anyone suggest further resources on these subjects? Specifically about cross over & straight cables as that's the part I don't understand..

Mik 09-09-2002 04:57 AM

If you do not have a hub between the two machines then you should definetly be using a crossover cable.

Chapter 5 of the ethernet howto
http://www.tldp.org/HOWTO/Ethernet-HOWTO.html


All times are GMT -5. The time now is 04:31 AM.