これまでフレッツISDNを利用していましたが、Bフレッツのニューファミリータイプの月額利用料が4/1から4,500円と値下がり、またキャンペーン中は工事費が無料(NTTで50%の割引とプロバイダで残り50%の支払いをしてくれる)になること、なんといってもISDNに比べ転送速度が約1000倍に跳ね上がることが魅力な為、Bフレッツに切り替えることにしました。
申し込みは5/11にプロバイダ経由で行いました。その際にNTTからのコンサルティング日の指定をします。コンサルティング日にはNTTから電話での連絡があり、本人の確認と工事希望日(開通日)の打ち合わせをします。工事当日の午前中、家の前の電柱に上ってなにやらやっていましたが、光ケーブルを引いていたのでしょう。午後、NTTの人がやってきてメタルケーブルを通している壁のパイプに光ケーブルを通しました。
![]() |
![]() |

PC(CPU) ホスト名 OS 機能 アドレス Pentium3 450MHz redhat Red Hat 7.2 router 192.168.0.1 PowerPC750 300MHz ibook Mac OS X Client 192.168.0.8 - AirStaiton - Access Point 192.168.0.9 Pentium3 666MHz c3po Vine 2.6/Windows2000 Client 192.168.0.11 Crusoe 933MHz pcgu3 Red Hat 9/ WindowsXP Client 192.168.0.20/
192.168.0.21
もともと1枚目のNICはLAN側に接続されていてeth0として認識されています。
そこに2枚目のNICを挿して起動させると自動的に検出されネットワークの設定を促されますので、とりあえすDHCPにチェックして終了します。
2枚目のNICはeth1で認識されますので/etc/sysconfig/network-scrips/ifcfg-eth1を以下のように変更し、起動時に初期化を行わないようにします。
DEVICE=eth1 ONBOOT=no ← yes から no に変更 BOOTPROTO=dhcp |
光回線を使ってインターネットに接続するには多くのプロバイダはPPPoE(Point-to-Point protocol over Ethernet)プロトコルを使います。よって、PPPoEクライアントソフトであるRP-PPPoEをインストールする必要があります。
rp-pppoeのバイナリRPM(rp-pppoe3.5.1.i386.rpm)はhttp://www.roaringpenguin.com/pppoe/からダウンロードできます。
インストールはroot権限で、
# rpm -Uvh rp-pppoe-3.5-1.i386.rpm |
とタイプします。
設定はroot権限で、adsl-setupコマンドを実行します。
$ su Password: # /usr/sbin/adsl-setup |
これ以降質問に答える形で設定が行われます。
ユーザー名はプロバイダから発行されているアカウントのユーザー名をxxxx@yyyy.net」といった具合に入力します。
USER NAME >>> Enter your PPPoE user name (default): xxxx@yyyy.net |
光加入者線終端装置と接続されるネットワークカードのデバイス名を入力します。LAN側はeth0が接続されていますのでeth1を指定します。
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 eth1): eth1 |
オン・デマンドでリンクを確立する場合はそのアイドル・タイムを秒で入力します。
ここでは常時接続をしていますので no を入力します。
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のIPアドレスを入力し、プロバイダからDNSの指定がない場合は sever と入力します。
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: aaa.bbb.ccc.ddd |
プライマリィDNSのIPアドレスを指定した場合は次にセカンダリィDNSのIPアドレスを指定します
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: aaa.bbb.ccc.eee |
プロバイダから発行されたアカウントのパスワードを入力します。
PASSWORD >>> Please enter your PPPoE password: >>> Please re-enter your PPPoE password: |
ファイヤーウォールのルールを指定します。サーバーを立てているわけではなくIPフォワーディングの設定をしていて、以前の設定をそのまま使うので 0 を入力。
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
|
最後に設定した内容が表示され、確認して y を入力して設定を終了。
** Summary of what you entered ** Ethernet Interface: eth1 User name: xxxx@atson.net Activate-on-demand: No Primary DNS: aaa.bbb.ccc.ddd Secondary DNS: aaa.bbb.ccc.ddd Firewalling: NONE >>> Accept these settings and adjust configuration files (y/n)? y |
光加入者線終端装置で回線への接続はadsl startコマンドを実行します。
# /sbin/service adsl start
Bringing up ADSL link.............. Connected!
[ OK ]
|
このように「Connected!」と表示されれば接続完了です。接続されない場合は/var/log/messagesのログを参照すると良いでしょう。
接続状態の確認はadsl statusコマンドを実行することによって確認できます。
# /sbin/service adsl status
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xxx.xxx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1
RX packets:474 errors:0 dropped:0 overruns:0 frame:0
TX packets:450 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:107759 (105.2 Kb) TX bytes:23542 (22.9 Kb)
|
また、マシン起動時に接続させるにはntsysvコマンドで自動的に起動するサービスにadslを追加する/sbin/chkconfig --add adslを実行することで可能です。
インターネット回線の転送速度をブロードバンドスピードテストサイトで測定しました。
平均より早いということでとりあえず、良しとしましょう。
| 測定サイト http://www.bspeedtest.jp/ v2.3.3 測定時刻 2003/06/15 21:42:34 回線種類/線路長 FTTH/- キャリア/ISP/地域 NTT Bフレッツ ニューファミリー/asahi-net/東京都 ホスト1: WebArena(NTTPC) 29Mbps(9971kB,2.7秒) ホスト2: SAKURAインターネット 19Mbps(16870kB,7.0秒) 推定最大スループット: 29Mbps コメント: NTT Bフレッツ ニューファミリーの平均速度は21Mbpsなので少し速い方です。(下位から70%tile) |
ご意見やコメントなどはryusai_cool@yahoo.co.jpまで