LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configure DSL and Linux network (https://www.linuxquestions.org/questions/linux-networking-3/configure-dsl-and-linux-network-335284/)

Darrell22 06-19-2005 09:14 PM

Configure DSL and Linux network
 
Dear Experts,

I have 2 XP/Linux dual boot machines.

Previously, these machines were connected with a
crossover cable, and they could talk to each other.
But now, there is a DSL modem, and router that
is not configured right.

I have installed DSL on the XP side, and it is working well.
Now, I'm trying to get it to work on Linux. First and
foremost, I need the two Linux machines to talk to each
other, through the router. Internet is secondary.
Wireless is completely unnecessary, and unwanted.

So far, I can't even ping the modem, or router, so
some fundamental configuration is needed.


Hardware:
The IP addresses are what is configured on the XP side.

2 XP/Linux dual boot machines
192.168.2.2 - white
192.168.2.3 - red


(Westell) DSL modem with Verizon
192.168.1.1


Belkin Wireless G router
192.168.2.1
also
192.168.1.47



Linux: Redhat 3.2
Kernel: 2.4.21-27.0.2.ELorafw1


I want the private network to be called:
testrac.com


The IP addresses need to be static.


--------------------------

Here is some analysis.

[root@red notes]# ping 192.168.1.1
connect: Network is unreachable

[root@red notes]# ping 192.168.1.47
connect: Network is unreachable

Fortunately, the machine can ping itself.


cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.2.3 red.testrac.com red
192.168.2.2 white.testrac.com white
127.0.0.1 localhost.localdomain localhost


route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo


cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=red.testrac.com


ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:917 errors:0 dropped:0 overruns:0 frame:0
TX packets:743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189781 (185.3 Kb) TX bytes:53423 (52.1 Kb)
Interrupt:10 Base address:0xdf40 Memory:fcffb000-fcffb038

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16505 errors:0 dropped:0 overruns:0 frame:0
TX packets:16505 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1750236 (1.6 Mb) TX bytes:1750236 (1.6 Mb)


cat /etc/resolv.conf
search testrac.com

cat /etc/dhcpd.conf
cat: /etc/dhcpd.conf: No such file or directory


route add default gw 192.168.1.1

SIOCADDRT: Network is unreachable


--------------------------


I've been looking for a good how-to on the web, but
can't find anything concise. If you know of some
good concise web pages, please refer me to them.

Or, if you know what I need to do, please let
me know.


Thanks!

Sandman1 06-19-2005 10:41 PM

Subnet
 
The problem i see is that you are on two different subnets. You are probably using a netmask of 255.255.255.0 and 192.168.1.0 cannot access 192.168.2.0. An easy fix would be to put them all on one subnet or change the netmask to 255.255.0.0. Another way would be to implement some routing rules on the router so that the router can route the two different subnets accordingly.


All times are GMT -5. The time now is 10:48 PM.