华为mGRE DS 实验

华为mGRE DS 实验_第1张图片

 Hub节点的配置

#
interface GigabitEthernet0/0/0
 ip address 1.1.1.3 255.255.255.0 
#
#
interface Tunnel0/0/1                //配置隧道接口
 ip address 10.0.0.3 255.255.255.0     //配置速调接口地址
 tunnel-protocol gre p2mp            //配置隧道类型为GRE  VPN  的点对多点模式
 source 1.1.1.3                    //源公网地址为1.1.1.3
 ospf network-type broadcast        //配置使能ospf后的网络类型为广播
 ospf dr-priority 200                //设置该端口为dr
 nhrp entry multicast dynamic        //配置下一跳地址解析协议为组播动态主机
 nhrp network-id 123                //配置下一跳地址解析协议网络号为123
#
#
ospf 1                             //使能ospf   宣告tunnel接口地址
 area 0.0.0.0 
  network 10.0.0.0 0.0.0.255 
#

R1

R1
#
interface GigabitEthernet0/0/0
 ip address 192.168.1.254 255.255.255.0 
#

#
interface GigabitEthernet0/0/1
 ip address 1.1.1.1 255.255.255.0 
#
#
interface Tunnel0/0/1
 ip address 10.0.0.1 255.255.255.0 
 tunnel-protocol gre p2mp
 source GigabitEthernet0/0/1
 ospf network-type broadcast
 ospf dr-priority 0                         //不参与dr的计算
 nhrp entry multicast dynamic
 nhrp network-id 123
 nhrp entry 10.0.0.3 1.1.1.3 register        //配置ngrp注册的公网地址1.1.1.3设备的隧道地址为10.0.0.3 
#
ospf 1 
 area 0.0.0.0 
  network 10.0.0.0 0.0.0.255 
  network 192.168.1.0 0.0.0.255 
#

R2

#
interface GigabitEthernet0/0/0
 ip address 1.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.2.254 255.255.255.0 
#

#
interface Tunnel0/0/1
 ip address 10.0.0.2 255.255.255.0 
 tunnel-protocol gre p2mp
 source GigabitEthernet0/0/0
 ospf network-type broadcast
 ospf dr-priority 0
 nhrp entry multicast dynamic
 nhrp network-id 123
 nhrp entry 10.0.0.3 1.1.1.3 register
#
#
ospf 1 
 area 0.0.0.0 
  network 10.0.0.0 0.0.0.255 
  network 192.168.2.0 0.0.0.255 
#

你可能感兴趣的:(华为学习日记,华为,网络)