HCIP作业3

题目

HCIP作业3_第1张图片

配置IP地址

R1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.1 24
[r1-Serial4/0/0]ip add 12.1.1.1 24     
 

R2
[r2]int s4/0/0
[r2-Serial4/0/0]ip add 12.1.1.2 24
[r2-Serial4/0/0]int s4/0/1
[r2-Serial4/0/1]ip add 32.1.1.1 24
[r2-Serial4/0/1]int s3/0/0
[r2-Serial3/0/0]ip add 42.1.1.1 24
[r2-Serial3/0/0]int l0
[r2-LoopBack0]ip add 2.2.2.2 24


R3
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.2.1 24 
[r3-GigabitEthernet0/0/1]int s4/0/0
[r3-Serial4/0/0]ip add 32.1.1.2 24


R4
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[r4-GigabitEthernet0/0/1]int s4/0/0
[r4-Serial4/0/0]ip add 42.1.1.2 24

HDLC封装

R1
[R1-Serial4/0/0]link-protocol hdlc
R2
[r2-Serial4/0/0]link-protocol hdlc

PPP封装及其PAP认证

R2
[r2]aaa 
[r2-aaa]local-user r2 privilege level 15 password cipher 123456
[r2-aaa]local-user r2 service-type ppp
[r2]int s4/0/1
[r2-Serial4/0/1]ppp authentication-mode pap


R3
[r3]int s4/0/0
[r3-Serial4/0/0]ppp pap local-user r2 password cipher 123456

ppp封装及chap认证

R2
[r2]aaa
[r2-aaa]local-user wym privilege level 15 password cipher 123456
[r2-aaa]local-user wym service-type ppp
[r2-aaa]int s3/0/0
[r2-Serial3/0/0]ppp authentication-mode chap 

R4
[r4]int s4/0/0 
[r4-Serial4/0/0]ppp chap password cipher 123456
[r4-Serial4/0/0]ppp chap user wym 

构建MGRE环境

R1
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 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


R3
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/2
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register 


R4
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]ip add 10.1.1.4 255.255.255.0 
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r4-Tunnel0/0/0]source GigabitEthernet 0/0/2
[r4-Tunnel0/0/0]nhrp network-id 100
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register 

配置NAT协议

R1
[r1]int s4/0/0
[r1-Serial4/0/0]nat static global 12.1.1.3 inside 192.168.1.2 netmask 255.255.255.255


R3
[r3]int s4/0/0 
[r3-Serial4/0/0]nat static global 32.1.1.3 inside 192.168.2.2 netmask 255.255.255.255


R4
[r4]int s4/0/0
[r4-Serial4/0/0]nat static global 42.1.1.3 inside 192.168.3.2 netmask 255.255.255.255


配置RIP协议

R1
[r1]rip 
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0

[r1-Tunnel0/0/0]undo rip split-horizon


R3
[r3]rip
[r3-rip-1]version 2
[r3-rip-1]network 192.168.2.0
[r3-rip-1]network 10.0.0.0


R4
[r4]rip         
[r4-rip-1]version 2
[r4-rip-1]network 192.168.3.0 
[r4-rip-1]network 10.0.0.0

你可能感兴趣的:(HCIP作业,网络,服务器,linux)