nonakaと申します
vinelinux4.0のBフレッツ固定IP 8IP pppoe での接続ができず
ここ数日間情報を探しましたが解決できず悩んでおります。
現在使っておりますturboの方では同じ環境で動作しております。
どなたかお知恵をお借りできればと思います。
よろしくお願いいたします。
以下 pppoeの情報ですよろしくお願いいたします。
状況
rp-pppoe
(1)/etc/ppp/pppoe.confのPPPD_EXTRA=""にルーターのアドレスを入れるとつながらない。timeout
(2)PPPD_EXTRA=""の状態だとconnect! となり接続はされるが通信できない。
ルーターのアドレスにネットワークアドレスが入る
ゲートウエイが入らない。
という状況です。
◆ネットワークカード
NIC三枚挿し いずれも認識しており
最初にローカルアドレスを入れ通信確認済みです。
====================
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:B0:D0:F9:A2:5F
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
=====================
DEVICE=eth1
HWADDR=00:90:27:DC:E3:A3
ONBOOT=no
==========================
DEVICE=eth2
BOOTPROTO=static
BROADCAST=211.xxx.xxx.71
HWADDR=00:01:02:BE:79:1E
IPADDR=211.xxx.xxx.65
NETMASK=255.255.255.248
NETWORK=211.xxx.xxx.64
ONBOOT=yes
TYPE=Ethernet
================================
◆割り当てられているIP
IP 211.xxx.xxx.64/29
ネットマスク 255.255.255.248
ルーターのアドレス 211.xxx.xxx.65
◆ログ
=======================================================
/var/log/messages
/etc/ppp/pppoe.conf
PPPD_EXTRA="" ←空欄の場合
Dec 21 16:47:35 gate kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Dec 21 16:47:36 gate pppd[4605]: pppd 2.4.3 started by root, uid 0
Dec 21 16:47:36 gate pppd[4605]: Using interface ppp0
Dec 21 16:47:36 gate pppd[4605]: Connect: ppp0 <--> /dev/pts/2
Dec 21 16:47:36 gate pppoe[4606]: PPP session is 64283 (0xfb1b)
Dec 21 16:47:38 gate pppd[4605]: CHAP authentication succeeded
Dec 21 16:47:38 gate pppd[4605]: default route ioctl(SIOCADDRT): Network is unreachable
Dec 21 16:47:38 gate pppd[4605]: local IP address 211.xxx.xxx.64
Dec 21 16:47:38 gate pppd[4605]: remote IP address 211.xxx.xxx.254
◆PPPD_EXTRA="211.xxx.xxx.65:" を記入の場合
タイムアウトしてしまいます。
Dec 21 16:44:48 gate pppd[3766]: pppd 2.4.3 started by root, uid 0
Dec 21 16:44:48 gate pppd[3766]: Using interface ppp0
Dec 21 16:44:48 gate pppd[3766]: Connect: ppp0 <--> /dev/pts/2
Dec 21 16:44:48 gate pppoe[3767]: PPP session is 64279 (0xfb17)
Dec 21 16:44:50 gate pppd[3766]: CHAP authentication succeeded
Dec 21 16:44:50 gate pppd[3766]: Peer refused to agree to our IP address
Dec 21 16:44:50 gate pppd[3766]: Connect time 0.1 minutes.
Dec 21 16:44:50 gate pppd[3766]: Sent 64 bytes, received 64 bytes.
Dec 21 16:44:50 gate pppd[3766]: Connection terminated.
Dec 21 16:44:52 gate pppoe[3767]: Session 64279 terminated -- received PADT from peer
Dec 21 16:44:52 gate pppoe[3767]: Sent PADT
Dec 21 16:44:52 gate pppd[3766]: Exit.
Dec 21 16:44:52 gate pppoe-connect: PPPoE connection lost; attempting re-connection.
Dec 21 16:44:57 gate pppd[3835]: pppd 2.4.3 started by root, uid 0
Dec 21 16:44:57 gate pppd[3835]: Using interface ppp0
Dec 21 16:44:57 gate pppd[3835]: Connect: ppp0 <--> /dev/pts/2
Dec 21 16:44:57 gate pppoe[3836]: PPP session is 64280 (0xfb18)
Dec 21 16:44:59 gate pppd[3835]: CHAP authentication succeeded
Dec 21 16:44:59 gate pppd[3835]: Peer refused to agree to our IP address
Dec 21 16:44:59 gate pppd[3835]: Connect time 0.1 minutes.
Dec 21 16:44:59 gate pppd[3835]: Sent 64 bytes, received 64 bytes.
Dec 21 16:44:59 gate pppd[3835]: Connection terminated.
Dec 21 16:45:01 gate pppoe[3836]: Session 64280 terminated -- received PADT from peer
Dec 21 16:45:01 gate pppoe[3836]: Sent PADT
Dec 21 16:45:01 gate pppd[3835]: Exit.
============================================================
ルーターのアドレスを指定すると接続できません
PPPD_EXTRA="211.xxx.xxx.65:"
/etc/ppp/pppoe.conf
# When you configure a variable, DO NOT leave spaces around the "=" sign.
# Ethernet card connected to DSL modem
ETH='eth1'
# PPPoE user name. You may have to supply "@provider.com" Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@xxxxxxxx
USER='xxxxxxx@xxxxxxxxxxxx'
# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no
DNS1=xxx.xxx.xxx.165
DNS2=xxx.xxx.xxx.39
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called. Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30
# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2
# Specific desired AC Name
ACNAME=
# Specific desired service name
SERVICENAME=
# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."
# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no
# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no
# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80
# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE
# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=
# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""
# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
#PPPD_EXTRA="211.xxx.xxx.65:"
PPPD_EXTRA=""
########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
◆PPPD_EXTRA="" で接続した場合 の route と ifconfig
カーネルIP経路テーブル
受信先サイト ゲートウェイ ネットマスク フラグ Metric Ref 使用数 インターフェース
211.xxx.xxx.64 * 255.255.255.248 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
eth0 リンク方法:イーサネット ハードウェアアドレス 00:B0:D0:F9:A2:5F
inetアドレス:192.168.1.2 ブロードキャスト:192.168.1.255 マスク:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RXパケット:273 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:338 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:1000
RX bytes:62838 (61.3 Kb) TX bytes:119760 (116.9 Kb)
eth1 リンク方法:イーサネット ハードウェアアドレス 00:90:27:DC:E3:A3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RXパケット:38 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:12 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:1000
RX bytes:2543 (2.4 Kb) TX bytes:449 (449.0 b)
eth2 リンク方法:イーサネット ハードウェアアドレス 00:01:02:BE:79:1E
inetアドレス:211.xxx.xxx.65 ブロードキャスト:211.xxx.xxx.71 マスク:255.255.255.248
UP BROADCAST MULTICAST MTU:1500 Metric:1
RXパケット:0 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:0 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
割り込み:20 ベースアドレス:0x2000
lo リンク方法:ローカルループバック
inetアドレス:127.0.0.1 マスク:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RXパケット:29 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:29 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:0
RX bytes:2752 (2.6 Kb) TX bytes:2752 (2.6 Kb)
ppp0 リンク方法:Point-to-Pointプロトコル
inetアドレス:211.xxx.xxx.64 P-t-P:211.xxx.xxx.254 マスク:255.255.255.2
55
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1
RXパケット:27 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:3 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:3
RX bytes:1192 (1.1 Kb) TX bytes:30 (30.0 b)
◆ゲートウエイを手動で指定しようとしましたが
# /sbin/route add default gw 211.xxx.xxx.254
SIOCADDRT: ネットワークに届きません
と出ます。