无线:
# ip link set wlan0 up
# rm /etc/wpa_supplicant.conf
# wpa_passphrase 无线ID,"无线密码">/etc/wpa_supplicant.conf
# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
# dhcpcd wlan0
有线:
# nano /etc/rc.conf
修改:
interface=eth0
address=你的IP
netmask=255.255.255.0
broadcast=你的DNS
gateway=网关
(或者只修改interface=eth0)
然后# dhcpcd eth0
或者
# pppoe-setup #设置pppoe
# pppoe-start