[問題]freebsd 設定hinet計時制 pppoe



贊助商連結


frank214
2002-06-24, 04:33 PM
哀 搞的我頭大....
看書設定
rc.conf
還有ppp.conf
但是都沒用......

我知道這問題很笨....但是沒辦法 硬著頭皮問
我的網路卡是3com 905c

我照書本裡面打的
ppp.conf


default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
set device PPPoE:xl0:
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname 我hinet帳號
set authkey 我的密碼
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns

rc.conf


network_interfaces="auto"
ifconfig_xl0="inet 10,0,0,1 netmask 255.0.0.0 -arp up"
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="pppoe"
defaultrouter="10.0.0.1"
gateway_enable="YES"


然後我打ppp pppoe

會出現
pppoe ON LOCALHOST>>
我就不知道要x嘛了....哀
請教教我吧~

贊助商連結


DiCkMan
2002-06-24, 04:52 PM
1. First you must change to the kernel configuration directory:

cd /usr/src/sys/i386/conf


2. In the kernel configuration directory, use your favorite text editor and
edit the
kernel file. For example, if you use emacs, you would type:

emacs KERNEL


3. Go to the end of the kernel file and add the following three lines:

options NETGRAPH
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET


4. After adding these three lines, save the modified kernel file.
5. Type this command to set the kernel configuration:

config KERNEL


6. Now you must change to the kernel setup directory:

cd ../../compile/KERNEL


7. In the kernel setup directory, type the following three commands:

make depend
make
make install


Your kernel is now ready for PPPoE!

Configuring FreeBSD /etc/ppp/ppp.conf File
To edit the /etc/ppp/ppp.conf file, just use your favorite text editor.
Replace any existing file content with the lines below. Be sure the
"set device PPPoE:---" line is correct for your network interface
card. (We used ed1 for the NIC in this example.) Change the authname
and authkey to your sympatico user id (b1xxxxxx) and your password.


# /etc/ppp/ppp.conf

default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800

pppoe:
set device PPPoE:ed1:
set mru 1492
set mtu 1492
set speed sync
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname [email protected]
set authkey yourpassword
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns

# end of ppp configuration


Configuring FreeBSD /etc/rc.conf?File

The /etc/rc.conf file should be set up as follows for the ethernet interface
that goes to your DSL modem. (Again, this example uses ed1 for the NIC.)


# /etc/rc.conf
# /etc/rc.conf

network_interfaces="auto"巠 #Set network interfaces automatically
ifconfig_ed1="inet 10.0.0.1 netmask 255.0.0.0 -arp up"
ppp_enable="YES" #This enables PPP on startup (recommended)
ppp_mode="background"
ppp_profile="pppoe"

#end of?/etc/rc.conf


Rebooting the System

After you have compiled the kernel to support PPPoE and have edited
the /etc/ppp/ppp.conf and /etc/rc.conf files with the right configuration,
you can reboot your system. If you enabled ppp in the /etc/rc.conf as recommende
/etc/rc.conf file, you can use this command to connect to the Internet
manually:
.

vi /etc/rc.conf
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="pppoe"
試試看吧我朋友給我的,我還沒設過

frank214
2002-07-01, 12:58 AM
我解決了
原來是我新買的
3com 905c網路卡
根本是不能用....

害我搞半天
謝謝回覆~

teddychu
2002-07-03, 10:47 AM
原本想說幫你一個忙得...

沒想到你已經OK姥...@@

之前我也常常有網路方面的困擾...

您有買那本黑色的書嗎?