当我们使用FreeBSD作网关或防火墙时,会要求在系统中安装两块网卡,分别跨越两个网络,
一块卡用于外部网络,而另一块用于内部网络。好了,就象大家知道的那样,现在需要让系
统支持这些新设备,而对于网络适配器,FreeBSD是通过定制内核来支持的。当然,首先要让
内核了解设备所用的硬件资源,对于使用PCI接口的网卡,我只能说,拥有高科技真是幸福,
因为这类网卡在PCI PnP BOIS的支持下,只要在内核中多添一个设备配置就可在新内核引导
时自动检测并启动;而对于ISA的卡,就没有这样简单了,不过只要去PnP用jumpless模式,
用卡所带的设置程序设好适当的资源,就可以在内核中用相应的配置来通知系统在引导时按
这样的资源来启动设备。我们来看看具体步骤:
1、定制新内核以适应新设备
这里有一个问题需要注意一下,众所周知,定制内核至少需要在系统上安装原代码中的"内
核原代码"(FreeBSD Kernel Sources)部分,先前没有安装的可以用 /stand/sysinstall添
加这部分。
对于PCI网卡,例如你用的是Realtek 8139,可以在内核配置文件中添加一行:
device de0 <---- 你原有的DC21040 Ethernet adapters
device rl0 <---- 新加入的Realtek 8139,因为是PCI卡,系统会自动检测
卡资源
对于ISA网卡,例如你用的是NE2000兼容卡,同样在内核配置文件中添加与已设定资源相符
合的描述行:
device de0 <---- 你原有的DC21040 Ethernet adapters
device ed0 at isa? port 0x300 net irq 3 iomem 0xd8000 vector edintr
上面第二行是新加入的NE2000兼容网卡,因为是ISA卡,所以一定要指定卡所用的资源以便
系统可以在引导时检测到。可能你会问,如果用的都是同样芯片类型的卡,该如何配置呢?
可以这样做:
device ed0 at isa? port 0x300 net irq 3 iomem 0xd8000 vector edintr
device ed1 at isa? port 0x320 net irq 10 iomem 0xd8000 vector edintr
可以看到,有多个同样类型的设备时,按照UNIX的编号习惯依次就是ed0、ed1……。不过,
在上面的配置中两块卡的BOOTROM资源会发生冲突,但不影响启动,你可以根据情况用卡所
带设置程序把它们适当设开即可。
此时已经按要求定制好了新的内核配置,现在就可以按FreeBSD handbook中的描述把新内核
编译并安装好。编译工作一切顺利的话我们的系统就已经支持了新的网卡设备,接下来就是
为新网卡配置相应的网络接口。
2、添加新网络接口
比较简单直观的方法是用/stand/sysinstall来对新设备配置新接口的一系列参数,当然BSD
network_interfaces="ed0 ed1 lo0"
~~~在这里加入新的网络接口以便在引导时用后面ifconfig配置的
参数进行初始化
ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0" #原有的网络接口参数
ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0" #新网络接口参数
defaultroute="xxx.xxx.xxx.xxx" #原有的网络默认路由
好了,安装双网卡的工作就完成了,以后可以根据具体使用情况自行配置NAT、GATEWAY等东东
了。
72.36.211.* 于 2007-08-04 15:48:54发表:
Good design!
golf betting tips | nfl lines | sport betting | formula one futures | internet sport betting | british open playoff | formula one betting | football handicapping | odds to win superbowl 2008 | sport betting line
72.36.211.* 于 2007-08-04 15:48:42发表:
Good design!
ernie els bet | boxing props | afl football | bet fair | online betting | mlb betting tips | spread betting | nfl football betting | betting on college sports | baseball odds
72.36.211.* 于 2007-08-04 15:48:31发表:
Nice site!
2007 cricket world cup bet | bet on sport | american league betting | formula 1 bet | canadian football odds | baseball stats | free fantasy baseball | spreads nfl | motor racing betting | nfl handicap
203.121.78.* 于 2007-08-04 11:03:08发表:
Yhanks you :
free ipod music downloads = music downloads = free music downloading = free country music downloads = Free Music Downloads = download free music = download free music = free mp3 = classical music downloads =
http://www.fixgrout.com/cgi/ download music for free :: http://musicdownloads4free.angelfire.com/free-music.html free mp3 music downloads :: http://bridgenews.org/portal_memberdata/portraits/fmusca free music video :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html limewire music downloads :: http://musicdownloadsmp3.tripod.com Free Music Downloads :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds music download free :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free mp3 downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 :: http://www.fixgrout.com/cgi/ free download music :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic download music free :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free music video ::
limewire .. Free Music Downloads .. free download music .. free music to download .. mp3 downloads .. limewire music downloads .. limewire music downloads ..
72.36.211.* 于 2007-08-03 06:30:39发表:
Well done!
online bingo | pai gow poker | free slots for fun | free video poker | free slot machines | cleopatra slots | free money casino | bingo world | online bingo games | casino deposit bonus
72.36.211.* 于 2007-08-03 06:29:56发表:
Nice site!
free poker | new no deposit casinos | video poker download | free online blackjack | poker software | no download casino | play roulette online | video slots free | holdem poker | bingo site
72.36.211.* 于 2007-08-03 06:29:14发表:
Nice site!
free online roulette | black jack strip | free black jack game | download free poker | texas hold em | caribbean stud poker | free blackjack games | poker games free | bonus casino online | free bingo games
72.36.211.* 于 2007-08-03 06:29:03发表:
Good design!
free slot machines online | download poker game | free online bingo games | free poker games | no deposit casino bonus | free poker download | bingo games | online casino games | online poker | free video
72.36.211.* 于 2007-08-03 06:28:49发表:
Nice site!
casino slots | texas holdem poker | keno online | free online bingo site | play bingo free | party poker download | slots for fun | download slots | casino bonus | strip black jack
72.36.211.* 于 2007-08-02 07:06:18发表:
Nice site!
brickyard 400 odds | basketball bet | breeders cup handicapping | betting on | 2008 nba champions | nba betting | betting web site | nfl football betting | cyber sportsbook | golf bet
72.36.211.* 于 2007-08-02 07:05:51发表:
Good design!
horse race bet | baseball lines | 2007 us open betting | rugby union betting | betting line | baseball futures | nfl super bowl | golf bet uk | betting football | football best bet
72.36.211.* 于 2007-08-02 07:04:47发表:
Well done!
sport spread betting | betting site | online football bet | sportsbook | golf handicapping | online horse racing betting | sports gambling | canadian football betting | bet com | mlb baseball
72.36.211.* 于 2007-08-02 07:04:30发表:
Thank you!
basketball bets | boxing props | heavyweight betting | sportsbook online | nfl odds | american sport betting | online football betting | canadian football odds | mlb wager | american league betting
72.36.211.* 于 2007-08-02 07:04:21发表:
Thank you!
nascar odds | cricket world cup betting | mlb world series 2007 | tennis bet | mlb world series | golf betting tips | nfl stats | political betting | european football bet | bet on the nfl
203.223.159.* 于 2007-08-02 03:56:44发表:
Hi boys! :
download music video = music downloads = free country music downloads = free mp3 = FREE MUSIC DOWNLOADS = free ipod music downloads sites = download music video = music downloads pc = music =
http://www.fixgrout.com/cgi/ music download free :: http://musicdownloads4free.angelfire.com/free-music.html download music for free :: http://bridgenews.org/portal_memberdata/portraits/fmusca free mp3 downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html free ipod music downloads sites :: http://musicdownloadsmp3.tripod.com download music for free :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds limewire :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free music downloading :: http://musicdownloadsmp3.tripod.com/music_downloads.html limewire :: http://www.fixgrout.com/cgi/ free music to download :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free music download :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free ipod music downloads ::
download music for free .. free mp3 .. classical music downloads .. free music download sites .. free music video .. mp3 downloads .. music download ..
203.121.69.* 于 2007-08-01 23:24:47发表:
Yhanks you :
download free music = free download music = free music downloads = free ipod music downloads sites = free mp3 music downloads = free music download sites = free ipod music downloads = free music downloads = how to download music =
http://www.fixgrout.com/cgi/ music downloads :: http://musicdownloads4free.angelfire.com/free-music.html FREE MUSIC DOWNLOADS :: http://bridgenews.org/portal_memberdata/portraits/fmusca limewire music downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html download free music :: http://musicdownloadsmp3.tripod.com free legal music downloads :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds free limewire :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free music video :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 downloads :: http://www.fixgrout.com/cgi/ free music downloading :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic classical music downloads :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free legal music downloads ::
free ipod music downloads .. music download .. free music download .. free mp3 .. limewire .. music downloads .. free music download sites ..
72.36.211.* 于 2007-08-01 07:21:32发表:
Good design!
casino en ligne | casinos jeux gratuits | casino gratuit | jeu argent | casino en ligne | online spielbank | jeux casinos | casino online italiano | juegos gratis | migliori casino italiani
72.36.211.* 于 2007-08-01 07:21:09发表:
Nice site!
deutsche online casinos | beste casino spiele | jeu argent | juegos de casino | migliori casino online | scaricare casino | spiele online casinos | casino boni | jeu casino | migliori casino online
72.36.211.* 于 2007-08-01 07:20:06发表:
Great work!
giocare al casino online | mejores casinos | casino online italiano | beste casino spiele | migliori bonus del casino | jeu argent | beste online casinos | migliori casino italiani | casino jeu gratuit | beste casino spiele
72.36.211.* 于 2007-08-01 07:19:47发表:
Great work!
migliori casino italiani | jeux gratuits | mejores casinos | juegos gratis | spiele online casinos | casino gratuit | casino jeu gratuit | casino con postepay | deutsche casinos | jeu casino
72.36.211.* 于 2007-08-01 07:19:36发表:
Great work!
probablidades casinos | juegos de casino | migliori casino on line | apostar casino | casinos en ligne | deutsche online casinos | deutsche casinos | come vincere al casino | online kasinos | apostar casino
203.223.159.* 于 2007-08-01 04:04:30发表:
Hi, my Best free mp3 music downloads site: :
free legal music downloads = music download free = free music download = legal music downloads = free music downloads = free music = free mp3 downloads = legal music downloads = Free Music Downloads =
http://www.fixgrout.com/cgi/ download music for free :: http://musicdownloads4free.angelfire.com/free-music.html free music ipods :: http://bridgenews.org/portal_memberdata/portraits/fmusca download music video :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html download music free :: http://musicdownloadsmp3.tripod.com classical music downloads :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds download music free :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free mp3 music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html classical music downloads :: http://www.fixgrout.com/cgi/ free music download :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free limewire :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free mp3 ::
free music download sites .. free mp3 downloads .. free music downloads .. free music downloads .. free legal music downloads .. free music ipods .. free ipod music downloads ..
203.223.159.* 于 2007-08-01 03:41:03发表:
Yhanks! Best free mp3 music downloads site: :
free mp3 downloads = free music for ipod = free music downloading = free music download = free download music = free music = free mp3 = Free Music Downloads = free music downloads =
http://www.fixgrout.com/cgi/ download music for free :: http://musicdownloads4free.angelfire.com/free-music.html download music for free :: http://bridgenews.org/portal_memberdata/portraits/fmusca free mp3 :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html how to download music :: http://musicdownloadsmp3.tripod.com free legal music downloads :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds free download music :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html limewire :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 :: http://www.fixgrout.com/cgi/ free download music :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic music downloads pc :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free music ::
download music free .. download music for free .. free music download sites .. Free Music Downloads .. download music free .. music .. free mp3 downloads ..
203.121.69.* 于 2007-07-31 10:00:45发表:
Hi, my sites: :
download free music = free download music = download free music = music download = download music free = Free Music Downloads = free music to download = music download = free music download =
http://www.fixgrout.com/cgi/ free music downloading :: http://musicdownloads4free.angelfire.com/free-music.html free legal music downloads :: http://bridgenews.org/portal_memberdata/portraits/fmusca free music :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html mp3 downloads :: http://musicdownloadsmp3.tripod.com music :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds free music downloading :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free music download sites :: http://musicdownloadsmp3.tripod.com/music_downloads.html free music download sites :: http://www.fixgrout.com/cgi/ free music downloading :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free music downloads :: http://nmstandards.org/portal_memberdata/portraits/vsemoe music downloads ::
download music for free .. music downloads .. free limewire .. free music video .. Free Music Downloads .. free music download .. how to download music ..
72.36.211.* 于 2007-07-31 06:12:47发表:
Nice site!
free cingular ringtones | polifonik melodi | sprint pcs ringtones | mobiele ringtones | free cellular south ringtones | melodie mobil | ringtone motorola | nextel ringtone program | ringtones verizon | ringtone jukebox
72.36.211.* 于 2007-07-31 06:12:11发表:
Thank you!
midi ringtones | ringtone free | free cellular ringtones | dzwonki siemens | dzwonek mp3 | lg free ringtones | free ringtones for u s cellular | cingular free ringtones | star wars ringtones | cricket free ringtones
72.36.211.* 于 2007-07-31 06:11:18发表:
Good design!
tonos samsung | christian music ringtones | sonneries alcatel | suonerie telefonini | free anime | ctu 24 ringtone | ringtones download | alltel ringtones | free ringtones us cellular | free cellular one ringtones
72.36.211.* 于 2007-07-31 06:11:02发表:
Nice site!
download free polyphonic ringtones | logo sonnerie | free mp3 ringtone downloads | 24 klingelton | free hi fi ringtones | motorola q ringtones | free ringtones | ringtones for sprint phones | suonerie gratis | wav ringtones
72.36.211.* 于 2007-07-31 06:10:52发表:
Nice site!
melodias para movil | free nokia downloads | ringtones for nokia | ringtones for suncom | ringtones gratis samsung | mp3 klingelton | centennial wireless ringtones | free ringtone converter | ringtone websites | toques siemens
203.121.78.* 于 2007-07-30 17:37:11发表:
Hi, my sites: :
free limewire = download music free = free music downloads = music downloads = music downloads pc = music downloads = free music downloads = how to download music = free music download sites =
http://www.fixgrout.com/cgi/ music downloads pc :: http://musicdownloads4free.angelfire.com/free-music.html FREE MUSIC DOWNLOADS :: http://bridgenews.org/portal_memberdata/portraits/fmusca FREE MUSIC DOWNLOADS :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html music download :: http://musicdownloadsmp3.tripod.com free music :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds free music ipods :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html download free music :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 :: http://www.fixgrout.com/cgi/ free ipod music downloads sites :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free download music :: http://nmstandards.org/portal_memberdata/portraits/vsemoe limewire ::
FREE MUSIC DOWNLOADS .. free ipod music downloads .. download music for free .. classical music downloads .. free limewire .. limewire music downloads .. music download free ..
203.121.69.* 于 2007-07-30 16:12:47发表:
Yhanks! :
how to download music = free music downloads = free music downloads = free ipod music downloads sites = mp3 downloads = free mp3 music downloads = FREE MUSIC DOWNLOADS = limewire = free music downloads =
http://www.fixgrout.com/cgi/ free music downloads :: http://musicdownloads4free.angelfire.com/free-music.html mp3 downloads :: http://bridgenews.org/portal_memberdata/portraits/fmusca download music video :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html limewire :: http://musicdownloadsmp3.tripod.com music download free :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds download music free :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 downloads :: http://www.fixgrout.com/cgi/ music download free :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free country music downloads :: http://nmstandards.org/portal_memberdata/portraits/vsemoe free music downloads ::
free music download .. free ipod music downloads .. free country music downloads .. free legal music downloads .. free download music .. limewire music downloads .. free music downloads ..
203.121.69.* 于 2007-07-30 15:55:46发表:
Hi boys! :
legal music downloads = free mp3 = free limewire = free limewire = free download music = music downloads pc = free mp3 = limewire music downloads = music downloads =
http://www.fixgrout.com/cgi/ free music for ipod :: http://musicdownloads4free.angelfire.com/free-music.html download music video :: http://bridgenews.org/portal_memberdata/portraits/fmusca free mp3 :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html Free Music Downloads :: http://musicdownloadsmp3.tripod.com free mp3 :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds limewire :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html FREE MUSIC DOWNLOADS :: http://www.fixgrout.com/cgi/ limewire :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic download music free :: http://nmstandards.org/portal_memberdata/portraits/vsemoe download free music ::
Free Music Downloads .. download music free .. limewire music downloads .. mp3 downloads .. music downloads .. download music for free .. download music for free ..
203.121.69.* 于 2007-07-30 15:55:46发表:
Hi boys! :
legal music downloads = free mp3 = free limewire = free limewire = free download music = music downloads pc = free mp3 = limewire music downloads = music downloads =
http://www.fixgrout.com/cgi/ free music for ipod :: http://musicdownloads4free.angelfire.com/free-music.html download music video :: http://bridgenews.org/portal_memberdata/portraits/fmusca free mp3 :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html Free Music Downloads :: http://musicdownloadsmp3.tripod.com free mp3 :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds limewire :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html FREE MUSIC DOWNLOADS :: http://www.fixgrout.com/cgi/ limewire :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic download music free :: http://nmstandards.org/portal_memberdata/portraits/vsemoe download free music ::
Free Music Downloads .. download music free .. limewire music downloads .. mp3 downloads .. music downloads .. download music for free .. download music for free ..
72.36.211.* 于 2007-07-29 21:35:54发表:
Thank you!
free poker | free strip black jack | roulette free games | free 3 card poker | free poker online | free video | blackjack game | free slots for fun | free games on line | multiplayer poker
72.36.211.* 于 2007-07-29 21:35:15发表:
Thank you!
roulette games | bingo bonus free sign up | free online slots games | slots download | casino game download | bingo game yahoo | play slots | casino slot games | cleopatra slot | bingo gala
72.36.211.* 于 2007-07-29 21:34:32发表:
Great work!
no deposit online casinos | flash casinos | blackjack free | video slots free | poker usa | usa online casino | no download free slots | black jack games | online baccarat | blackjack for free
72.36.211.* 于 2007-07-29 21:34:09发表:
Well done!
gambling sites | best bonus casino | free online texas holdem | play bingo online | free blackjack | online gambling | play texas holdem free | online roulette | play slot machines for free | free slot play
72.36.211.* 于 2007-07-29 21:33:59发表:
Thank you!
roulette game | free on line poker | texas hold em poker | poker games | casino on line | play bingo now | blackjack games | roulette download | free video poker | play blackjack
203.121.78.* 于 2007-07-28 12:21:22发表:
Hi! Best free mp3 music downloads site: :
free music download = free music downloading = free music download sites = mp3 downloads = free music video = free music to download = free music download = download music for free = limewire =
http://www.fixgrout.com/cgi/ mp3 downloads :: http://musicdownloads4free.angelfire.com/free-music.html music download free :: http://bridgenews.org/portal_memberdata/portraits/fmusca free music ipods :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html free legal music downloads :: http://musicdownloadsmp3.tripod.com free ipod music downloads :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds Free Music Downloads :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html free mp3 music downloads :: http://musicdownloadsmp3.tripod.com/music_downloads.html mp3 downloads :: http://www.fixgrout.com/cgi/ free music :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic free mp3 music downloads :: http://nmstandards.org/portal_memberdata/portraits/vsemoe music downloads pc ::
free music downloads .. free ipod music downloads .. free music downloading .. free limewire .. free music download .. free music for ipod .. free music download ..
203.121.79.* 于 2007-07-28 10:35:59发表:
Hi! Best free mp3 music downloads site: :
download free music = free legal music downloads = music download = free mp3 downloads = free music download sites = music downloads pc = download music for free = how to download music = free music ipods =
http://www.fixgrout.com/cgi/ free music video :: http://musicdownloads4free.angelfire.com/free-music.html FREE MUSIC DOWNLOADS :: http://bridgenews.org/portal_memberdata/portraits/fmusca free ipod music downloads sites :: http://idisk.mac.com/fmp3musicdownloads/Public/free-music.html free music download :: http://musicdownloadsmp3.tripod.com free ipod music downloads sites :: http://www.viktorschreckengost.org/portal_memberdata/portraits/bergds download music free :: http://idisk.mac.com/fmp3musicdownloads/Public/music.html music download free :: http://musicdownloadsmp3.tripod.com/music_downloads.html free mp3 :: http://www.fixgrout.com/cgi/ free music downloads :: http://noticeboard.calimera.org/calimera/portal_memberdata/portraits/freemusic FREE MUSIC DOWNLOADS :: http://nmstandards.org/portal_memberdata/portraits/vsemoe music download ::
free music .. download music free .. free music download sites .. free legal music downloads .. download music free .. free ipod music downloads .. music downloads ..