日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

不会连PPPoE协议都不会配吧?

發布時間:2025/3/20 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 不会连PPPoE协议都不会配吧? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

實驗目的

?

?

1、理解PPPoE的原理

2、掌握PPPoE的配置

?

?

實驗拓撲

?

?

實驗需求

?

?

1、根據實驗拓撲圖,完成設備的基本配置;

2、R1是PPPoE服務器,R2是PPPoE客戶端,R2去R1認證并獲得IP地址。

?

?

實驗步驟

?

?

步驟1:設備的基本配置

?

  • ?
  • ?
  • ?
配置PC1:VPCS> set pcname PC1 //設置主機名PC1> ip 192.168.1.1/24 192.168.1.254 //設置IP地址與默認網關

?

?

  • ?
  • ?
  • ?
配置PC2:VPCS> set pcname PC2 //設置主機名PC2> ip 192.168.2.1/24 192.168.2.254 //設置IP地址與默認網關

?

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
配置R1:Router>enableRouter#configure terminalRouter(config)#hostname R1R1(config)#no ip domain-lookupR1(config)#line console 0R1(config-line)#exec-timeout 0 0R1(config-line)#logging synchronousR1(config-line)#endR1#

?

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
配置R2:Router>enableRouter#configure terminalRouter(config)#hostname R2R2(config)#no ip domain-lookupR2(config)#line console 0R2(config-line)#exec-timeout 0 0R2(config-line)#logging synchronousR2(config-line)#exitR2(config)#interface Eth0/1R2(config-if)#ip address 192.168.1.254 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface Eth0/2R2(config-if)#ip address 192.168.2.254 255.255.255.0R2(config-if)#no shutdownR2(config-if)#endR2#

?

步驟2:配置PPPoE

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
配置R1:R1(config)#username xmws password wisdomR1(config)#bba-group pppoe ToR2R1(config-bba-group)#virtual-template 1R1(config-bba-group)#exitR1(config)#interface ethernet0/0R1(config-if)#pppoe enable group ToR2R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface virtual-template 1R1(config-if)#ip address 12.1.1.1 255.255.255.252R1(config-if)#ip mtu 1492R1(config-if)#peer default ip address pool PoR2R1(config-if)#ppp authentication chapR1(config-if)#exitR1(config)#ip local pool PoR2 12.1.1.2R1(config)#endR1#

?

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
配置R2:R2(config)#interface ethernet0/0R2(config-if)#pppoe enableR2(config-if)#pppoe-client dial-pool-number 1R2(config-if)#no shutdownR2(config-if)#exitR2(config)#interface dialer 1 R2(config-if)#ip mtu 1492R2(config-if)#dialer pool 1R2(config-if)#ip address negotiatedR2(config-if)#encapsulation pppR2(config-if)#ppp ipcp route defaultR2(config-if)#ppp chap hostname xmwsR2(config-if)#ppp chap password wisdomR2(config-if)#endR2#

?

步驟3:檢查PPPoE

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
檢查R2:R2#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up up Ethernet0/1 192.168.1.254 YES manual up up Ethernet0/2 192.168.2.254 YES manual up up Ethernet0/3 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down Dialer1 12.1.1.2 YES IPCP up up Virtual-Access1 unassigned YES unset up up Virtual-Access2 unassigned YES unset up up

?

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
R2#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is 12.1.1.1 to network 0.0.0.0S* 0.0.0.0/0 [1/0] via 12.1.1.1 12.0.0.0/32 is subnetted, 2 subnetsC 12.1.1.1 is directly connected, Dialer1C 12.1.1.2 is directly connected, Dialer1 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.1.0/24 is directly connected, Ethernet0/1L 192.168.1.254/32 is directly connected, Ethernet0/1 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.2.0/24 is directly connected, Ethernet0/2L 192.168.2.254/32 is directly connected, Ethernet0/2

?

?

  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
  • ?
R2#show interfaces dialer 1Dialer1 is up, line protocol is up (spoofing) Hardware is Unknown Internet address is 12.1.1.2/32 MTU 1492 bytes, BW 56 Kbit/sec, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, LCP Closed, loopback not set Keepalive set (10 sec) DTR is pulsed for 1 seconds on reset Interface is bound to Vi2 Last input never, output never, output hang never Last clearing of "show interface" counters 00:20:57 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 6 packets input, 84 bytes 250 packets output, 3500 bytesBound to:Virtual-Access2 is up, line protocol is up Hardware is Virtual Access interface MTU 1492 bytes, BW 56 Kbit/sec, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 --More--

?

總結

以上是生活随笔為你收集整理的不会连PPPoE协议都不会配吧?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。