使用 VMware 灌的 Freebsd 連 hinet ? - BBS

Table of Contents


嗨, 大家:

抱歉我實在是不太熟 Freebsd.
看了半天的前面相關討論串, 還是試不出來.
只好上來求助各位了.

我在家裡的電腦上 (xp) 利用 VMware4 灌了 freebsd 4.10.
現在遇到第一個問題是如何上網.

目前的設定如下:
host os : 192.168.0.120

VMware : 網路卡的選項設定為 Bridged.
bsd :
/etc/rc.conf 裡加了兩行:

ifconfig_lnc0="192.168.0.119 netmask 255.255.255.0"
defaultrouter="192.168.0.120"

以上弄完之後, host os 跟 guest bsd 都可以互相 ping 到對方,
家裡室友的電腦所設的 ip : 192.168.0.113 也 ping 得到.


接著就是去改 /etc/ppp/ppp.conf 底下的內容,
我是找前面某位悍將提供的web example 照著打的:

http://netlab.cse.yzu.edu.tw/~statue/freebsd/handbook/pppoe.html

default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0

hinet:
set device PPPoE:lnc0
set authname YOURLOGINNAME
set authkey YOURPASSWORD
set dial
set login
add default HISADDR


終於, 我再用 web example 裡說的指令去連線:

# ppp -ddial hinet

結果, 要試著去 ping 外面的 ip 時, the result is :

working in ddial mode
using interface: tun0 <----- why? 我不是設了 lnc0 了嗎?
warning: add route failed: 0.0.0.0/0 already exists <---- ??


請問一下各位, 我是哪裡設錯了?
感謝感謝!




--


http://www.wretch.cc/blog/hotcoffee

--

All Comments