本实验主要介绍了WAN网络中的PPP/MP、IP-Trunk和PPPoE技术。
掌握PPP/MP的原理与配置、IP-Trunk的原理与配置以及PPPoE技术的原理与配置。
如图所示,公司总部与分部路由器需要实现业务互通。其中,分部路由器R1通过PPPoE拨号接入网络,从R2获取地址。R2与R3采用Serial链路互联,部署MP提升可靠性。R3与R4采用两条Serial链路互联,采用IP-Trunk技术进行serial链路捆绑。表1-1IP地址设计
1.在R1&R2配置PPPoE客户端与服务器相关配置。
2.在R2&R3配置Serial接口及MP。
3.在R3&R4配置Serial接口及IP-Trunk。
4.配置静态路由,实现R1与R4的互通
步骤 1配置R1,完成PPPoE客户端相关配置
[R1]dialer-rule
[R1-dialer-rule]dialer-rule 1 ip permit
[R1]interface Dialer 1
[R1-Dialer1]link-protocol ppp
[R1-Dialer1]ppp pap local-user HuaweiR1 password cipher R1
[R1-Dialer1]ip address ppp-negotiate
[R1-Dialer1]dialer user HuaweiR1
[R1-Dialer1]dialer bundle 1
[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
[R2]aaa
[R2-aaa]local-user Huawei password cipher Hello
[R2-aaa]local-user Huawei service-type ppp
[R2]interface Mp-group 0/0/0
[R2-Mp-group0/0/0]ip address 20.1.1.1 24
[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
[R3]interface Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 20.1.1.2 24
[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
[R3]interface Ip-Trunk 1
[R3-Ip-Trunk1]ip address 10.1.1.1 24
[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
[R4]interface Ip-Trunk 1
[R4-Ip-Trunk1]ip address 10.1.1.2 24
[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
[R1] ip route-static 0.0.0.0 0.0.0.0 1.1.1.1
[R2] ip route-static 10.1.1.0 255.255.255.0 20.1.1.2
[R3] ip route-static 1.1.1.0 255.255.255.0 20.1.1.1
[R4] ip route-static 0.0.0.0 0.0.0.0 10.1.1.1