|
DragonFlyBSD: Network not working after boot
When I boot into DragonFlyBSD 1.0A the external network does not work. Here is my configuration and the output of ifconfig and netstat-rn:
ifconfig_sk0="inet 192.168.0.3 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
hostname="toronto"
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::211:2fff:fe30:c87%sk0 prefixlen 64 scopeid 0x2
ether 00:11:2f:30:0c:87
media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
status: active
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 3 0 sk0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.0 link#2 UC 1 0 sk0
192.168.0.1 00:09:5b:46:5f:40 UHLW 4 0 sk0 1057
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%sk0/64 link#2 UC sk0
fe80::211:2fff:fe30:c87%sk0 00:11:2f:30:0c:87 UHL lo0
fe80::%lo0/64 fe80::1%lo0 Uc lo0
fe80::1%lo0 link#7 UHL lo0
ff01::/32 ::1 U lo0
ff02::%sk0/32 link#2 UC sk0
ff02::%lo0/32 ::1 UC lo0
Funny thing is that my internal network works. I can ping 192.168.0.1 (router) and 192.168.0.2 (second computer). However, external network does not work.
After executing the following two commands, everything works fine:
ifconfig sk0 192.168.0.4
route add default 192.168.0.1
Output of ifconfig and netstat -r is now:
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::211:2fff:fe30:c87%sk0 prefixlen 64 scopeid 0x2
inet 192.168.0.4 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:11:2f:30:0c:87
media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
status: active
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 0 2 sk0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.0 link#2 UC 1 0 sk0
192.168.0.1 00:09:5b:46:5f:40 UHLW 1 0 sk0 1178
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%sk0/64 link#2 UC sk0
fe80::211:2fff:fe30:c87%sk0 00:11:2f:30:0c:87 UHL lo0
fe80::%lo0/64 fe80::1%lo0 Uc lo0
fe80::1%lo0 link#7 UHL lo0
ff01::/32 ::1 U lo0
ff02::%sk0/32 link#2 UC sk0
ff02::%lo0/32 ::1 UC lo0
I would appreciate any hints in resolving this "interesting" problem.
|