LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1254|回复: 2

freebsd 8.1 pppoe死活上不了网

[复制链接]
发表于 2011-5-15 20:27:45 | 显示全部楼层 |阅读模式
新安装的freebsd 8.1,但是pppoe死活连不上网,特来请教大家
以太网卡标识是em0,dhcp获取ip,以下是/etc/ppp/ppp.conf配置
default:
        set log Phase tun command
        set ifaddr 10.0.0.1/0 10.0.0.2/0
adsl:
        set device PPPoE:em0
        set authname XXXXXX
        set authkey 123456
        set dial
        set login
        add default HISADDR

这是日志
May 15 14:00:00  newsyslog[1614]: logfile turned over due to size>100K
May 15 14:00:01  ppp[379]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "PPOE")
May 15 14:00:01  ppp[379]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May 15 14:00:01  ppp[379]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: carrier -> login
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: login -> lcp
May 15 14:00:01  ppp[379]: tun0: LCP: FSM: Using "deflink" as a transport
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Initial --> Closed
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Closed --> Stopped
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
May 15 14:00:01  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:01  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:01  ppp[379]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: SendConfigReq(53) state = Stopped
May 15 14:00:01  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:01  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:01  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:01  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:01  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x40277c04
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: SendConfigNak(1) state = Stopped
May 15 14:00:01  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: LayerStart
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: RecvConfigReq(2) state = Req-Sent
May 15 14:00:01  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:01  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: SendConfigNak(2) state = Req-Sent
May 15 14:00:01  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: RecvConfigAck(53) state = Req-Sent
May 15 14:00:01  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:01  ppp[379]: tun0: LCP:  MAGICNUM[6] 0xb9baeceb
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd
May 15 14:00:01  ppp[379]: tun0: Phase: Received NGM_PPPOE_CLOSE
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: Device disconnected
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Ack-Rcvd --> Starting
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: LayerFinish
May 15 14:00:01  ppp[379]: tun0: LCP: deflink: State change Starting --> Initial
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: lcp -> logout
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: logout -> hangup
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: Connect time: 1 secs: 48 octets in, 46 octets out
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: 165 packets in, 233 packets out
May 15 14:00:01  ppp[379]: tun0: Phase:  total 94 bytes/sec, peak 0 bytes/sec on Sun May 15 14:00:00 2011
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: hangup -> opening
May 15 14:00:01  ppp[379]: tun0: Phase: deflink: Enter pause (3) for redialing.
May 15 14:00:01  ppp[379]: tun0: Chat: deflink: Reconnect try 54 of 0
May 15 14:00:04  ppp[379]: tun0: Chat: deflink: Redial timer expired.
May 15 14:00:04  ppp[379]: tun0: Phase: deflink: Connected!
May 15 14:00:04  ppp[379]: tun0: Phase: deflink: opening -> dial
May 15 14:00:04  ppp[379]: tun0: Phase: deflink: dial -> carrier
May 15 14:00:05  ppp[379]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "PPOE")
May 15 14:00:05  ppp[379]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May 15 14:00:05  ppp[379]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: carrier -> login
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: login -> lcp
May 15 14:00:05  ppp[379]: tun0: LCP: FSM: Using "deflink" as a transport
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: State change Initial --> Closed
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: State change Closed --> Stopped
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
May 15 14:00:05  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:05  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:05  ppp[379]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: SendConfigReq(54) state = Stopped
May 15 14:00:05  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:05  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:05  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:05  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:05  ppp[379]: tun0: LCP:  MAGICNUM[6] 0xa2bbda3d
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: SendConfigNak(1) state = Stopped
May 15 14:00:05  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: LayerStart
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: RecvConfigReq(2) state = Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:05  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: SendConfigNak(2) state = Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: RecvConfigRej(54) state = Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: SendIdent(35) state = Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP:  MAGICNUM a2bbda3d
May 15 14:00:05  ppp[379]: tun0: LCP:  TEXT user-ppp 3.4.2
May 15 14:00:05  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:05  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:05  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: SendConfigReq(55) state = Req-Sent
May 15 14:00:05  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:05  ppp[379]: tun0: LCP:  MAGICNUM[6] 0xa2bbda3d
May 15 14:00:05  ppp[379]: tun0: Phase: Received NGM_PPPOE_CLOSE
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: Device disconnected
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: State change Req-Sent --> Starting
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: LayerFinish
May 15 14:00:05  ppp[379]: tun0: LCP: deflink: State change Starting --> Initial
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: lcp -> logout
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: logout -> hangup
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: Connect time: 1 secs: 48 octets in, 86 octets out
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: 168 packets in, 238 packets out
May 15 14:00:05  ppp[379]: tun0: Phase:  total 134 bytes/sec, peak 0 bytes/sec on Sun May 15 14:00:04 2011
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: hangup -> opening
May 15 14:00:05  ppp[379]: tun0: Phase: deflink: Enter pause (3) for redialing.
May 15 14:00:05  ppp[379]: tun0: Chat: deflink: Reconnect try 55 of 0
May 15 14:00:08  ppp[379]: tun0: Chat: deflink: Redial timer expired.
May 15 14:00:08  ppp[379]: tun0: Phase: deflink: Connected!
May 15 14:00:08  ppp[379]: tun0: Phase: deflink: opening -> dial
May 15 14:00:08  ppp[379]: tun0: Phase: deflink: dial -> carrier
May 15 14:00:09  ppp[379]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "PPOE")
May 15 14:00:09  ppp[379]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May 15 14:00:09  ppp[379]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: carrier -> login
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: login -> lcp
May 15 14:00:09  ppp[379]: tun0: LCP: FSM: Using "deflink" as a transport
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Initial --> Closed
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Closed --> Stopped
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
May 15 14:00:09  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:09  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:09  ppp[379]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: SendConfigReq(55) state = Stopped
May 15 14:00:09  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:09  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:09  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:09  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:09  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x62a72555
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: SendConfigNak(1) state = Stopped
May 15 14:00:09  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: LayerStart
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: RecvConfigReq(2) state = Req-Sent
May 15 14:00:09  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:09  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x344242dc
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: SendConfigNak(2) state = Req-Sent
May 15 14:00:09  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: RecvConfigAck(55) state = Req-Sent
May 15 14:00:09  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:09  ppp[379]: tun0: LCP:  MAGICNUM[6] 0xa2bbda3d
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: RecvConfigRej(55), dropped (expected 56)
May 15 14:00:09  ppp[379]: tun0: Phase: Received NGM_PPPOE_CLOSE
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: Device disconnected
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Ack-Rcvd --> Starting
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: LayerFinish
May 15 14:00:09  ppp[379]: tun0: LCP: deflink: State change Starting --> Initial
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: lcp -> logout
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: Disconnected!
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: logout -> hangup
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: Connect time: 1 secs: 64 octets in, 46 octets out
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: 172 packets in, 241 packets out
May 15 14:00:09  ppp[379]: tun0: Phase:  total 110 bytes/sec, peak 0 bytes/sec on Sun May 15 14:00:08 2011
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: hangup -> opening
May 15 14:00:09  ppp[379]: tun0: Phase: deflink: Enter pause (3) for redialing.
May 15 14:00:09  ppp[379]: tun0: Chat: deflink: Reconnect try 56 of 0
May 15 14:00:12  ppp[379]: tun0: Chat: deflink: Redial timer expired.
May 15 14:00:12  ppp[379]: tun0: Phase: deflink: Connected!
May 15 14:00:12  ppp[379]: tun0: Phase: deflink: opening -> dial
May 15 14:00:12  ppp[379]: tun0: Phase: deflink: dial -> carrier
May 15 14:00:13  ppp[379]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "PPOE")
May 15 14:00:13  ppp[379]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May 15 14:00:13  ppp[379]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May 15 14:00:13  ppp[379]: tun0: Phase: deflink: carrier -> login
May 15 14:00:13  ppp[379]: tun0: Phase: deflink: login -> lcp
May 15 14:00:13  ppp[379]: tun0: LCP: FSM: Using "deflink" as a transport
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: State change Initial --> Closed
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: State change Closed --> Stopped
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
May 15 14:00:13  ppp[379]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 15 14:00:13  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x980702dc
May 15 14:00:13  ppp[379]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: SendConfigReq(56) state = Stopped
May 15 14:00:13  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:13  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:13  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:13  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:13  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x7e6ac7a5
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: SendConfigNak(1) state = Stopped
May 15 14:00:13  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: LayerStart
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: RecvConfigRej(56) state = Req-Sent
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: SendIdent(36) state = Req-Sent
May 15 14:00:13  ppp[379]: tun0: LCP:  MAGICNUM 7e6ac7a5
May 15 14:00:13  ppp[379]: tun0: LCP:  TEXT user-ppp 3.4.2
May 15 14:00:13  ppp[379]: tun0: LCP:  ACFCOMP[2]
May 15 14:00:13  ppp[379]: tun0: LCP:  PROTOCOMP[2]
May 15 14:00:13  ppp[379]: tun0: LCP:  ACCMAP[6] 0x00000000
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: SendConfigReq(57) state = Req-Sent
May 15 14:00:13  ppp[379]: tun0: LCP:  MRU[4] 1492
May 15 14:00:13  ppp[379]: tun0: LCP:  MAGICNUM[6] 0x7e6ac7a5
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: RecvTerminateReq(2) state = Req-Sent
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: SendTerminateAck(2) state = Req-Sent
May 15 14:00:13  ppp[379]: tun0: Phase: Received NGM_PPPOE_CLOSE
May 15 14:00:13  ppp[379]: tun0: Phase: deflink: Device disconnected
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: State change Req-Sent --> Starting
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: LayerFinish
May 15 14:00:13  ppp[379]: tun0: LCP: deflink: State change Starting --> Initial
May 15 14:00:13  ppp[379]: tun0: Phase: deflink: Disconnected!
发表于 2011-11-8 00:13:59 | 显示全部楼层
贴一个 ifconfig 的信息看看?
回复 支持 反对

使用道具 举报

发表于 2011-11-8 20:31:16 | 显示全部楼层
没看懂楼主到底是用的那种联网方式,既然“dhcp获取ip”那又何需用pppoe拨号呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表