HCIP综合实验

各个路由器配置

R1

配置IP

[R1-GigabitEthernet0/0/0]ip add 192.168.1.2 24

[R1-Serial4/0/0]ip add 15.1.1.1 24

配置缺省

[R1]ip route-static 0.0.0.0 0 15.1.1.2

接受认证

[R1-Serial4/0/1]ppp pap local-user tao password cipher tao

配置隧道地址

[R1-Tunnel0/0/0]ip add 10.1.2.1 24

选择协议

[R1-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R1-Tunnel0/0/0]source Serial 4/0/0

加入100域

[R1-Tunnel0/0/0]nhrp network-id 100

实现RIP全网可达

[r1]int t 0/0/0
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 
[r1-Tunnel0/0/0]q
[r1]rip
[r1-rip-1]v 2
[r1-rip-1]undo summary 
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r1-rip-1]q
[r1]int t 0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon 

配置NAT

[r1]acl 2000

[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255

[r1]int s 4/0/0

[r1-Serial4/0/0]nat outbound 200

R2

配置IP

[R2-GigabitEthernet0/0/0]ip add 192.168.2.2 24

[R2-Serial4/0/0]ip add 25.1.1.2 24

配置缺省

[R2]ip route-static 0.0.0.0 0 25.1.1.1

接受认证

[R2-Serial4/0/0]ppp chap user xun

[R2-Serial4/0/0]ppp chap password cipher xun

配置隧道地址

[R2-Tunnel0/0/0]ip add 10.1.2.2 24

选择协议

[R2-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R2-Tunnel0/0/0]source Serial 4/0/0

加入100域

[R2-Tunnel0/0/0]nhrp network-id 100

实现RIP全网可达

[r2]rip

[r2-rip-1]v 2

[r2-rip-1]undo summary

[r2-rip-1]network 192.168.2.0

[r2-rip-1]network 10.0.0.0

配置NAT

[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2]int s 4/0/0
[r2-Serial4/0/0]nat outbound 2000

R3

配置IP

[R3-GigabitEthernet0/0/0]ip add 192.168.3.2 24

[R3-Serial4/0/0]ip add 35.1.1.2 24

配置缺省

[R3]ip route-static 0.0.0.0 0 35.1.1.1

进行HDLC封装

[R3-Serial4/0/0]link-protocol hdlc

配置隧道地址

[R3-Tunnel0/0/0]ip add 10.1.2.3 24

选择协议

[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R3-Tunnel0/0/0]source Serial 4/0/0

加入100域

[R3-Tunnel0/0/0]nhrp network-id 100

实现RIP全网可达

[r3]rip

[r3-rip-1]v 2

[r3-rip-1]undo summary

[r3-rip-1]network 192.168.3.0

[r3-rip-1]network 10.0.0.0

配置NAT

[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3]int s 4/0/0
[r3-Serial4/0/0]nat outbound 2000

R4

配置IP

[R4-GigabitEthernet0/0/1]ip add 192.168.4.2 24

[R4-GigabitEthernet0/0/0]ip add 45.1.1.2 24

配置缺省

[R4]ip route-static 0.0.0.0 0 45.1.1.1

配置隧道地址

[r4]int t 0/0/1
[r4-Tunnel0/0/1]ip add 10.1.1.4 24
[r4-Tunnel0/0/1]tunnel-protocol gre 
[r4-Tunnel0/0/1]source 45.1.1.4
[r4-Tunnel0/0/1]destination 15.1.1.1

实现RIP全网可达

[r4]rip

[r4-rip-1]v 2

[r4-rip-1]undo summary

[r4-rip-1]network 192.168.4.0

[r4-rip-1]network 10.0.0.0

配置NAT

[r4]acl 2000
[r4-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]nat outbound 2000

R5

配置IP

[R5-LoopBack0]ip add 5.5.5.5 24

[R5-Serial4/0/1]ip add 15.1.1.2 24

[R5-Serial3/0/1]ip add 25.1.1.1 24

[R5-Serial4/0/0]ip add 35.1.1.1 24

[R5-GigabitEthernet0/0/0]ip add 45.1.1.1 24

进入aaa模式,添加用户,密码

[R5-aaa]local-user tao password cipher tao(与R1)

[R5-aaa]local-user xun password cipher xun(与R2)

选择认证方式

[R5-Serial4/0/1]ppp authentication-mode pap

[R5-Serial3/0/1]ppp authentication-mode CHAP

进行HDLC封装

[R5-Serial4/0/0]link-protocol hdlc

上一篇:MATLAB 打开文件对话框选择点云输入 (52)-一、算法介绍


下一篇:相关滤波跟踪算法-MOSSE、KCF