Netzwerk teilweise offline
Hi,
mein Bruder hat grad ein Problem, sein Rechner kriegt keine Verbindung
mehr hin :-(
Also folgendes Setup:
morpheus - Laptop, IP per DHCP aus 192.168.2.40-192.168.2.50
mathias - Rechner vom Bruder, WinXP, automatisch IP-Addresse beziehen,
Fallback mit 192.168.1.3
umts - UMTS-Box IP statisch - 192.168.3.1
neo - Router (Sarge), 3 Interfaces - lan0(192.168.1.1), lan1(192.168.2.1),
lan2(192.168.3.2)
Von morpheus erreiche ich neo und umts (und damit I-Net). DHCP geht
wunderbar.
Wenn mathias seine DHCP-Lease erneuert sehe ich mit ethereal auf lan0
die DHCPDISCOVER, aber es werden auf keinem Interface DHCPOFFER's
rausgeschickt, obwohl laut Syslog dies passiert:
Jan 19 19:47:59 neo dhcpd: DHCPDISCOVER from 00:c0:df:f2:3a:64 (mathias) via lan0
Jan 19 19:48:00 neo dhcpd: DHCPOFFER on 192.168.1.50 to 00:c0:df:f2:3a:64 (mathias) vi
a lan0
Jan 19 19:48:03 neo dhcpd: DHCPDISCOVER from 00:c0:df:f2:3a:64 (mathias) via lan0
Jan 19 19:48:03 neo dhcpd: DHCPOFFER on 192.168.1.50 to 00:c0:df:f2:3a:64 (mathias) vi
a lan0
Jan 19 19:48:11 neo dhcpd: DHCPDISCOVER from 00:c0:df:f2:3a:64 (mathias) via lan0
Jan 19 19:48:11 neo dhcpd: DHCPOFFER on 192.168.1.50 to 00:c0:df:f2:3a:64 (mathias) vi
a lan0
Jan 19 19:48:26 neo dhcpd: DHCPDISCOVER from 00:c0:df:f2:3a:64 (mathias) via lan0
Jan 19 19:48:26 neo dhcpd: DHCPOFFER on 192.168.1.50 to 00:c0:df:f2:3a:64 (mathias) vi
a lan0
Die dhcpd-Konfig sieht so aus:
ddns-update-style interim;
ddns-domainname "apaku.dnsalias.org";
ddns-updates on;
ignore client-updates;
option domain-name "apaku.dnsalias.org";
option domain-name-servers 192.168.2.1;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
option broadcast-address 192.168.1.255;
range 192.168.2.40 192.168.2.50;
host morpheus {
ddns-hostname morpheus;
hardware ethernet 00:02:3F:67:BD:6C;
}
}
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
range 192.168.1.40 192.168.1.50;
host mathias {
ddns-hostname mathias;
hardware ethernet 00:c0:df:f2:3a:64;
}
}
Beide Interfaces, lan0 und lan1 sind in /etc/default/dhcp3-server als
INTERFACES eingetragen.
routing sieht auch gut aus:
root@neo:~>route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 lan2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 lan1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 lan0
0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 lan2
Bei ifconfig sehe ich auch nix:
root@neo:~>ifconfig lan0
lan0 Link encap:Ethernet HWaddr 00:20:AF:ED:9E:A6
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:283 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40955 (39.9 KiB) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xd000
root@neo:~>ifconfig lan1
lan1 Link encap:Ethernet HWaddr 00:13:46:30:4B:C7
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:519638 errors:0 dropped:0 overruns:0 frame:0
TX packets:563734 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36457995 (34.7 MiB) TX bytes:264128989 (251.8 MiB)
Interrupt:5 Base address:0x8000
root@neo:~>ifconfig lan2
lan2 Link encap:Ethernet HWaddr 00:02:44:87:3E:46
inet addr:192.168.3.2 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:217943 errors:0 dropped:0 overruns:0 frame:0
TX packets:173810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:209049655 (199.3 MiB) TX bytes:12561008 (11.9 MiB)
Interrupt:9 Base address:0xe000
Neo macht MASQUERADING, sonst nix:
root@neo:~>iptables -L -t nat -vn
Chain PREROUTING (policy ACCEPT 22357 packets, 1316K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 692 packets, 73244 bytes)
pkts bytes target prot opt in out source destination
5 349 MASQUERADE all -- * lan2 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 721 packets, 75494 bytes)
pkts bytes target prot opt in out source destination
root@neo:~>iptables -L -vn
Chain INPUT (policy ACCEPT 21650 packets, 7270K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 118 packets, 10427 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 21381 packets, 7846K bytes)
pkts bytes target prot opt in out source destination
Pings von mathias auf neo (per IP natuerlich) kommen ebenfalls an, aber
ich sehe bei ethereal auch keine Antwort auf dem jeweiligen oder einem
anderen Interface.
Irgendjemand hier eine Idee wo ich da noch suchen koennte?
Andreas
--
It is so very hard to be an
on-your-own-take-care-of-yourself-because-there-is-no-one-else-to-do-it-for-you
grown-up.
Reply to: