說明:IP:192.168.21.173子網(wǎng)掩碼:255.255.255.0網(wǎng)關(guān):192.168.21.2DNS:8.8.8.8 8.8.4.41、設(shè)置IP地址、網(wǎng)關(guān)ee /etc/rc.conf #編輯ifconfig_em0="inet 192.168.21.173 netmask 255.255.255.0" #設(shè)置IP地址,子網(wǎng)掩碼defaultrouter="192.168.21.2" #設(shè)置網(wǎng)關(guān)hostname="FreeBSD" #設(shè)置主機(jī)名字esc 回車,再按a保存2、設(shè)置DNSee /etc/resolv.conf #編輯nameserver 8.8.8.8nameserver 8.8.4.4esc 回車,再按a保存sh /etc/rc #重啟網(wǎng)絡(luò)/etc/netstart #重啟網(wǎng)絡(luò)現(xiàn)在FreeBSD已經(jīng)可以上網(wǎng)了!
新聞熱點
疑難解答