免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4942 | 回复: 6
打印 上一主题 下一主题

[NetBSD] NetBSD 6.0.1 DHCP 获取地址失败,静态配置 IP 成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-06 00:05 |只看该作者 |倒序浏览
最近在本本上装了 NetBSD 6.0.1。奇怪的是,地址 dhcp 方式获取不了,静态配置可以。哪位达人指点一下,先行谢过。

在系统启动的时候有这样的打印:

route: writing to routing socket: network is unreachable

google 了一下,找到一个FreeBSD 上类似的问题,但看半天没看懂人家咋解决的:

http://forums.freebsd.org/showthread.php?p=183560


静态配置时的,rc.conf 相关内容:

  1. rc_configured=YES

  2. # Add local overrides below
  3. #
  4. hostname=NETBSD
  5. # ifconfig_wm0=dhcp
  6. ifconfig_wm0="inet 192.168.1.120 netmask 255.255.255.0"
  7. sshd=YES
  8. ntpd=NO
  9. wscons=YES
  10. defaultroute=192.168.1.1
复制代码
dhcp 方式时的 rc.conf:

  1. rc_configured=YES

  2. # Add local overrides below
  3. #
  4. hostname=NETBSD
  5. ifconfig_wm0=dhcp
  6. # ifconfig_wm0="inet 192.168.1.120 netmask 255.255.255.0"
  7. sshd=YES
  8. ntpd=NO
  9. wscons=YES
  10. # defaultroute=192.168.1.1
复制代码
执行

  1. # /etc/rc.d/network restart
复制代码
后的输出:

  1. Stopping network.
  2. Deleting aliases.
  3. Downing network interfaces: wm0.
  4. Starting network.
  5. Hostname: NETBSD
  6. IPv6 mode: host
  7. Configuring network interfaces: wm0.
  8. Adding interface aliases:.
复制代码
ifconfig wm0 的输出:

  1. wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  2.         capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
  3.         enabled=0
  4.         address: 00:24:7e:68:40:40
  5.         media: Ethernet autoselect (100baseTX full-duplex,flowcontrol,rxpause,txpause)
  6.         status: active
  7.         inet6 fe80::224:7eff:fe68:4040%wm0 prefixlen 64 scopeid 0x1
复制代码
以下是 dmesg:

  1. Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  2.     2006, 2007, 2008, 2009, 2010, 2011, 2012
  3.     The NetBSD Foundation, Inc.  All rights reserved.
  4. Copyright (c) 1982, 1986, 1989, 1991, 1993
  5.     The Regents of the University of California.  All rights reserved.

  6. NetBSD 6.0.1 (GENERIC)
  7. total memory = 3032 MB
  8. avail memory = 2969 MB
  9. timecounter: Timecounters tick every 10.000 msec
  10. timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
  11. LENOVO 6475DR2 (ThinkPad T400)
  12. mainbus0 (root)
  13. cpu0 at mainbus0 apid 0: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz, id 0x1067a
  14. cpu1 at mainbus0 apid 1: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz, id 0x1067a
  15. ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 20, 24 pins
  16. acpi0 at mainbus0: Intel ACPICA 20110623
  17. acpi0: X/RSDT: OemId <LENOVO,TP-7U   ,00002160>, AslId < LTP,00000000>
  18. acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
  19. acpi0: SCI interrupting at int 9
  20. timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
  21. hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
  22. timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
  23. acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
  24. MEM (PNP0C01) at acpi0 not configured
  25. acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
  26. acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
  27. SIO (PNP0C02) at acpi0 not configured
  28. attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43 irq 0
  29. pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
  30. midi0 at pcppi1: PC speaker
  31. sysbeep0 at pcppi1
  32. npx1 at acpi0 (FPU, PNP0C04): io 0xf0 irq 13
  33. npx1: reported by CPUID; using exception 16
  34. pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
  35. pckbc2 at acpi0 (MOU, IBM0057) (aux port): irq 12
  36. TPM (INTC0102) at acpi0 not configured
  37. acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
  38. acpibat0: LGC LION rechargeable battery
  39. acpibat0: granularity: low->warn 0.001 Wh, warn->full 0.001 Wh
  40. acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
  41. thinkpad0 at acpi0 (HKEY, IBM0068)
  42. acpivga0 at acpi0 (VID): ACPI Display Adapter
  43. acpiout0 at acpivga0 (LCD0, 0x0400): ACPI Display Output Device
  44. acpiout0: brightness levels: 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 100
  45. acpiout1 at acpivga0 (CRT0, 0x0100): ACPI Display Output Device
  46. acpiout2 at acpivga0 (DVI0, 0x0300): ACPI Display Output Device
  47. acpiout3 at acpivga0 (DVI1, 0x0301): ACPI Display Output Device
  48. acpiout4 at acpivga0 (DVI2, 0x0302): ACPI Display Output Device
  49. acpivga0: unknown output device acpiout1
  50. acpivga0: unknown output device acpiout2
  51. acpivga0: unknown output device acpiout3
  52. acpivga0: unknown output device acpiout4
  53. acpivga0: connected output devices:
  54. acpivga0:   0x0400 (acpiout0): Unknown Output Device, head 0
  55. acpiwmi0 at acpi0 (WMI1, PNP0C14-1): ACPI WMI Interface
  56. acpiwmibus at acpiwmi0 not configured
  57. acpitz0 at acpi0 (THM0)
  58. acpitz0: levels: critical 127.0 C, passive cooling
  59. acpitz1 at acpi0 (THM1): cpu0 cpu1
  60. acpitz1: levels: critical 100.0 C, passive 95.5 C, passive cooling
  61. apm0 at acpi0: Power Management spec V1.2
  62. attimer1: attached to pcppi1
  63. pckbd0 at pckbc1 (kbd slot)
  64. pckbc1: using irq 1 for kbd slot
  65. wskbd0 at pckbd0: console keyboard
  66. pms0 at pckbc1 (aux slot)
  67. pms0: Synaptics touchpad version 7.0
  68. pms0: Passthrough, Palm detect
  69. pckbc1: using irq 12 for aux slot
  70. wsmouse0 at pms0 mux 0
  71. pci0 at mainbus0 bus 0: configuration mode 1
  72. pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
  73. pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x2a40 (rev. 0x07)
  74. agp0 at pchb0: detected 32764k stolen memory
  75. agp0: aperture at 0xd0000000, size 0x10000000
  76. vga1 at pci0 dev 2 function 0: vendor 0x8086 product 0x2a42 (rev. 0x07)
  77. vga1: WARNING: ignoring 64-bit BAR @ 0x10
  78. vga1: WARNING: ignoring 64-bit BAR @ 0x18
  79. wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
  80. wsmux1: connecting to wsdisplay0
  81. i915drm0 at vga1: Mobile IntelM-BM-. GM45 Express Chipset
  82. i915drm0: AGP at 0xd0000000 256MB
  83. i915drm0: Initialized i915 1.6.0 20080730
  84. vendor 0x8086 product 0x2a43 (miscellaneous display, revision 0x07) at pci0 dev 2 function 1 not configured
  85. vendor 0x8086 product 0x2a44 (miscellaneous communications, revision 0x07) at pci0 dev 3 function 0 not configured
  86. pciide0 at pci0 dev 3 function 2: vendor 0x8086 product 0x2a46 (rev. 0x07)
  87. pciide0: bus-master DMA support present, but unused (no driver support)
  88. pciide0: primary channel wired to native-PCI mode
  89. pciide0: using ioapic0 pin 18 for native-PCI interrupt
  90. atabus0 at pciide0 channel 0
  91. pciide0: secondary channel wired to native-PCI mode
  92. atabus1 at pciide0 channel 1
  93. vendor 0x8086 product 0x2a47 (serial communications, interface 0x02, revision 0x07) at pci0 dev 3 function 3 not configured
  94. wm0 at pci0 dev 25 function 0: 82801I mobile (AMT) LAN Controller (rev. 0x03)
  95. wm0: interrupting at ioapic0 pin 20
  96. wm0: PCI-Express bus
  97. wm0: FLASH
  98. wm0: Ethernet address 00:24:7e:68:40:40
  99. ukphy0 at wm0 phy 2: OUI 0x000ac2, model 0x000b, rev. 1
  100. ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
  101. uhci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x2937 (rev. 0x03)
  102. uhci0: interrupting at ioapic0 pin 20
  103. usb0 at uhci0: USB revision 1.0
  104. uhci1 at pci0 dev 26 function 1: vendor 0x8086 product 0x2938 (rev. 0x03)
  105. uhci1: interrupting at ioapic0 pin 21
  106. usb1 at uhci1: USB revision 1.0
  107. uhci2 at pci0 dev 26 function 2: vendor 0x8086 product 0x2939 (rev. 0x03)
  108. uhci2: interrupting at ioapic0 pin 22
  109. usb2 at uhci2: USB revision 1.0
  110. ehci0 at pci0 dev 26 function 7: vendor 0x8086 product 0x293c (rev. 0x03)
  111. ehci0: interrupting at ioapic0 pin 23
  112. ehci0: EHCI version 1.0
  113. ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
  114. usb3 at ehci0: USB revision 2.0
  115. hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
  116. hdaudio0: interrupting at ioapic0 pin 17
  117. hdafg0 at hdaudio0: Conexant CX20561
  118. hdafg0: DAC00 2ch: HP Out [Jack]
  119. hdafg0: ADC01 2ch: Mic In [Jack]
  120. hdafg0: DAC02 2ch: Speaker [Built-In]
  121. hdafg0: ADC03 2ch: Mic In [Built-In]
  122. hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz PCM16 PCM20 PCM24 AC3
  123. audio0 at hdafg0: full duplex, playback, capture, independent
  124. hdvsmfg at hdaudio0 not configured
  125. ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x2940 (rev. 0x03)
  126. ppb0: PCI Express 1.0 <Root Port of PCI-E Root Complex>
  127. pci1 at ppb0 bus 2
  128. pci1: i/o space, memory space enabled, rd/line, wr/inv ok
  129. ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x2942 (rev. 0x03)
  130. ppb1: PCI Express 1.0 <Root Port of PCI-E Root Complex>
  131. pci2 at ppb1 bus 3
  132. pci2: i/o space, memory space enabled, rd/line, wr/inv ok
  133. iwn0 at pci2 dev 0 function 0: vendor 0x8086 product 0x4237 (rev. 0x00)
  134. iwn0: interrupting at ioapic0 pin 17
  135. iwn0: MIMO 1T2R, MoW, address 00:22:fa:eb:2b:72
  136. iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
  137. iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
  138. iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
  139. ppb2 at pci0 dev 28 function 2: vendor 0x8086 product 0x2944 (rev. 0x03)
  140. ppb2: PCI Express 1.0 <Root Port of PCI-E Root Complex>
  141. pci3 at ppb2 bus 4
  142. pci3: i/o space, memory space enabled, rd/line, wr/inv ok
  143. vendor 0x8086 product 0x444e (miscellaneous memory, revision 0x11) at pci3 dev 0 function 0 not configured
  144. ppb3 at pci0 dev 28 function 3: vendor 0x8086 product 0x2946 (rev. 0x03)
  145. ppb3: PCI Express 1.0 <Root Port of PCI-E Root Complex>
  146. pci4 at ppb3 bus 5
  147. pci4: i/o space, memory space enabled, rd/line, wr/inv ok
  148. ppb4 at pci0 dev 28 function 4: vendor 0x8086 product 0x2948 (rev. 0x03)
  149. ppb4: PCI Express 1.0 <Root Port of PCI-E Root Complex>
  150. pci5 at ppb4 bus 13
  151. pci5: i/o space, memory space enabled, rd/line, wr/inv ok
  152. uhci3 at pci0 dev 29 function 0: vendor 0x8086 product 0x2934 (rev. 0x03)
  153. uhci3: interrupting at ioapic0 pin 16
  154. usb4 at uhci3: USB revision 1.0
  155. uhci4 at pci0 dev 29 function 1: vendor 0x8086 product 0x2935 (rev. 0x03)
  156. uhci4: interrupting at ioapic0 pin 17
  157. usb5 at uhci4: USB revision 1.0
  158. uhci5 at pci0 dev 29 function 2: vendor 0x8086 product 0x2936 (rev. 0x03)
  159. uhci5: interrupting at ioapic0 pin 18
  160. usb6 at uhci5: USB revision 1.0
  161. ehci1 at pci0 dev 29 function 7: vendor 0x8086 product 0x293a (rev. 0x03)
  162. ehci1: interrupting at ioapic0 pin 19
  163. ehci1: EHCI version 1.0
  164. ehci1: companion controllers, 2 ports each: uhci3 uhci4 uhci5
  165. usb7 at ehci1: USB revision 2.0
  166. ppb5 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0x93)
  167. pci6 at ppb5 bus 21
  168. pci6: i/o space, memory space enabled
  169. cbb0 at pci6 dev 0 function 0: vendor 0x1180 product 0x0476 (rev. 0xba)
  170. fwohci0 at pci6 dev 0 function 1: vendor 0x1180 product 0x0832 (rev. 0x04)
  171. fwohci0: interrupting at ioapic0 pin 17
  172. fwohci0: OHCI version 1.10 (ROM=0)
  173. fwohci0: No. of Isochronous channels is 4.
  174. fwohci0: EUI64 00:06:1b:03:2a:3c:fe:95
  175. fwohci0: Phy 1394a available S400, 1 ports.
  176. fwohci0: Link S400, max_rec 2048 bytes.
  177. ieee1394if0 at fwohci0: IEEE1394 bus
  178. fwip0 at ieee1394if0: IP over IEEE1394
  179. fwohci0: Initiate bus reset
  180. cbb0: cacheline 0x10 lattimer 0x20
  181. cbb0: bhlc 0x822010
  182. cbb0: interrupting at ioapic0 pin 16
  183. cardslot0 at cbb0
  184. cardbus0 at cardslot0: bus 22
  185. pcmcia0 at cardslot0
  186. ichlpcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x2917 (rev. 0x03)
  187. timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
  188. ichlpcib0: 24-bit timer
  189. ichlpcib0: TCO (watchdog) timer configured.
  190. gpio0 at ichlpcib0: 64 pins
  191. piixide0 at pci0 dev 31 function 2: Intel 82801I Mobile Serial ATA Controller (ICH9) (rev. 0x03)
  192. piixide0: bus-master DMA support present
  193. piixide0: primary channel configured to compatibility mode
  194. piixide0: primary channel interrupting at ioapic0 pin 14
  195. atabus2 at piixide0 channel 0
  196. piixide0: secondary channel configured to compatibility mode
  197. piixide0: secondary channel interrupting at ioapic0 pin 15
  198. atabus3 at piixide0 channel 1
  199. ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x2930 (rev. 0x03)
  200. ichsmb0: interrupting at ioapic0 pin 23
  201. iic0 at ichsmb0: I2C bus
  202. isa0 at ichlpcib0
  203. acpicpu0 at cpu0: ACPI CPU
  204. acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
  205. acpicpu0: C2: FFH, lat   1 us, pow   500 mW
  206. acpicpu0: C3: FFH, lat  57 us, pow   100 mW, bus master check
  207. acpicpu0: P0: FFH, lat  10 us, pow 35000 mW, 2534 MHz, turbo boost
  208. acpicpu0: P1: FFH, lat  10 us, pow 35000 mW, 2533 MHz
  209. acpicpu0: P2: FFH, lat  10 us, pow 15000 mW, 1600 MHz
  210. acpicpu0: P3: FFH, lat  10 us, pow 12000 mW,  800 MHz
  211. acpicpu0: T0: FFH, lat   1 us, pow 12000 mW, 100 %
  212. acpicpu0: T1: FFH, lat   1 us, pow 10500 mW,  88 %
  213. acpicpu0: T2: FFH, lat   1 us, pow  9000 mW,  75 %
  214. acpicpu0: T3: FFH, lat   1 us, pow  7500 mW,  63 %
  215. acpicpu0: T4: FFH, lat   1 us, pow  6000 mW,  50 %
  216. acpicpu0: T5: FFH, lat   1 us, pow  4500 mW,  38 %
  217. acpicpu0: T6: FFH, lat   1 us, pow  3000 mW,  25 %
  218. acpicpu0: T7: FFH, lat   1 us, pow  1500 mW,  13 %
  219. coretemp0 at cpu0: thermal sensor, 1 C resolution
  220. acpicpu1 at cpu1: ACPI CPU
  221. coretemp1 at cpu1: thermal sensor, 1 C resolution
  222. fwohci0: BUS reset
  223. fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
  224. ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
  225. ieee1394if0: bus manager 0
  226. timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  227. acpiacad0: AC adapter online.
  228. uhub0 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  229. uhub0: 2 ports with 2 removable, self powered
  230. uhub1 at usb3: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  231. uhub1: 6 ports with 6 removable, self powered
  232. uhub2 at usb5: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  233. uhub2: 2 ports with 2 removable, self powered
  234. uhub3 at usb7: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  235. uhub3: 6 ports with 6 removable, self powered
  236. uhub4 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  237. uhub4: 2 ports with 2 removable, self powered
  238. uhub5 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  239. uhub5: 2 ports with 2 removable, self powered
  240. uhub6 at usb4: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  241. uhub6: 2 ports with 2 removable, self powered
  242. uhub7 at usb6: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  243. uhub7: 2 ports with 2 removable, self powered
  244. wd0 at atabus2 drive 0
  245. wd0: <HITACHI HTS723216L9SA60>
  246. wd0: drive supports 16-sector PIO transfers, LBA48 addressing
  247. wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
  248. ugen0 at uhub0 port 1
  249. ugen0: vendor 0x08ff Fingerprint Sensor, rev 2.00/17.03, addr 2
  250. wd0: 32-bit data port
  251. wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
  252. wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
  253. uvideo0 at uhub1 port 6 configuration 1 interface 0: Chicony Electronics Co., Ltd. Integrated Camera, rev 2.00/3.20, addr 2
  254. video0 at uvideo0: Chicony Electronics Co., Ltd. Integrated Camera, rev 2.00/3.20, addr 2
  255. ubt0 at uhub0 port 2
  256. ubt0: Lenovo Computer Corp ThinkPad Bluetooth with Enhanced Data Rate II, rev 2.00/3.99, addr 3
  257. atapibus0 at atabus3: 2 targets
  258. cd0 at atapibus0 drive 0: <Optiarc  DVD RW AD-7910S, 9H52Q14E21, 1.D1> cdrom removable
  259. cd0: 32-bit data port
  260. cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
  261. cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
  262. Kernelized RAIDframe activated
  263. boot device: wd0
  264. root on wd0a dumps on wd0b
  265. root file system type: ffs
  266. wsdisplay0: screen 1 added (80x25, vt100 emulation)
  267. wsdisplay0: screen 2 added (80x25, vt100 emulation)
  268. wsdisplay0: screen 3 added (80x25, vt100 emulation)
  269. wsdisplay0: screen 4 added (80x25, vt100 emulation)
复制代码
rcorder /etc/rc.d/* 的输出:

  1. /etc/rc.d/wdogctl
  2. /etc/rc.d/fsck_root
  3. /etc/rc.d/root
  4. /etc/rc.d/ccd
  5. /etc/rc.d/rndctl
  6. /etc/rc.d/cgd
  7. /etc/rc.d/lvm
  8. /etc/rc.d/raidframe
  9. /etc/rc.d/DISKS
  10. /etc/rc.d/swap1
  11. /etc/rc.d/fsck
  12. /etc/rc.d/mountcritlocal
  13. /etc/rc.d/ttys
  14. /etc/rc.d/bootconf.sh
  15. /etc/rc.d/pf_boot
  16. /etc/rc.d/ipsec
  17. /etc/rc.d/ipfilter
  18. /etc/rc.d/sysctl
  19. /etc/rc.d/network
  20. /etc/rc.d/wpa_supplicant
  21. /etc/rc.d/dhclient
  22. /etc/rc.d/dhcpcd
  23. /etc/rc.d/ldpd
  24. /etc/rc.d/npf
  25. /etc/rc.d/pf
  26. /etc/rc.d/route6d
  27. /etc/rc.d/routed
  28. /etc/rc.d/rtsold
  29. /etc/rc.d/staticroute
  30. /etc/rc.d/NETWORKING
  31. /etc/rc.d/mountcritremote
  32. /etc/rc.d/sysdb
  33. /etc/rc.d/newsyslog
  34. /etc/rc.d/wscons
  35. /etc/rc.d/syslogd
  36. /etc/rc.d/ppp
  37. /etc/rc.d/named
  38. /etc/rc.d/rtclocaltime
  39. /etc/rc.d/ntpdate
  40. /etc/rc.d/rpcbind
  41. /etc/rc.d/ypserv
  42. /etc/rc.d/ypbind
  43. /etc/rc.d/yppasswdd
  44. /etc/rc.d/mountall
  45. /etc/rc.d/accounting
  46. /etc/rc.d/amd
  47. /etc/rc.d/perusertmp
  48. /etc/rc.d/cleartmp
  49. /etc/rc.d/dmesg
  50. /etc/rc.d/veriexec
  51. /etc/rc.d/ldconfig
  52. /etc/rc.d/quota
  53. /etc/rc.d/mountd
  54. /etc/rc.d/nfsd
  55. /etc/rc.d/nfslocking
  56. /etc/rc.d/pwcheck
  57. /etc/rc.d/gpio
  58. /etc/rc.d/random_seed
  59. /etc/rc.d/ipnat
  60. /etc/rc.d/securelevel
  61. /etc/rc.d/swap2
  62. /etc/rc.d/virecover
  63. /etc/rc.d/altqd
  64. /etc/rc.d/ifwatchd
  65. /etc/rc.d/isdnd
  66. /etc/rc.d/downinterfaces
  67. /etc/rc.d/ipfs
  68. /etc/rc.d/ipmon
  69. /etc/rc.d/kdc
  70. /etc/rc.d/pflogd
  71. /etc/rc.d/racoon
  72. /etc/rc.d/savecore
  73. /etc/rc.d/SERVERS
  74. /etc/rc.d/DAEMON
  75. /etc/rc.d/apmd
  76. /etc/rc.d/bluetooth
  77. /etc/rc.d/bootparams
  78. /etc/rc.d/devpubd
  79. /etc/rc.d/dhcpd
  80. /etc/rc.d/dhcrelay
  81. /etc/rc.d/ftp_proxy
  82. /etc/rc.d/irdaattach
  83. /etc/rc.d/local
  84. /etc/rc.d/lpd
  85. /etc/rc.d/makemandb
  86. /etc/rc.d/mopd
  87. /etc/rc.d/motd
  88. /etc/rc.d/mrouted
  89. /etc/rc.d/ntpd
  90. /etc/rc.d/powerd
  91. /etc/rc.d/rarpd
  92. /etc/rc.d/rbootd
  93. /etc/rc.d/rtadvd
  94. /etc/rc.d/rwho
  95. /etc/rc.d/screenblank
  96. /etc/rc.d/timed
  97. /etc/rc.d/tpctl
  98. /etc/rc.d/LOGIN
  99. /etc/rc.d/wsmoused
  100. /etc/rc.d/sshd
  101. /etc/rc.d/raidframeparity
  102. /etc/rc.d/postfix
  103. /etc/rc.d/ndbootd
  104. /etc/rc.d/moused
  105. /etc/rc.d/mixerctl
  106. /etc/rc.d/mdnsd
  107. /etc/rc.d/isibootd
  108. /etc/rc.d/iscsi_target
  109. /etc/rc.d/inetd
  110. /etc/rc.d/identd
  111. /etc/rc.d/httpd
  112. /etc/rc.d/hostapd
  113. /etc/rc.d/ftpd
  114. /etc/rc.d/envsys
  115. /etc/rc.d/cron
复制代码

评分

参与人数 1可用积分 +4 收起 理由
ulovko + 4 欢迎分享 ^_^

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2013-05-06 17:51 |只看该作者
没有用过NetBSD,由于在Windows和OpenBSD下面也碰到类似问题,分享个人经验

先假设
1、你在NetBSD下面的dhcp配置是正确的
2、局域网的dhcp服务正常。


dhcp无法获取ip,静态配置可以,在有线网络和无线网络我都碰到过
可能原因

有线网络
1、网卡质量差
2、网线质量差
3、网线过长。

无线网络
1、网卡质量差
2、无线信号差,如AP和电脑距离过远。

论坛徽章:
0
3 [报告]
发表于 2013-05-06 19:09 |只看该作者
回复 2# f5b


这个系统本身我就是利用 PXE,从网络安装的,安装的时候 dhcp 可以正常工作。所以可以排除是硬件问题。我个人认识应该是软件问题,可能和 ipv6 或者 route 有关系。

不管如何,还是谢谢您的回复

论坛徽章:
0
4 [报告]
发表于 2013-05-06 20:32 |只看该作者
有个日本人碰到的问题和我的很像:

http://d.hatena.ne.jp/steleto/20101225/1293291400

论坛徽章:
0
5 [报告]
发表于 2013-05-06 21:35 |只看该作者
刚才抓了个包看了一下,实际上接口已经收到 dhcp ack 了,但又重新做了三个周期后才停止

未命名.jpg (93.53 KB, 下载次数: 81)

未命名.jpg

论坛徽章:
0
6 [报告]
发表于 2013-05-06 23:27 |只看该作者
本帖最后由 白云深 于 2013-05-06 23:28 编辑

问题解决了,应该是配置有问题导致的,调整后的 rc.conf 如下:

  1. rc_configured=YES

  2. # Add local overrides below
  3. #
  4. hostname=NETBSD
  5. dhclient=YES
  6. # ifconfig_wm0=dhcp
  7. wscons=YES
  8. sshd=YES
  9. ntpd=N
复制代码
和原先的相比,多了 dhclient=YES, 少了 ifconfig_wm0=dhcp (这句是系统装好后就有的)

另外,wifi 接口还没配,如果不给 dhclient 指定接口的话,好像会一直尝试配置 wifi 接口,如果配置不成功,终端一直会有错误信息打印,挺烦人的。所以最好/etc/dhclient.conf 里指定接口
这个文件,我的系统里也没有,新建了一个,内容如下:

  1. interface "wm0" {
  2.         send-dhcp-client-identifier "client-wm0";
  3. }
复制代码
好像用dhcpcd 来配置也可以,尝试了一下,没有成功,懒得折腾了,还是老老实实用 dhclient 了。

论坛徽章:
0
7 [报告]
发表于 2013-05-06 23:31 |只看该作者
记得在安装过程中,好像有提示是否要把 dhcp 配置的网络信息写入 /etc ,当时选了否。也许当时选了是,就没有问题了。哎,人生就是折腾啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP