View previous topic :: View next topic |
Author |
Message |
Chris_tian n00b
Joined: 11 May 2005 Posts: 42
|
Posted: Sun Jun 12, 2005 7:26 pm Post subject: unable to set up networking |
|
|
Hello,
last Months I have tried to set up a network myself several times without success. Now that I got a notebook I had to try again. I followed the necessary steps in the Gentoo Handbook und set up all I had to, but I am still unable to let the computers ping each other.
My configuration is as follows
PC.eth0[@192.168.0.1] <=> ADSL
PC.eth1[@192.168.0.2] <=> Laptop.eth0[@192.168.0.3]
Here are some infos...
Code: | @PC
ifconfig:
eth0 Protokoll:Ethernet Hardware Adresse 00:0B:6A:0A:0D:19
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:636371 errors:0 dropped:0 overruns:0 frame:0
TX packets:481128 errors:0 dropped:0 overruns:0 carrier:0...
eth1 Protokoll:Ethernet Hardware Adresse 00:E0:7D:7F:1B:56
inet Adresse:192.168.0.2 Bcast:192.168.0.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:148 dropped:0 overruns:0 carrier:294
Kollisionen:2499 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:19564 (19.1 Kb)
Interrupt:11 Basisadresse:0xd400
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1 ...
ppp0 Protokoll:Punkt-zu-Punkt Verbindung ...
/etc/conf.d/net:
iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth1="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth0="up"
broadcast_eth0="192.168.0.255 192.168.0.255"
route -n:
Ziel Router Genmask Flags Metric Ref Use Iface
[ADSL-IP] 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 [ADSL-IP] 0.0.0.0 UG 0 0 0 ppp0
|
Code: | @Laptop:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:40:45:27:21:10
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:5670 (5.5 Kb)
Interrupt:23 Base address:0xc800
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:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9711 (9.4 Kb) TX bytes:9711 (9.4 Kb)
/etc/conf.d/net:
iface_eth0="192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0"
iface_eth0="up"
gateway="eth0/192.168.0.2"
route -n:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.2 0.0.0.0 UG 0 0 0 eth0
|
I looked at several networking howtos but I have no Idea what I am doing wrong. Please can you help my get this work ?
Thanks in advance Christian |
|
Back to top |
|
|
battersea Tux's lil' helper
Joined: 08 Nov 2003 Posts: 122 Location: Hove, Belgium
|
Posted: Sun Jun 12, 2005 7:33 pm Post subject: |
|
|
I'm guessing the problem lies in the physical connection. Do the LED's of the network interfaces indicate there is a connection?
And how did you connect PC.eth1 and Laptop.eth0? Just with a single network cable? Or with a hub or switch in between?
If you want to connect both network interfaces with just a cable, make sure you are using a UTP crosslink cable. A regular UTP cable, won't work (only works with a hub or switch). |
|
Back to top |
|
|
Chris_tian n00b
Joined: 11 May 2005 Posts: 42
|
Posted: Tue Jun 14, 2005 8:37 am Post subject: |
|
|
Hey, thanks. That was the right hint. I bought a new cable and it works fine now.
Christian |
|
Back to top |
|
|
|