Khwooo’s Weblog

April 30, 2007

FreeBSD Network Settings : DHCP Client

Filed under: freebsd — Tags: , , — khwooo @ 4:33 pm

最近要整理荒廢已久的freebsd主機,之前的網路設定是撥號連上ADSL(ppp),現在我要讓他自動取得DHCP IP,連上我的AP。

步驟如下:

1. 先停掉ppp的service(沒有可以略過)

2. ee /etc/rc.conf
先comment掉原先的網路設定,再加入下面這行(xxx代表網路卡代號 ex: rl0)
ifconfig_xxx="DHCP"

4. ENTER+ESC 儲存

5. Reboot 重開機,然後 ifconfig 一下有沒有抓到IP,有時候需要等一下。

沒抓到?那可能要檢查網路連線和AP那邊的設定。

via FreeBSD 入魔手冊

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: