freebsd網卡安裝與dhcp配置方法
更新時間:2008年09月12日 00:28:52 作者:
freebsd系統(tǒng)下網卡安裝方法和dhcp配置方法
1、運行命令ifconfig查看當前網卡列表,確定名稱,如果不在列表內,可能是驅動沒裝好
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:a0:cc:da:da:da
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:a0:cc:da:da:db
media: Ethernet 10baseT/UTP
status: no carrier
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
2、vi /etc/rc.conf 添加
ifconfig_dc0="DHCP"
dhcp_program="/sbin/dhclient"
dccp_flags=""
3、reboot后,應該就可以用了
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:a0:cc:da:da:da
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
ether 00:a0:cc:da:da:db
media: Ethernet 10baseT/UTP
status: no carrier
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
2、vi /etc/rc.conf 添加
ifconfig_dc0="DHCP"
dhcp_program="/sbin/dhclient"
dccp_flags=""
3、reboot后,應該就可以用了
相關文章
SuSE Enterprise Linux 10下面啟動xdmcp
SuSE Enterprise Linux 10下面啟動xdmcp...2007-01-01
Ubuntu“無法打開鎖文件(Could not get lock)”問題解決方法
這篇文章主要介紹了Ubuntu“無法打開鎖文件(Could not get lock)”問題解決方法 ,需要的朋友可以參考下2017-09-09
ubuntu 14.04 oracle 11g 64位數據庫安裝圖文教程
這篇文章主要介紹了ubuntu 14.04 oracle 11g 64位數據庫安裝圖文教程,需要的朋友可以參考下2017-05-05

