Date: Wed, 29 Jan 2003 00:31:44 +0200 (EET) From: Juhani Reissell <reissell@cc.helsinki.fi> To: questions@FreeBSD.ORG Subject: dhclient scwewiness Message-ID: <200301282231.h0SMVip26821@sirppi.helsinki.fi>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=3<rxcsum,txcsum> 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<UP,LOOPBACK,RUNNING,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301282231.h0SMVip26821>