藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 網絡通訊


    

藍森林 http://www.lslnet.com 2006年7月26日 13:28

配置pppoe後,無法上網,在線等


配置如下:
ip subnet-zero
no ip domain-lookup
!
vpdn enable
!
vpdn-group 1
request-dialin
protocol pppoe
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.3 255.255.255.0
ip nat inside
no ip mroute-cache
duplex auto
speed auto
!
interface Serial0/0
no ip address
no ip mroute-cache
shutdown
no fair-queue
!
interface Ethernet1/0
no ip address
half-duplex
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
no ip route-cache
no ip mroute-cache
dialer pool 1
dialer-group 1
ppp authentication pap
ppp pap sent-username cisco password 0 cisco
!
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
no ip http server
ip pim bidir-enable
!
!
access-list 1 permit 192.168.0.0 0.0.0.255
dialer-list 1 protocol ip permit
!
line con 0
exec-timeout 0 0
transport output none
line aux 0
line vty 0 4
password cisco
login
!
!
end
現在上不了網,請教高手,現在的配置還有哪裡不對 現在上不了網,請教高手,現在的配置還有哪裡不對

配置沒有什麼錯誤,最好DEBUG一下,還有DNS有沒有設置好呢?

我是個新手,請問debug什麼呀,dns已經設置了,還有就是如果通了,能在路由器裡表現出來嗎

有沒有撥上去呢?如果沒有的話,在ppp authen pap callin,這樣的話只讓別人對自己認證,自已不對別人認證!
看一下有沒有nat的轉換,測試一下dns

ip tcp adjust-mss 1452

在E0/0端口上加上

「ip tcp adjust-mss 1452
在E0/0端口上加上」
是什麼意思呢?跟ip mtu有什麼區別呢?
分別用如下調試命令看下:
debug vpdn pppoe-events 檢查PPPoE連接建立過程
show vpdn 檢查建立的PPPoE連接
debug ppp negotiation 檢查PPP參數協商情況
debug ppp authentication 檢查PPP用戶認證情況

缺少DNS SERVER的配置:
在配置中添加:ip name-server *.*.*.* (當地ISP的DNS服務器IP)

輸入ppp authentication chap callin後
出現下面的提示:
AAA: Warning, authentication list "default" is not defined for PPP.
這個提示是什麼意思,應該怎麼解決

show interface查看
Virtual-Access1 is down, line protocol is down
Hardware is Virtual Access interface
MTU 1500 bytes, BW 100000 Kbit, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
LCP Closed
Closed: BRIDGECP, IPCP, CCP, CDPCP, LLC2, IPXCP, NBFCP, ATCP
Last input never, output never, output hang never
Last clearing of "show interface" counters 00:00:49
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transition 
Virtual-Access1 is down, line protocol is down,是因為那裡配置錯了嗎

debug vpdn pppoe-events只顯示了一句
PPPoE protocol events debugging is on

show vpdn

%No active L2TP tunnels

%No active L2F tunnels

%No active PPTP tunnels

PPPoE Tunnel and Session Information Total tunnels 1 sessions 1

PPPoE Tunnel Information

VPDN group: pppoe
Session count: 1

PPPoE Session Information
SID RemMAC LocMAC Intf VASt OIntf VLAN/
VP/VC
59491 0002.3b00.e86f 0002.fda7.ba50 Vi1 DOWN Et1/0
debug ppp negotiation
PPP protocol negotiation debugging is on
debug ppp authentication
PPP authentication debugging is on

我公式正在用的配置沒有問題

version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname cisco
!
enable secret 5 $1$Glxd$q6h0bKfDLJqpmQlpl8wG31
!
ip subnet-zero
!
vpdn enable
!
vpdn-group PPPoE
request-dialin
protocol pppoe
!
interface Ethernet0/0
ip address 192.168.0.100 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
half-duplex
!
interface Ethernet0/1
no ip address
half-duplex
pppoe enable
pppoe-client dial-pool-number 1
!
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
encapsulation ppp
no ip mroute-cache
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication pap callin
ppp pap sent-username adxxxxxxx password 7 141E110F5823137811
ip nat inside source list 1 interface Dialer1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1 permanent
no ip http server
ip pim bidir-enable
!
access-list 1 permit any
dialer-list 1 protocol ip permit
!
line con 0
speed 115200
line aux 0
line vty 0 4
password xxxxxxx
login
!
no scheduler allocate
!
end

非常感謝樓上的幫助,現在可以上網了,但是路由器裡有這樣的信息
%AMDP2_FE-5-LATECOLL: Ethernet1/0 transmit error

mtu 1492
是什麼意思

最初由 gnn77 發佈
mtu 1492
是什麼意思


最大傳輸單元

不行就降

一般設為1492就可以啦

請問vlan2004,我看不出你倆的配置有什麼本質區別,為什麼用你的配置能上,他的就不行呢?

ip tcp adjust-mss 1452 這句是什麼意思?

可能是ppp 模式不對,我最近就遇到有的地方是用 pap的
有的用chap

原先默認情況下MTU是1500byte。本來如果ICMP包沒有被阻塞的話,web server是可以自動調整的,但有時候把server配置成阻塞icmp的包,這樣就造成無法協調了。這樣服務器不明白就繼續以最大傳輸單元1500byte來傳輸。
如果把最大傳輸單元改為1492byte,通常情況下是沒有問題的。但有時候web server會傳輸超過1492byte的包,這樣就會造成"waiting for reply..." 所以,最大的傳輸單元應該比1492byte小,所以是1452!


Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com