Technical documentation
发布日期:2023-06-16 浏览次数:1300 来源:崔志鹏
HCIP培训理论技术笔记含配置-HUB-SPOKE-WOLFLAB
WOLFLAB官方微信:17316362402,了解华为认证HCIP培训Datacom课程,WOLFLAB提供华为认证基础课HCIA培训课程免费学习资料,联系客服获取!
华为认证HCIP培训Datacom课程-场景一:站点之间不能访问,都可以访问总部
华为认证HCIP培训Datacom课程-场景二:站点之间可以访问,但是需要经过总部
设计思路:
@在AR1和AR5之间搞两个子接口;
@把这两个子接口划入到不同的VRF中;
@让一个VRF只用作接收分部的路由,一个VRF发送路由;
@AR1和AR5通过子接口建立两个EBGP邻居关系;
@合理规划RT值实现需求;
R1配置
ip vpn-instance A-EX
ipv4-family
route-distinguisher 4:4
vpn-target 1:1 export-extcommunity
#
ip vpn-instance A-IM
ipv4-family
route-distinguisher 1:1
vpn-target 2:2 import-extcommunity
interface GigabitEthernet0/0/0.1
dot1q termination vid 10
ip binding vpn-instance A-IM
ip address 1.1.15.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.2
dot1q termination vid 20
ip binding vpn-instance A-EX
ip address 1.1.51.1 255.255.255.0
arp broadcast enable
bgp 1234
router-id 1.1.1.1
peer 2.2.2.2 as-number 1234
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 2.2.2.2 enable
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
#
ipv4-family vpn-instance A-EX
peer 1.1.51.5 as-number 500
peer 1.1.51.5 allow-as-loop
#
ipv4-family vpn-instance A-IM
peer 1.1.15.5 as-number 500
R5配置
interface GigabitEthernet0/0/0.1
dot1q termination vid 10
ip address 1.1.15.5 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.2
dot1q termination vid 20
ip address 1.1.51.5 255.255.255.0
arp broadcast enable
bgp 500
router-id 5.5.5.5
peer 1.1.15.1 as-number 1234
peer 1.1.51.1 as-number 1234
#
ipv4-family unicast
undo synchronization
network 5.5.5.5 255.255.255.255
peer 1.1.15.1 enable
peer 1.1.51.1 enable
R7 tracert R6效果图如下:
R7 tracert R5效果图如下:
R6 tracert R7效果图如下:
WOLFLAB官方微信:17316362402
WOLFLAB官方QQ:2569790740
欢迎关注【WOLFLAB】(沃尔夫)网络实验室,了解HCIP培训Datacom相关课程