免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] 重新编译内核后的网络问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-17 02:43 |只看该作者 |倒序浏览
用安装的内核一切正常 安按下述配置文件编译的内核启动后
ping 127.0.0.1正常
ping其他地址则出现 ping : sendto: no route to host 这种提示 ?是什么问题呢
我觉得我的配置好象没有错

系统硬件:
AMD SP2200+(OC 1.89G)
APACHER 256M+KINGSTON 512M DDR400 (OC DDR420)
HITACHI 160G ATA 8M CACHE
ATI REDONE 7500
ASUS A7V600 主板 集成AD1980声卡和  3COM的千兆网卡
罗技的USB光电鼠标。

我的内核配置文件如下:
  1. machine                i386
  2. cpu                I486_CPU
  3. cpu                I586_CPU
  4. cpu                I686_CPU
  5. ident                MYKERNEL

  6. # To statically compile in device wiring instead of /boot/device.hints
  7. #hints                "GENERIC.hints"                # Default places to look for devices.

  8. makeoptions        DEBUG=-g                # Build kernel with gdb(1) debug symbols

  9. #options         SCHED_ULE                # ULE scheduler
  10. options         SCHED_4BSD                # 4BSD scheduler
  11. options         PREEMPTION                # Enable kernel thread preemption
  12. options         INET                        # InterNETworking
  13. #options         INET6                        # IPv6 communications protocols
  14. options         FFS                        # Berkeley Fast Filesystem
  15. options         SOFTUPDATES                # Enable FFS soft updates support
  16. options         UFS_ACL                        # Support for access control lists
  17. options         UFS_DIRHASH                # Improve performance on big directories
  18. options         MD_ROOT                        # MD is a potential root device
  19. options         NFSCLIENT                # Network Filesystem Client
  20. options         NFSSERVER                # Network Filesystem Server
  21. options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
  22. options         MSDOSFS                        # MSDOS Filesystem
  23. options         CD9660                        # ISO 9660 Filesystem
  24. options         PROCFS                        # Process filesystem (requires PSEUDOFS)
  25. options         PSEUDOFS                # Pseudo-filesystem framework
  26. options         GEOM_GPT                # GUID Partition Tables.
  27. options         COMPAT_43                # Compatible with BSD 4.3 [KEEP THIS!]
  28. options         COMPAT_FREEBSD4                # Compatible with FreeBSD4
  29. options         COMPAT_FREEBSD5                # Compatible with FreeBSD5
  30. options         SCSI_DELAY=5000                # Delay (in ms) before probing SCSI
  31. options         KTRACE                        # ktrace(1) support
  32. options         SYSVSHM                        # SYSV-style shared memory
  33. options         SYSVMSG                        # SYSV-style message queues
  34. options         SYSVSEM                        # SYSV-style semaphores
  35. options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  36. options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
  37. options         AHC_REG_PRETTY_PRINT        # Print register bitfields in debug
  38.                                         # output.  Adds ~128k to driver.
  39. options         AHD_REG_PRETTY_PRINT        # Print register bitfields in debug
  40.                                         # output.  Adds ~215k to driver.
  41. options         ADAPTIVE_GIANT                # Giant mutex is adaptive.

  42. device                apic                        # I/O APIC

  43. # Bus support.
  44. #device                eisa
  45. device                pci

  46. # Floppy drives
  47. #device                fdc

  48. # ATA and ATAPI devices
  49. device                ata
  50. device                atadisk                # ATA disk drives
  51. #device                ataraid                # ATA RAID drives
  52. device                atapicd                # ATAPI CDROM drives
  53. #device                atapifd                # ATAPI floppy drives
  54. #device                atapist                # ATAPI tape drives
  55. options         ATA_STATIC_ID        # Static device numbering

  56. # SCSI Controllers
  57. device                ahb                # EISA AHA1742 family
  58. #device                ahc                # AHA2940 and onboard AIC7xxx devices
  59. #device                ahd                # AHA39320/29320 and onboard AIC79xx devices
  60. #device                amd                # AMD 53C974 (Tekram DC-390(T))
  61. #device                isp                # Qlogic family
  62. ##device         ispfw                # Firmware for QLogic HBAs- normally a module
  63. #device                mpt                # LSI-Logic MPT-Fusion
  64. ##device                ncr                # NCR/Symbios Logic
  65. #device                sym                # NCR/Symbios Logic (newer chipsets + those of `ncr')
  66. #device                trm                # Tekram DC395U/UW/F DC315U adapters

  67. #device                adv                # Advansys SCSI adapters
  68. #device                adw                # Advansys wide SCSI adapters
  69. #device                aha                # Adaptec 154x SCSI adapters
  70. #device                aic                # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
  71. #device                bt                # Buslogic/Mylex MultiMaster SCSI adapters

  72. #device                ncv                # NCR 53C500
  73. #device                nsp                # Workbit Ninja SCSI-3
  74. #device                stg                # TMC 18C30/18C50

  75. # SCSI peripherals
  76. device                scbus                # SCSI bus (required for SCSI)
  77. #device                ch                # SCSI media changers
  78. device                da                # Direct Access (disks)
  79. #device                sa                # Sequential Access (tape etc)
  80. #device                cd                # CD
  81. #device                pass                # Passthrough device (direct SCSI access)
  82. #device                ses                # SCSI Environmental Services (and SAF-TE)

  83. # RAID controllers interfaced to the SCSI subsystem
  84. #device                amr                # AMI MegaRAID
  85. #device                arcmsr                # Areca SATA II RAID
  86. #device                asr                # DPT SmartRAID V, VI and Adaptec SCSI RAID
  87. #device                ciss                # Compaq Smart RAID 5*
  88. #device                dpt                # DPT Smartcache III, IV - See NOTES for options
  89. #device                hptmv                # Highpoint RocketRAID 182x
  90. #device                iir                # Intel Integrated RAID
  91. #device                ips                # IBM (Adaptec) ServeRAID
  92. #device                mly                # Mylex AcceleRAID/eXtremeRAID
  93. #device                twa                # 3ware 9000 series PATA/SATA RAID

  94. # RAID controllers
  95. #device                aac                # Adaptec FSA RAID
  96. #device                aacp                # SCSI passthrough for aac (requires CAM)
  97. #device                ida                # Compaq Smart RAID
  98. #device                mlx                # Mylex DAC960 family
  99. #device                pst                # Promise Supertrak SX6000
  100. #device                twe                # 3ware ATA RAID

  101. # atkbdc0 controls both the keyboard and the PS/2 mouse
  102. device                atkbdc                # AT keyboard controller
  103. device                atkbd                # AT keyboard
  104. #device                psm                # PS/2 mouse

  105. device                vga                # VGA video card driver
  106. device                splash                # Splash screen and screen saver support

  107. # syscons is the default console driver, resembling an SCO console
  108. device                sc

  109. # Enable this for the pcvt (VT220 compatible) console driver
  110. #device                vt
  111. #options         XSERVER                # support for X server on a vt console
  112. #options         FAT_CURSOR        # start with block cursor

  113. device                agp                # support several AGP chipsets

  114. # Power management support (see NOTES for more options)
  115. #device                apm
  116. # Add suspend/resume support for the i8254.
  117. device                pmtimer

  118. # PCCARD (PCMCIA) support
  119. # PCMCIA and cardbus bridge support
  120. #device                cbb                # cardbus (yenta) bridge
  121. #device                pccard                # PC Card (16-bit) bus
  122. #device                cardbus                # CardBus (32-bit) bus

  123. # Serial (COM) ports
  124. #device                sio                # 8250, 16[45]50 based serial ports

  125. # Parallel port
  126. device                ppc
  127. device                ppbus                # Parallel port bus (required)
  128. #device                lpt                # Printer
  129. device                plip                # TCP/IP over parallel
  130. device                ppi                # Parallel port interface device
  131. #device                vpo                # Requires scbus and da

  132. # If you've got a "dumb" serial or parallel PCI card that is
  133. # supported by the puc(4) glue driver, uncomment the following
  134. # line to enable it (connects to the sio and/or ppc drivers):
  135. #device                puc

  136. # PCI Ethernet NICs.
  137. #device                de                # DEC/Intel DC21x4x (``Tulip'')
  138. #device                em                # Intel PRO/1000 adapter Gigabit Ethernet Card
  139. #device                ixgb                # Intel PRO/10GbE Ethernet Card
  140. device                txp                # 3Com 3cR990 (``Typhoon'')
  141. device                vx                # 3Com 3c590, 3c595 (``Vortex'')

  142. # PCI Ethernet NICs that use the common MII bus controller code.
  143. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
  144. device                miibus                # MII bus support
  145. #device                bfe                # Broadcom BCM440x 10/100 Ethernet
  146. #device                bge                # Broadcom BCM570xx Gigabit Ethernet
  147. #device                dc                # DEC/Intel 21143 and various workalikes
  148. #device                fxp                # Intel EtherExpress PRO/100B (82557, 82558)
  149. #device                lge                # Level 1 LXT1001 gigabit Ethernet
  150. #device                nge                # NatSemi DP83820 gigabit Ethernet
  151. #device                nve                # nVidia nForce MCP on-board Ethernet Networking
  152. #device                pcn                # AMD Am79C97x PCI 10/100(precedence over 'lnc')
  153. device                re                # RealTek 8139C+/8169/8169S/8110S
  154. device                rl                # RealTek 8129/8139
  155. #device                sf                # Adaptec AIC-6915 (``Starfire'')
  156. #device                sis                # Silicon Integrated Systems SiS 900/SiS 7016
  157. #device                sk                # SysKonnect SK-984x & SK-982x gigabit Ethernet
  158. #device                ste                # Sundance ST201 (D-Link DFE-550TX)
  159. #device                ti                # Alteon Networks Tigon I/II gigabit Ethernet
  160. #device                tl                # Texas Instruments ThunderLAN
  161. #device                tx                # SMC EtherPower II (83c170 ``EPIC'')
  162. #device                vge                # VIA VT612x gigabit Ethernet
  163. #device                vr                # VIA Rhine, Rhine II
  164. #device                wb                # Winbond W89C840F
  165. device                xl                # 3Com 3c90x (``Boomerang'', ``Cyclone'')

  166. # ISA Ethernet NICs.  pccard NICs included.
  167. #device                cs                # Crystal Semiconductor CS89x0 NIC
  168. # 'device ed' requires 'device miibus'
  169. #device                ed                # NE[12]000, SMC Ultra, 3c503, DS8390 cards
  170. #device                ex                # Intel EtherExpress Pro/10 and Pro/10+
  171. #device                ep                # Etherlink III based cards
  172. #device                fe                # Fujitsu MB8696x based cards
  173. #device                ie                # EtherExpress 8/16, 3C507, StarLAN 10 etc.
  174. #device                lnc                # NE2100, NE32-VL Lance Ethernet cards
  175. #device                sn                # SMC's 9000 series of Ethernet chips
  176. #device                xe                # Xircom pccard Ethernet

  177. # ISA devices that use the old ISA shims
  178. #device                le

  179. device sound

  180. device "snd_via8233"

  181. # Wireless NIC cards
  182. #device                wlan                # 802.11 support
  183. #device                an                # Aironet 4500/4800 802.11 wireless NICs.
  184. #device                awi                # BayStack 660 and others
  185. #device                ral                # Ralink Technology RT2500 wireless NICs.
  186. #device                wi                # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
  187. #device                wl                # Older non 802.11 Wavelan wireless NIC.

  188. # Pseudo devices.
  189. device                loop                # Network loopback
  190. device                random                # Entropy device
  191. device                ether                # Ethernet support
  192. device                sl                # Kernel SLIP
  193. device                ppp                # Kernel PPP
  194. device                tun                # Packet tunnel.
  195. device                pty                # Pseudo-ttys (telnet etc)
  196. device                md                # Memory "disks"
  197. device                gif                # IPv6 and IPv4 tunneling
  198. device                faith                # IPv6-to-IPv4 relaying (translation)

  199. # The `bpf' device enables the Berkeley Packet Filter.
  200. # Be aware of the administrative consequences of enabling this!
  201. # Note that 'bpf' is required for DHCP.
  202. device                bpf                # Berkeley packet filter

  203. # USB support
  204. device                uhci                # UHCI PCI->USB interface
  205. device                ohci                # OHCI PCI->USB interface
  206. device                ehci                # EHCI PCI->USB interface (USB 2.0)
  207. device                usb                # USB Bus (required)
  208. #device                udbp                # USB Double Bulk Pipe devices
  209. device                ugen                # Generic
  210. device                uhid                # "Human Interface Devices"
  211. #device                ukbd                # Keyboard
  212. #device                ulpt                # Printer
  213. device                umass                # Disks/Mass storage - Requires scbus and da
  214. device                ums                # Mouse
  215. #device                ural                # Ralink Technology RT2500USB wireless NICs
  216. device                urio                # Diamond Rio 500 MP3 player
  217. #device                uscanner        # Scanners
  218. # USB Ethernet, requires miibus
  219. #device                aue                # ADMtek USB Ethernet
  220. #device                axe                # ASIX Electronics USB Ethernet
  221. #device                cdce                # Generic USB over Ethernet
  222. #device                cue                # CATC USB Ethernet
  223. #device                kue                # Kawasaki LSI USB Ethernet
  224. #device                rue                # RealTek RTL8150 USB Ethernet

  225. # FireWire support
  226. #device                firewire        # FireWire bus code
  227. #device                sbp                # SCSI over FireWire (Requires scbus and da)
  228. #device                fwe                # Ethernet over FireWire (non-standard!)
复制代码

[ 本帖最后由 vergecity 于 2006-5-17 02:45 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-05-17 06:34 |只看该作者
是不是启用了防火墙

# /etc/rc.d/pf stop

论坛徽章:
0
3 [报告]
发表于 2006-05-17 08:56 |只看该作者
我遇到过 重编译后解决 象楼上所说是启用了防火墙

论坛徽章:
0
4 [报告]
发表于 2006-05-17 09:24 |只看该作者
你的rc.conf是怎么配置的,网关设置了没有??

论坛徽章:
0
5 [报告]
发表于 2006-05-17 10:10 |只看该作者
这是我的rc.conf文件


ifconfig_sk0="inet 192.168.145.160  netmask 255.255.255.0"
defaultrouter="192.168.145.1"
hostname="Remember.Truelove.org"

应该都设置好了的 我 再用我编译的内核 看看 是不是防火墙的问题

论坛徽章:
0
6 [报告]
发表于 2006-05-17 10:21 |只看该作者
这是我使用ifconfig命令后的结果 不知道是不是网卡没有被启用 如果是望可没有被启用 那么该怎么做呢

Remember# ifconfig
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
Remember#

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
7 [报告]
发表于 2006-05-17 10:30 |只看该作者
LZ连自己的网卡是什么都不知道.

论坛徽章:
0
8 [报告]
发表于 2006-05-17 10:44 |只看该作者
不是  硬件是 3com 的网卡阿  我在配置文件里面也支持了  问题是怎么 没有启用

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
9 [报告]
发表于 2006-05-17 10:48 |只看该作者
如LZ所说,理应出现在ifconfig里,
再者ifconfig_sk0="inet 192.168.145.160  netmask 255.255.255.0"也有问题.
贴dmesg

论坛徽章:
0
10 [报告]
发表于 2006-05-17 11:02 |只看该作者
等会贴上来 汗 刚才贴成正常系统的了

[ 本帖最后由 vergecity 于 2006-5-17 11:08 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP