HCIP第三天作业

拓扑搭建

一、底层搭建

配置所有接口和环回的IP地址,所有路由缺省指向运营商

结果:

 

二、R1/2/3MGRE配置

R1的配置

[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 61.1.1.1   
[R1-Tunnel0/0/0]nhrp entry multicast dynamic  
[R1-Tunnel0/0/0]nhrp network-id 100
 

R2的配置

[R2]interface Tunnel 0/0/0 
[R2-Tunnel0/0/0]ip address 10.1.1.2 24 
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp  
[R2-Tunnel0/0/0]source GigabitEthernet 0/0/0   
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 61.1.1.1 register     
[R2-Tunnel0/0/0]nhrp network-id 100
 

R3的配置

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

 结果:

 三、R1/4/5全连MGRE的配置

R1的配置

[R1]interface Tunnel 0/0/1    
[R1-Tunnel0/0/1]ip address 10.1.2.1 24  
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp
[R1-Tunnel0/0/1]source 16.1.1.1    
[R1-Tunnel0/0/1]nhrp entry 10.1.2.2 56.1.1.1 register
[R1-Tunnel0/0/1]nhrp entry 10.1.2.3 46.1.1.1  register
[R1-Tunnel0/0/1]nhrp network-id 100

R4的配置

[R4]interface Tunnel 0/0/1   
[R4-Tunnel0/0/1]ip address 10.1.2.3 24    
[R4-Tunnel0/0/1]tunnel-protocol gre p2mp    
[R4-Tunnel0/0/1]source 46.1.1.1                     
[R4-Tunnel0/0/1]nhrp entry 10.1.2.1 16.1.1.1 register
[R4-Tunnel0/0/1]nhrp entry 10.1.2.2 56.1.1.1 register 
[R4-Tunnel0/0/1]nhrp network-id 100

R5的配置

[R5]interface Tunnel 0/0/1   
[R5-Tunnel0/0/1]ip address 10.1.2.2 24
[R5-Tunnel0/0/1]tunnel-protocol gre p2mp
[R5-Tunnel0/0/1]source 56.1.1.1   
[R5-Tunnel0/0/1]nhrp entry 10.1.2.1 16.1.1.1 register   
[R5-Tunnel0/0/1]nhrp entry 10.1.2.3 46.1.1.1 register
[R5-Tunnel0/0/1]nhrp network-id 100

结果:

 四、R1/2/3/4/5运行OSPF协议

R1

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.1.2.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
 

R2

[R2]ospf 1 router-id 2.2.2.2   
[R2-ospf-1]area 0  
[R2-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]192.168.2.1 0.0.0.0
 

R3

[R3]ospf 1 router-id 3.3.3.3 
[R3-ospf-1]area 0 
[R3-ospf-1-area-0.0.0.0]network 10.1.1.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.1 0.0.0.0

R4

[R4]ospf 1 router-id 4.4.4.4   
[R4-ospf-1]area 0 
[R4-ospf-1-area-0.0.0.0]network 10.1.2.3 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 192.168.4.1 0.0.0.0
 

R5

[R5]ospf 1 router-id 5.5.5.5  
[R5-ospf-1]area 0  
[R5-ospf-1-area-0.0.0.0]network 10.1.2.2 0.0.0.0    
[R5-ospf-1-area-0.0.0.0]network 192.168.5.1 0.0.0.0

 五、R1/2/3的接口模式和降低R2/3的优先级

R1

[R1]interface Tunnel 0/0/0    
[R1-Tunnel0/0/0]ospf network-type broadcast 

R2

[R2]interface Tunnel 0/0/0 
[R2-Tunnel0/0/0]ospf network-type broadcast 

[R2-Tunnel0/0/0]ospf dr-priority 0

R3

[R3]interface Tunnel 0/0/0   
[R3-Tunnel0/0/0]ospf network-type broadcast 

[R3-Tunnel0/0/0]ospf dr-priority 0

结果:

六、改R1/4/5的接口模式

R1

[R1]interface Tunnel 0/0/1    
[R1-Tunnel0/0/1]ospf network-type broadcast

R4

[R4]interface Tunnel 0/0/1    
[R4-Tunnel0/0/1]ospf network-type broadcast

R5

[R5]interface Tunnel 0/0/1    
[R5-Tunnel0/0/1]ospf network-type broadcast

 结果:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值