当前位置:网站首页>HDLC PAP chap mGRE comprehensive experiment
HDLC PAP chap mGRE comprehensive experiment
2022-07-21 04:38:00 【aweike】
Catalog
4.R1 and R2 Between HDLC encapsulation
5.R2 and R3 Between PPP encapsulation ,pap authentication ;R2 and R4 Between chap authentication
6.R1、R3、R4 structure MGRE Environmental Science
7. Use dynamic routing protocol RIP
8. test — The whole network can reach
The experimental requirements
1.IP Address planning
AR1 To AR2 The network segment between is 12.1.1.0/24
AR2 To AR3 The network segment between is 12.1.2.0/24
AR2 To AR3 The network segment between is 12.1.3.0/24
AR2 The loopback network segment on is 1.1.1.1/24
R1、R2、R3 structure MGRE, The network segment used is 10.1.1.0/24
2. Topology construction
3.IP Address configuration
AR1 The code for is as follows :
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0]q
[r1]interface s4/0/0
[r1-Serial4/0/0]ip address 12.1.1.1 24
[r1-Serial4/0/0]q
AR2 The code for is as follows :
[ISP]interface Serial 4/0/0
[ISP-Serial4/0/0]ip address 12.1.1.2 24
[ISP-Serial4/0/0]interface Serial 3/0/0
[ISP-Serial3/0/0]ip address 12.1.2.1 24
[ISP-Serial3/0/0]interface Serial 3/0/1
[ISP-Serial3/0/1]ip address 12.1.3.1 24
[ISP-Serial3/0/1]q
[ISP]interface LoopBack 0
[ISP-LoopBack0]ip address 1.1.1.1 24
[ISP-LoopBack0]q
AR3 The code for is as follows :
[r3]interface Serial 4/0/0
[r3-Serial4/0/0]ip address 12.1.2.2 24
[r3-Serial4/0/0]q
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.2.1 24
AR4 The code for is as follows :
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[r4-GigabitEthernet0/0/0]q
[r4]interface s4/0/0
[r4-Serial4/0/0]ip address 12.1.3.2 24
[r4-Serial4/0/0]q
4.R1 and R2 Between HDLC encapsulation
AR1 and AR2 The code is as follows :
[r1]interface Serial 4/0/0
[r1-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]:y
[ISP]interface Serial 4/0/0
[ISP-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]:y
5.R2 and R3 Between PPP encapsulation ,pap authentication ;R2 and R4 Between chap authentication
R2 The code for is as follows :
[ISP]aaa
[ISP-aaa]local-user tengxun password cipher 666666
[ISP-aaa]local-user tengxun service-type ppp
[ISP-aaa]int
[ISP-aaa]q
[ISP]interface Serial 3/0/0
[ISP-Serial3/0/0]link-protocol ppp
[ISP-Serial3/0/0]ppp authentication-mode pap
[ISP-Serial3/0/0]q
[ISP]interface Serial 3/0/1
[ISP-Serial3/0/1]link-protocol ppp
[ISP-Serial3/0/1]ppp authentication-mode chap
[ISP-Serial3/0/1]q
R3、R4 The code for is as follows :
[r3]interface Serial 4/0/0
[r3-Serial4/0/0]link-protocol ppp
[r3-Serial4/0/0]ppp pap local-user tengxun password cipher 666666
[r3-Serial4/0/0]q
[r4]interface Serial 4/0/0
[r4-Serial4/0/0]link-protocol ppp
[r4-Serial4/0/0]ppp chap user tengxun
[r4-Serial4/0/0]ppp chap password cipher 666666
[r4-Serial4/0/0]q
6.R1、R3、R4 structure MGRE Environmental Science
R1、R3、R4 Configure the default route and nat authentication , The code is as follows :
[r1]ip route-static 0.0.0.0 0 12.1.1.2
[r1]acl 2000
[r1-acl-basic-2000]rule 1 permit source any
[r1-acl-basic-2000]q
[r1]interface s4/0/0
[r1-Serial4/0/0]nat outbound 2000
[r1-Serial4/0/0]q
[r3]ip route-static 0.0.0.0 0 12.1.2.1
[r3]acl 2000
[r3-acl-basic-2000]rule 1 permit source any
[r3-acl-basic-2000]q
[r3]interface s4/0/0
[r3-Serial4/0/0]nat outbound 2000
[r3-Serial4/0/0]q
[r4]ip route-static 0.0.0.0 0 12.1.3.1
[r4]acl 2000
[r4-acl-basic-2000]rule 1 permit source any
[r4-acl-basic-2000]q
[r4]interface s4/0/0
[r4-Serial4/0/0]nat outbound 2000
[r4-Serial4/0/0]q
take R1 Set as the central site
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]ip address 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 12.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]q
The branch site is R3 and R4
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ip address 10.1.1.2 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source s4/0/0
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]q
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]ip address 10.1.1.3 24
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp
[r4-Tunnel0/0/0]source s4/0/0
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register
[r4-Tunnel0/0/0]nhrp network-id 100
[r4-Tunnel0/0/0]q
7. Use dynamic routing protocol RIP
AR1、AR3、AR4 The code for is as follows :
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 10.0.0.0
[r1-rip-1]network 192.168.1.0
[r1-rip-1]q
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 10.0.0.0
[r3-rip-1]network 192.168.2.0
[r3-rip-1]q
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 10.0.0.0
[r4-rip-1]network 192.168.3.0
[r4-rip-1]q
R3 and R4 The routing table of is incomplete
close RIP The horizontal division of
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon
[r1-Tunnel0/0/0]q
Get the complete routing table after closing
8. test — The whole network can reach
PC1 ping R2 Loopback 、PC2 and PC3
PCpingPC3
边栏推荐
猜你喜欢
Writing greedy snake with C language array
What is FTP
ENSP—NAT综合实验
For loop of shell script
JS笔试题--对象的深拷贝
Qixin Jushi cloud spectrum new chapter | Haitai Fangyuan and Sichuan Unicom reach ecological strategic cooperation
JS笔试题--Promise,setTimeout,任务队列综合题
Process and planned task management
Regular expression of shell script
DHCP原理与配置
随机推荐
进程和计划任务管理
Shell programming specifications and variables
LVM与磁盘配额
Analysis of advantages and disadvantages of Beijing double line machine room
The difference between aggregation and composition in UML
磁盘管理和文件系统
LVM logical volume
三层交换机
DOM操作--获取元素和节点
RAID磁盘阵列
System safety and Application
Mysql安装
JS基础--Math
Istables firewall
系统安全及应用
bond网络模式
Shell loop statement explanation -- while and until loops
JS笔试题--实现数组的flat函数
Three handshakes and four disconnects in TCP
Quota of disks