华为PPPoE、PPP/MP、IP-Trunk配置

1 实验介绍

1.1 关于本实验

本实验主要介绍了WAN网络中的PPP/MP、IP-Trunk和PPPoE技术。

1.2 实验目的

 掌握PPP/MP的原理与配置、IP-Trunk的原理与配置以及PPPoE技术的原理与配置。

1.3 实验组网介绍

在这里插入图片描述
图2-1 PPP/MP+IP-Trunk+PPPoE配置实验拓扑图

1.4 实验规划

如图所示,公司总部与分部路由器需要实现业务互通。其中,分部路由器R1通过PPPoE拨号接入网络,从R2获取地址。R2与R3采用Serial链路互联,部署MP提升可靠性。R3与R4采用两条Serial链路互联,采用IP-Trunk技术进行serial链路捆绑。

表2-1 IP地址设计

设备接口IP地址
R1(AR2220)GE0/0/0NA
R2(AR2220)Mp-group0/0/020.1.1.1/24
R3(Router)Mp-group0/0/020.1.1.2/24
R3(Router)IP-Trunk110.1.1.1/24
R4(Router)IP-Trunk110.1.1.2/24

2 实验任务配置

2.1 配置思路

1.在R1&R2配置PPPoE客户端与服务器相关配置。
2.在R2&R3配置Serial接口及MP。
3.在R3&R4配置Serial接口及IP-Trunk。
4.配置静态路由,实现R1与R4的互通。

2.2 配置步骤

步骤 1 配置R1,完成PPPoE客户端相关配置
# 配置拨号访问控制列表。

[R1]dialer-rule
[R1-dialer-rule]dialer-rule 1 ip permit

# 创建并进入Dialer接口。

[R1]interface Dialer 1

# 设置链路协议为PPP。

[R1-Dialer1]link-protocol ppp

# 设置PAP认证用户名及密码。

[R1-Dialer1]ppp pap local-user HuaweiR1 password cipher R1

# 设置IP地址自动协商。

[R1-Dialer1]ip address ppp-negotiate

# 使能共享DCC和设置Dialer接口对应的对端用户名。

[R1-Dialer1]dialer user HuaweiR1

# 指定共享DCC的Dialer接口使用的Dialer bundle。

[R1-Dialer1]dialer bundle 1

# 将接口置于一个拨号访问组(dialer access group)中。

[R1-Dialer1]dialer-group 1

# 完成物理接口配置。

[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1 

步骤 2 配置R2,完成PPPoE服务器端相关配置
# 配置地址池。

[R2]ip pool pool1
[R2-ip-pool-pool1]gateway-list 1.1.1.1
[R2-ip-pool-pool1]network 1.1.1.0 mask 24

# 创建用户。

[R2]aaa	
[R2-aaa]local-user HuaweiR1 password cipher R1
[R2-aaa]local-user HuaweiR1 service-type ppp

# 配置虚模板。

[R2]interface Virtual-Template 0
[R2-Virtual-Template0]ppp authentication-mode pap 
[R2-Virtual-Template0]remote address pool pool1
[R2-Virtual-Template0]ip address 1.1.1.1 24

# 配置物理接口绑定虚模板。

[R2]interface  GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]pppoe-server bind virtual-template 0

步骤 3 配置R2,完成Serial接口及MP配置
# 作为认证方,创建PPP用户。

[R2]aaa
[R2-aaa]local-user Huawei password cipher Hello
[R2-aaa]local-user Huawei service-type ppp

# 创建MP组,并配置IP。

[R2]interface Mp-group 0/0/0	
[R2-Mp-group0/0/0]ip address 20.1.1.1 24

# 配置Serial口,并加入到MP组中。

[R2]interface Serial 1/0/0
[R2-Serial1/0/0]link-protocol ppp	
[R2-Serial1/0/0]ppp authentication-mode pap	
[R2-Serial1/0/0]ppp mp Mp-group 0/0/0
[R2]interface Serial 1/0/1
[R2-Serial1/0/1]link-protocol ppp	
[R2-Serial1/0/1]ppp authentication-mode pap	
[R2-Serial1/0/1]ppp mp Mp-group 0/0/0

步骤 4 配置R3,完成Serial接口及MP配置
# 创建MP组,并配置IP。

[R3]interface Mp-group 0/0/0	
[R3-Mp-group0/0/0]ip address 20.1.1.2 24

# 配置Serial口,并加入到MP组中。

[R3]interface  Serial 0/0/0
[R3-Serial0/0/0]link-protocol ppp	
[R3-Serial0/0/0]ppp pap local user Huawei password cipher Hello
[R3-Serial0/0/0]ppp mp Mp-group 0/0/0
[R3]interface  Serial 0/0/1
[R3-Serial0/0/1]link-protocol ppp	
[R3-Serial0/0/1]ppp pap local user Huawei password cipher Hello
[R3-Serial0/0/1]ppp mp Mp-group 0/0/0

步骤 5 配置R3,完成Serial接口及IP-Trunk配置
# 创建IP-Trunk接口,并配置IP地址。

[R3]interface Ip-Trunk 1
[R3-Ip-Trunk1]ip address 10.1.1.1 24

# 设置Serial接口链路层封装为HDLC,并加入到IP-Trunk组中。

[R3]interface Serial0/0/2 
[R3-Serial0/0/2]link-protocol hdlc 
[R3-Serial0/0/2]ip-trunk 1
[R3]interface Serial0/0/3
[R3-Serial0/0/3]link-protocol hdlc 
[R3-Serial0/0/3]ip-trunk 1

步骤 6 配置R4,完成Serial接口及IP-Trunk配置
# 创建IP-Trunk接口,并配置IP地址。

[R4]interface Ip-Trunk 1
[R4-Ip-Trunk1]ip address 10.1.1.2 24

# 设置Serial接口链路层封装为HDLC,并加入到IP-Trunk组中。

[R4]interface Serial0/0/2 
[R4-Serial0/0/2]link-protocol hdlc 
[R4-Serial0/0/2]ip-trunk 1
[R4]interface Serial0/0/3
[R4-Serial0/0/3]link-protocol hdlc 
[R4-Serial0/0/3]ip-trunk 1

步骤 7 配置静态路由,实现总部分部互通
#配置R1缺省路由,指向R2。

[R1] ip route-static 0.0.0.0 0.0.0.0 1.1.1.1	

#配置R2去往总部的静态路由。

[R2] ip route-static 10.1.1.0 255.255.255.0 20.1.1.2

#配置R3去往分部的静态路由。

[R3] ip route-static 1.1.1.0 255.255.255.0 20.1.1.1

#配置R4缺省路由,指向R3。

[R4] ip route-static 0.0.0.0 0.0.0.0 10.1.1.1	

3 结果验证

3.1 检查配置结果

在配置完成后,执行以下操作,验证配置结果。
#在R1查看PPPoE拨号状态

[R1]display pppoe-client session summary 
PPPoE Client Session:
ID   Bundle  Dialer  Intf             Client-MAC    Server-MAC    State
1    1       1       GE0/0/0        00e0fc944237  00e0fc6b445d  UP    

#在R1查看PPPoE获取的IP地址

[R1]display ip interface Dialer  1
Dialer1 current state : UP 
Line protocol current state : UP (spoofing)
The Maximum Transmit Unit : 1500 bytes
input packets : 30, bytes : 2520, multicasts : 0
output packets : 42, bytes : 3528, multicasts : 0
Directed-broadcast packets:
 received packets:            0, sent packets:            0 
 forwarded packets:           0, dropped packets:           0 
Internet Address is negotiated, 1.1.1.254/32
Broadcast address : 1.1.1.254
………
………

#在R1测试与总部的连通性

[R1]ping 10.1.1.2
  PING 10.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=253 time=110 ms
    Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=253 time=20 ms
    Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=253 time=50 ms
    Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=253 time=50 ms
    Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=253 time=40 ms

  --- 10.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
round-trip min/avg/max = 20/54/110 ms

#在R2查看PPPoE状态

[R2]display  pppoe-server session all
SID Intf                      State   OIntf          RemMAC         LocMAC
1   Virtual-Template0:0       UP    GE0/0/0        00e0.fc94.4237   00e0.fc6b.445d

#在R2查看MP状态

<R2>display  ppp mp
 Mp-group is Mp-group0/0/0
 ===========Sublinks status begin======
 Serial1/0/0 physical UP,protocol UP
 Serial1/0/1 physical UP,protocol UP
 ===========Sublinks status end========
 Bundle Multilink, 2 members, slot 0, Master link is Mp-group0/0/0
  0 lost fragments, 0 reordered, 0 unassigned, 
 sequence 0/0 rcvd/sent
 The bundled sub channels are:
      Serial1/0/0
      Serial1/0/1

#在R3查看IP-Trunk状态

[R3]dis trunkmembership ip-trunk 1
Trunk ID: 1 
TYPE: pos 
Number Of Ports in Trunk = 2 
Number Of Up Ports in Trunk = 2
Operate status: up 
  
Interface Serial0/0/2, valid, operate up, weight=1
Interface Serial0/0/3, valid, operate up, weight=1
  • 5
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

127.0.0.1/24

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值