HCIP实验:ospf环境下的MGRE实验

R1配置:

        sysname R1   

        ip route-static 0.0.0.0 0.0.0.0 12.0.0.2
        ip route-static 0.0.0.0 0.0.0.0 21.0.0.2

        interface GigabitEthernet0/0/0
                ip address 21.0.0.1 255.255.255.0 

        interface LoopBack0
                ip address 192.168.1.1 255.255.255.0

        interface Tunnel0/0/0
                ip address 192.168.7.1 255.255.255.0 
                tunnel-protocol gre p2mp
                source 21.0.0.1
                ospf network-type p2mp
                nhrp entry multicast dynamic
                nhrp network-id 100

        interface Tunnel0/0/1
                ip address 192.168.2.1 255.255.255.0 
                tunnel-protocol gre p2mp
                source 12.0.0.1
                ospf network-type broadcast
                nhrp entry multicast dynamic
                nhrp network-id 100

                nhrp entry 192.168.2.3 23.0.0.1 register
                nhrp entry 192.168.2.4 24.0.0.1 register

        ospf 1 router-id 1.1.1.1 
                area 0.0.0.0 
                network 12.0.0.0 0.0.0.255 
                network 21.0.0.0 0.0.0.255 
                network 192.168.1.0 0.0.0.255 
                network 192.168.2.0 0.0.0.255 
                network 192.168.7.0 0.0.0.255 

R3:

        ip route-static 0.0.0.0 0.0.0.0 23.0.0.2

        sysname R3

        interface Tunnel0/0/0
                ip address 192.168.2.3 255.255.255.0 
                tunnel-protocol gre p2mp
                source 23.0.0.1
                ospf network-type broadcast
                nhrp entry multicast dynamic
                nhrp network-id 100
                nhrp entry 192.168.2.1 12.0.0.1 register
                nhrp entry 192.168.2.4 24.0.0.1 register

        interface GigabitEthernet0/0/0
                ip address 23.0.0.1 255.255.255.0

        ospf 1 router-id 3.3.3.3 
                area 0.0.0.0 
                network 23.0.0.0 0.0.0.255 
                network 192.168.2.0 0.0.0.255 
                network 192.168.3.0 0.0.0.255 

R4:

         sysname R4

        ip route-static 0.0.0.0 0.0.0.0 24.0.0.2

        interface Tunnel0/0/0
                ip address 192.168.2.4 255.255.255.0 
                tunnel-protocol gre p2mp
                source 24.0.0.1
                ospf network-type broadcast
                nhrp entry multicast dynamic
                nhrp network-id 100
                nhrp entry 192.168.2.1 12.0.0.1 register
                nhrp entry 192.168.2.3 23.0.0.1 register

        ospf 1 router-id 4.4.4.4 
                area 0.0.0.0 
                network 24.0.0.0 0.0.0.255 
                network 192.168.2.0 0.0.0.255 
                network 192.168.4.0 0.0.0.255 

R5:

        ip route-static 0.0.0.0 0.0.0.0 25.0.0.2

        sysname R5

        interface GigabitEthernet0/0/0
                ip address 25.0.0.1 255.255.255.0 

        interface Tunnel0/0/0
                ip address 192.168.7.5 255.255.255.0 
                tunnel-protocol gre p2mp
                source GigabitEthernet0/0/0
                ospf network-type p2mp
                nhrp entry multicast dynamic
                nhrp network-id 100
                nhrp entry 192.168.7.1 21.0.0.1 register

        ospf 1 router-id 5.5.5.5 
                area 0.0.0.0 
                network 25.0.0.0 0.0.0.255 
                network 192.168.5.0 0.0.0.255 
                network 192.168.7.0 0.0.0.255 

R6:

        sysname R6

        ip route-static 0.0.0.0 0.0.0.0 26.0.0.2

        interface GigabitEthernet0/0/0
                ip address 26.0.0.1 255.255.255.0 

        interface Tunnel0/0/0
                ip address 192.168.7.6 255.255.255.0 
                tunnel-protocol gre p2mp
                source GigabitEthernet0/0/0
                ospf network-type p2mp
                nhrp entry multicast dynamic
                nhrp network-id 100
                nhrp entry 192.168.7.1 21.0.0.1 register

        ospf 1 router-id 6.6.6.6 
                area 0.0.0.0 
                network 26.0.0.0 0.0.0.255 
                network 192.168.6.0 0.0.0.255 
                network 192.168.7.0 0.0.0.255 

R2:

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              21.0.0.2/24          up         up        
GigabitEthernet0/0/1              12.0.0.2/24          up         up        
GigabitEthernet0/0/2              23.0.0.2/24          up         up        
GigabitEthernet4/0/0              24.0.0.2/24          up         up        
GigabitEthernet4/0/1              25.0.0.2/24          up         up        
GigabitEthernet4/0/2              26.0.0.2/24          up         up        
GigabitEthernet4/0/3              unassigned           down       down      
NULL0                             unassigned           up         up(s) 

检验:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值