[root@is /]# rpm -q rp-pppoe                      <==查看是否有安裝 rp-pppoe

rp-pppoe-3.10-6.fc12.i686

 

[root@is /]# rpm -ql rp-pppoe-3.10-6.fc12.i686      <==查看 rp-pppoe 所安裝的檔案明細

/etc/ppp/firewall-masq

/etc/ppp/firewall-standalone

/etc/ppp/pppoe-server-options

/etc/rc.d/init.d/pppoe-server

/sbin/pppoe

/sbin/pppoe-connect

/sbin/pppoe-relay

/sbin/pppoe-server

/sbin/pppoe-setup

/sbin/pppoe-sniff

/sbin/pppoe-start

/sbin/pppoe-status

/sbin/pppoe-stop

/usr/sbin/adsl-start

/usr/sbin/adsl-stop

/usr/sbin/pppoe

/usr/sbin/pppoe-connect

/usr/sbin/pppoe-relay

/usr/sbin/pppoe-server

/usr/sbin/pppoe-setup

/usr/sbin/pppoe-sniff

/usr/sbin/pppoe-start

/usr/sbin/pppoe-status

/usr/sbin/pppoe-stop

/usr/share/doc/rp-pppoe-3.10

/usr/share/doc/rp-pppoe-3.10/LICENSE

/usr/share/doc/rp-pppoe-3.10/configs

/usr/share/doc/rp-pppoe-3.10/configs/firewall-masq

/usr/share/doc/rp-pppoe-3.10/configs/firewall-standalone

/usr/share/doc/rp-pppoe-3.10/configs/pap-secrets

/usr/share/doc/rp-pppoe-3.10/configs/pppoe-server-options

/usr/share/doc/rp-pppoe-3.10/configs/pppoe.conf

/usr/share/doc/rp-pppoe-3.10/pppoe-connect

/usr/share/doc/rp-pppoe-3.10/pppoe-init

/usr/share/doc/rp-pppoe-3.10/pppoe-setup

/usr/share/doc/rp-pppoe-3.10/pppoe-start

/usr/share/doc/rp-pppoe-3.10/pppoe-status

/usr/share/doc/rp-pppoe-3.10/pppoe-stop

/usr/share/man/man5/pppoe.conf.5.gz

/usr/share/man/man8/pppoe-connect.8.gz

/usr/share/man/man8/pppoe-relay.8.gz

/usr/share/man/man8/pppoe-server.8.gz

/usr/share/man/man8/pppoe-setup.8.gz

/usr/share/man/man8/pppoe-sniff.8.gz

/usr/share/man/man8/pppoe-start.8.gz

/usr/share/man/man8/pppoe-status.8.gz

/usr/share/man/man8/pppoe-stop.8.gz

/usr/share/man/man8/pppoe.8.gz

 

[root@is /]# /sbin/pppoe-setup                         <==執行 PPPoE 連線設定

Welcome to the PPPoE client setup.  First, I will run some checks on

your system to make sure the PPPoE client is installed properly...

The following DSL config was found on your system:

 Device:      Name:

 ppp0         DSLppp0

# PPPoE 連線名稱

Please enter the device if you want to configure the present DSL config

(default ppp0) or enter 'n' if you want to create a new one: ppp0

 

# PPPoE 連線帳號

LOGIN NAME

Enter your Login Name (default xxxxxxxx@hinet.net): xxxxxxxx@hinet.net

 

# 使用什麼介面連線

INTERFACE

Enter the Ethernet interface connected to the PPPoE modem

For Solaris, this is likely to be something like /dev/hme0.

For Linux, it will be ethX, where 'X' is a number.

(default eth0): eth0

 

# 是否連結至 Demand

Do you want the link to come up on demand, or stay up continuously?

If you want it to come up on demand, enter the idle time in seconds

after which the link should be dropped.  If you want the link to

stay up permanently, enter 'no' (two letters, lower-case.)

NOTE: Demand-activated links do not interact well with dynamic IP

addresses.  You may have some problems with demand-activated links.

Enter the demand value (default no): no

 

# 設定 DNS

DNS

Please enter the IP address of your ISP's primary DNS server.

If your ISP claims that 'the server will provide dynamic DNS addresses',

enter 'server' (all lower-case) here.

If you just press enter, I will assume you know what you are

doing and not modify your DNS setup.

Enter the DNS information here: 168.95.1.1

Please enter the IP address of your ISP's secondary DNS server.

If you just press enter, I will assume there is only one DNS server.

Enter the secondary DNS server address here: 168.95.2.1

 

# PPPoE 連線密碼

PASSWORD

Please enter your Password: ********

Please re-enter your Password: ********

 

# 是否所有使用者均可使用此連線

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow

normal user to start or stop DSL connection (default yes): yes

 

# 防火牆設定

FIREWALLING

Please choose the firewall rules to use.  Note that these rules are

very basic.  You are strongly encouraged to use a more sophisticated

firewall setup; however, these will provide basic security.  If you

are running any servers on your machine, you must choose 'NONE' and

set up firewalling yourself.  Otherwise, the firewall rules will deny

access to all standard servers like Web, e-mail, ftp, etc.  If you

are using SSH, the rules will block outgoing SSH connections which

allocate a privileged source port.

The firewall choices are:

0 - NONE: This script will not set any firewall rules.  You are responsible

         for ensuring the security of your machine.  You are STRONGLY

         recommended to use some kind of firewall rules.

1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation

2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway

               for a LAN

Choose a type of firewall (0-2): 0

 

# 開機時是否啟動此連線

Start this connection at boot time

Do you want to start this connection at boot time?

Please enter no or yes (default no): yes

 

# 設定總覽

** Summary of what you entered **

Ethernet Interface: eth0

User name: xxxxxxxx@hinet.net

Activate-on-demand: No

Primary DNS: 168.95.1.1

Secondary DNS: 168.95.2.1

Firewalling: NONE

User Control: yes

# 調整相關設定檔

Accept these settings and adjust configuration files (y/n)? y

 

Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0

Adjusting /etc/resolv.conf

Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets

 (But first backing it up to /etc/ppp/chap-secrets.bak)

 (But first backing it up to /etc/ppp/pap-secrets.bak)

Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0' to bring it down.

Type '/sbin/pppoe-status /etc/sysconfig/network-scripts/ifcfg-ppp0' to see the link status.

 

[root@is /]# vi /etc/sysconfig/network-scripts/ifcfg-ppp0        <==查看連線設定檔 

USERCTL=yes

BOOTPROTO=dialup

NAME=DSLppp0

DEVICE=ppp0

TYPE=xDSL

ONBOOT=yes

PIDFILE=/var/run/pppoe-adsl.pid

FIREWALL=NONE

PING=.

PPPOE_TIMEOUT=80

LCP_FAILURE=3

LCP_INTERVAL=20

CLAMPMSS=1412

CONNECT_POLL=6

CONNECT_TIMEOUT=60

DEFROUTE=yes

SYNCHRONOUS=no

ETH=eth0

PROVIDER=Hinet

USER=xxxxxxxx@hinet.net

PEERDNS=no

DEMAND=no

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 SparkTsai 的頭像
    SparkTsai

    史巴克點菜館

    SparkTsai 發表在 痞客邦 留言(1) 人氣()