作者athrun0000 (00)
看板FreeBSD
标题Re: [问题] 网路介面卡在家里要怎麽设定
时间Tue May 5 05:27:55 2009
※ 引述《chinsan (有若无,实若虚)》之铭言:
: ※ 引述《denniswave (tsmc.168rent.com)》之铭言:
: 若不熟设定可参阅
: http://www.freebsd.org/doc/zh_TW/books/handbook/install-post.html
: http://www.twbsd.org/cht/book/index.php?ch=05
: : 这样代表你是用 DHCP 连上去的(不是 pppoe 喔)
: : (我没用过 hinet,所以不知道有没有支援)
: : 不过这样 /etc/rc.conf 要加上:
: : ifconfig_re0="DHCP"
: 可以手动打 dhclient re0 也可以要 DHCP IP
: 或者有设定 /etc/rc.conf 的话,就改完後打 /etc/netstart 吧
: : (re0 是网卡名称)
: 若原 po 不清楚网卡代号, 就打下面这行
: ifconfig -a | grep flag | grep -v lo0 | grep -v plip0 | awk -F ':' '{print $1}'
: 或者直接把 ifconfig -a 的讯息贴出来吧
ifconfig -a 在FREEBSD中不知道要怎麽复制
有看到下面 127.0.0.1
IP位置是0.0.0.0
还有网路遮罩 255.255.255.0
: : 如果用 pppoe 的话,修改/etc/ppp/ppp.conf
: : (我的版本是 7.1 release)
: : default:
: : set log Phase tun command
: : hinet:
: : set device PPPoE:re0 # 表示你的网卡是 re0
: : set dial
: : set timeout 0
: : enable dns
: : set login
: : set mru 1492
: : enable lqr
: : set authname hinet-id # 输入 hinet 的帐号
: : set authkey hinet-pwd # 输入 hinet 的密码
: : 然後在 /etc/rc.conf 加入:
: : ppp_enable="YES"
: : ppp_mode="ddial"
: : ppp_profile="hinet"
: : ppp_nat="NO"
: 若此时原 po 还没重开机或手动打指令应该是还不能上网吧 :p
: : 这样应该就可以上网了。
: 可手动打 ppp -background hinet 或 reboot 方可上网。
打完 reboot是有从开机啦 可能我IP中华电讯是浮动的
还是不行
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.228.123.5