From owner-freebsd-questions Tue Jan 28 14:31:49 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B127837B401 for ; Tue, 28 Jan 2003 14:31:47 -0800 (PST) Received: from sirppi.helsinki.fi (sirppi.helsinki.fi [128.214.205.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CE5243F43 for ; Tue, 28 Jan 2003 14:31:46 -0800 (PST) (envelope-from reissell@sirppi.helsinki.fi) Received: (from reissell@localhost) by sirppi.helsinki.fi (8.11.6/8.11.4) id h0SMVip26821 for questions@FreeBSD.ORG; Wed, 29 Jan 2003 00:31:44 +0200 (EET) From: Juhani Reissell Message-Id: <200301282231.h0SMVip26821@sirppi.helsinki.fi> Subject: dhclient scwewiness To: questions@FreeBSD.ORG Date: Wed, 29 Jan 2003 00:31:44 +0200 (EET) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ok, got a new cable modem. Pretty good so far. Now, I just need to get the DHCP client working. Haven't gotten too lucky with that so far. First, I just put the line ifconfig_xl0="DHCP" in rc.conf. That did something. Resolv.conf looked good and the leases file in /var/db looked tremendous. But routing didn't work. Couldn't ping anything: nameservers, the supposed default routers or anything. Then, to get something in the log files, I tried starting the dhclient manually. Now, I see this: mursu dhclient: New Network Number: 213.243.154.0 mursu dhclient: New Broadcast Address: 213.243.155.255 mursu dhclient: New IP Address (xl0): 213.243.155.19 mursu dhclient: New Subnet Mask (xl0): 255.255.254.0 mursu dhclient: New Broadcast Address (xl0):213.243.155.255 mursu dhclient: New Routers: 213.243.154.1 in /var/log/messages. This looks promising. But the routing tables don't. This is what I see with netstat -rn: Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 2 232 lo0 127.53.0.1 127.53.0.1 UH 1 2 lo0 213.243.155.19 127.0.0.1 UGHS 0 0 lo0 And ifconfig gives: xl0: flags=8843 mtu 1500 options=3 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:a0:24:55:02:24 media: Ethernet 10baseT/UTP status: active lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet 127.53.0.1 netmask 0xffffffff If I ping the supposed default router 213.243.155, I see: PING 213.243.155.1 (213.243.155.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host And when I ping 213.243.155.19, I see strange things: ... 36 bytes from localhost (127.0.0.1): Redirect Host(New addr: 127.0.0.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 280a 0 0000 04 01 9e97 127.0.0.1 213.243.155.19 36 bytes from localhost (127.0.0.1): Redirect Host(New addr: 127.0.0.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 280a 0 0000 03 01 9f97 127.0.0.1 213.243.155.19 .... (Looks like the modem is alive) So, the question is: What knob must I turn to get dhclient to set the default route properly? Otherwise the setup look reasonable. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message