- CentOSをお使い頂く場合の設定例
-
- 【adsl-setupコマンドによるPPPoE設定】
-
adsl-setupコマンドを使用して、PPPoE接続の設定を実施して下さい。
対話形式で設定を行います
# adsl-setup
~以下、対話形式で入力~
----------------------------------------
LOGIN NAME
Enter your Login Name (default root): 接続アカウント
INTERFACE
(default eth0): eth0
Do you want the link to come up on demand, or stay up continuously?
Enter the demand value (default no): no
DNS
Enter the DNS information here: ご利用のDNSサーバー(プライマリ)
Enter the secondary DNS server address here: ご利用のDNSサーバー(セカンダリ)
PASSWORD Please enter your Password: 接続パスワード
Please re-enter your Password: 接続パスワード
USERCTRL
normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Choose a type of firewall (0-2): 1
Do you want to start this connection at boot time?
Please enter no or yes (default no): yes
** Summary of what you entered **
Accept these settings and adjust configuration files (y/n)? y ----------------------------------------
- 【ファイアーウォール設定の編集】
- PPPOEで接続した場合の仮想NICは【ppp0】になります。iptables等でNICを設定している場合は【ppp0】に変更して下さい。
- 【adsl-connect コマンドの実行】
-
adsl-connectコマンド実行後にPPPOE通信が開始されます。
リモートで作業している場合は接続が切断される可能性があります。
※サーバーの再起動でもPPPOE接続が開始されます。
# adsl-connect
※接続後に下記メッセージが表示されます
---------------------------------------
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
CHAP authentication succeeded
local IP address ご使用IPアドレス
remote IP address グリーンネットルーターのアドレス
----------------------------------------
- 【/var/log/messages ログの確認】
-
/var/log/messages に PPPOE接続ログが出力されています。
# tail -f /var/log/messages
----------------------------------------
Sep 16 21:16:11 localhost pppd[5506]: pppd 2.4.4 started by root, uid 0
Sep 16 21:16:11 localhost pppd[5506]: Using interface ppp1
Sep 16 21:16:11 localhost pppd[5506]: Connect: ppp1 <--> /dev/pts/3
Sep 16 21:16:11 localhost pppoe[5507]: PPP session is 19265
Sep 16 21:16:13 localhost pppd[5506]: CHAP authentication succeeded
Sep 16 21:16:13 localhost pppd[5506]: CHAP authentication succeeded
Sep 16 21:16:13 localhost pppd[5506]: local IP address ご使用IPアドレス
Sep 16 21:16:13 localhost pppd[5506]: remote IP address グリーンネットルーターのアドレス
----------------------------------------