[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:08592] Re: Linux de ADSL with PPPoE



岩田 薫さん、 加藤 孝幸さん、 のりた さん。
皆々様、アドバイスありがとうございます。 

たかしま です。

恥の上塗りかも知れませんが、 東京めたりっく通信(ADSL)で、
Linux から、どうしてもインターネットに接続したいのです。
よろしくお願いいたします。

環境は、Plamo2.1(kernel2.2.18)stand-aloneで、LANには接続し
ていません。

まず、
# installpkg /cdrom/contrib/Network/dhcpcd.tgz
しました。
次に、ホームページ「Roaring Penguin Software (PPPoE)」
http://www.roaringpenguin.com/pppoe/
から、rp-pppoe-2.6.tar.gz をダウンロードして、
# tar zxvf rp-pppoe-2.6.tar.gz
# cd rp-pppoe-2.6
# ./go
で、 ./configure; make; make install でき、
引き続き、質問があったので、答えました。

以下質問です、
------------------------------------------------------------
Welcome to the Roaring Penguin ADSL client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default abcdefgh@abcd):XXXXXXXX@XXXX

INTERFACE

>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0): eth0

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): 300

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide 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: [Enter] ←何も入力しませんでした

PASSWORD

>>> Please enter your PPPoE password: ********
>>> Please re-enter your PPPoE password: ********

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): 1

** Summary of what you entered **

Ethernet Interface: eth0
User name:          XXXXXXXX@XXXX
Activate-on-demand: Yes; idle timeout = 300 seconds
DNS:                Do not adjust
Firewalling:        STANDALONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
  (But first backing it up to /etc/ppp/pap-secrets-bak)
  (But first backing it up to /etc/ppp/chap-secrets-bak)



Congratulations, it should be all set up!

Type 'adsl-start' to bring up your ADSL link and 'adsl-stop' to bring
it down.  Type 'adsl-status' to see the link status.
------------------------------------------------------------
以上のように質問に答えました。

後は、加藤 孝幸さんに教えていただいたホームページ
http://hpcgi1.nifty.com/ablaxas/d/?20001025#25b
を見て、

/etc/rc.d/rc.inet1 を以下のように編集して、
------------------------------------------------------------
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# eth0(DHCP)
/sbin/dhcpcd eth0

# End of rc.inet1
------------------------------------------------------------

/etc/hosts と、/etc/hosts.allow は、以下の通りです。
------------------------------------------------------------
#
# hosts  This file describes a number of hostname-to-address
#  mappings for the TCP/IP subsystem.  It is mostly
#  used at boot time, when no name servers are running.
#  On small systems, this file can be used instead of a
#  "named" name server.  Just add the names, addresses
#  and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1 localhost
192.168.0.1   alpha.tokyo.or.jp alpha

# End of hosts.
------------------------------------------------------------
------------------------------------------------------------
#
# hosts.allow This file describes the names of the hosts which are
#  allowed to use the local INET services, as decided by
#  the '/usr/sbin/tcpd' server.
#
# Version: @(#)/etc/hosts.allow 1.00 05/28/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org
#
#
ALL : LOCAL
# End of hosts.allow.
------------------------------------------------------------

ifconfig と、PPPoE の起動は、

bash# ifconfig ←PPPoE 起動前
eth0      Link encap:Ethernet  HWaddr 00:00:E8:6A:3A:7F
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xe400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:61 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

bash# adsl-start
bash# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:E8:6A:3A:7F
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xe400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:61 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.112.112.112  P-t-P:10.112.112.113
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

bash# adsl-status
Note: You have enabled demand-connection; adsl-status may be inaccurate.
adsl-status: Link is up and running on interface ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.112.112.112  P-t-P:10.112.112.113
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

bash# ps ax
....
636 ?        S      0:00 /usr/sbin/pppd pty /usr/sbin/pppoe -p
....

bash# adsl-stop
Killing adsl-connect (289)
Killing pppd (309)

と、なります。

ping は、繋がりません。どうしても、接続できないのですが、
どなたか、アドバイスいただけないでしょうか?
よろしくお願いいたします。

-----
たかしま より

Follow-Ups
[plamo:08594] Re: Linux de ADSL with PPPoE, IWATA Kaoru

[検索ページ] [メール一覧]
Plamo ML 公開システム