linux-l: Ethernet-Frage

Carsten Paeth calle at calle.in-berlin.de
Mi Jul 30 12:02:07 CEST 1997


> 
> Hi!
> 
> Gerade versuche ich ein Mini-LAN aufzubauen und komme einfach
> nicht weiter.
> 
> Rechner 1: 192.168.17.42
> Rechner 2: 192.168.17.43

Rechner 1:

ifconfig lo 127.0.0.1 up
route add 127.0.0.1 lo
route add -net 127.0.0.0 netmask 255.0.0.0 lo
route add 192.168.17.42 gw 127.0.0.1 lo
ifconfig eth0 192.168.17.42 netmask 255.255.255.0 up
route add -net 192.168.17.42 netmask 255.255.255.0 eth0

Rechner 2:

ifconfig lo 127.0.0.1 up
route add 127.0.0.1 lo
route add -net 127.0.0.0 netmask 255.0.0.0 lo
route add 192.168.17.43 gw 127.0.0.1 lo
ifconfig eth0 192.168.17.43 netmask 255.255.255.0 up
route add -net 192.168.17.43 netmask 255.255.255.0 eth0

calle

> 
> Rechner 1:
> 
> route -n
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.17.42   0.0.0.0         255.255.255.255 UH    0      0        0 dummy0
  ^^^^^^^^^^^^^^ Nach dummy0 ist Asche                                      
> 127.0.0.0       0.0.0.0         255.255.255.0   U     0      0        0 lo
> 192.168.17.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        3 lo
> 
> ifconfig
> 
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:545 errors:0 dropped:0 overruns:0
>           TX packets:545 errors:0 dropped:0 overruns:0
> 
> dummy0    Link encap:10Mbps Ethernet  HWaddr 00:00:00:00:00:00
>           inet addr:192.168.17.42  Bcast:192.168.17.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:0
> 
> eth0      Link encap:10Mbps Ethernet  HWaddr 00:80:AD:B1:37:DC
>           inet addr:192.168.17.42  Bcast:192.168.17.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:0
>           Interrupt:11 Base address:0x240 
> 
> 
> Rechner 2:
> 
> route -n
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.17.43   0.0.0.0         255.255.255.255 UH    0      0        0 dummy0
  ^^^^^^^^^^^^^ Nach dummy0 ist Asche
> 127.0.0.0       0.0.0.0         255.255.255.0   U     0      0        0 lo
> 192.168.17.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 
> ifconfig
> 
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:0
> 
> dummy0    Link encap:10Mbps Ethernet  HWaddr 00:00:00:00:00:00
>           inet addr:192.168.17.43  Bcast:192.168.17.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:0
> 
> eth0      Link encap:10Mbps Ethernet  HWaddr 00:0A:24:24:71:52
>           inet addr:192.168.17.43  Bcast:192.168.17.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:0
>           Interrupt:10 Base address:0x300 
> 
> PING 192.168.17.43 (192.168.17.43): 56 data bytes
> 
> --- 192.168.17.43 ping statistics ---
> 6 packets transmitted, 0 packets received, 100% packet loss
> 
> telnet 192.168.17.43
> 
> Trying 192.168.17.43...
> telnet: Unable to connect to remote host: No route to host
> 
> 
> Ich benutze S.u.S.E 4.4. Hoffe, dass die Informationen reichen.
> 
> Fuer jedwede Hilfe dankbar,
> 
> Matthias
> 
> 
> -- 
> Matthias Kranz	kranz at inf.fu-berlin.de
>   http://www.inf.fu-berlin.de/~kranz
> 




Mehr Informationen über die Mailingliste linux-l