前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >hcLh3c vxlan模拟

hcLh3c vxlan模拟

原创
作者头像
yaodo
发布2024-06-06 14:28:07
1120
发布2024-06-06 14:28:07
举报
文章被收录于专栏:netservice
vxlan
vxlan

vxlan结构必须用msr36-20路由器模拟,用另一种路由器不通。

pcping
pcping
代码语言:txt
复制
#CE1:
ospf 1
 area 0.0.0.0
  network 10.10.10.1 0.0.0.0
  network 10.10.12.0 0.0.0.255
  network 10.10.13.0 0.0.0.255
#
 system-working-mode standard
 xbar load-single
 password-recovery enable
 lpu-type f-series
#
vlan 1
#
 l2vpn enable
#
vsi 10
 vxlan 10
  tunnel 1
  tunnel 2
#
interface Serial1/0
#
interface Serial2/0
#
interface Serial3/0
#
interface Serial4/0
#
interface NULL0
#
interface LoopBack1
 ip address 10.10.10.1 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 10.10.12.1 255.255.255.0
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 10.10.13.1 255.255.255.0
#
interface GigabitEthernet0/2
 port link-mode route
 combo enable copper
#
interface GigabitEthernet0/2.10
 vlan-type dot1q vid 10
 xconnect vsi 10
#
interface GigabitEthernet5/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet5/1
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/1
 port link-mode route
 combo enable copper
#
interface Tunnel1 mode vxlan
 source 10.10.10.1
 destination 10.10.10.2
#
interface Tunnel2 mode vxlan
 source 10.10.10.1
 destination 10.10.10.3


#CE2
ospf 1
 area 0.0.0.0
  network 10.10.10.2 0.0.0.0
  network 10.10.12.0 0.0.0.255
  network 10.10.23.0 0.0.0.255
#
 system-working-mode standard
 xbar load-single
 password-recovery enable
 lpu-type f-series
#
vlan 1
#
 l2vpn enable
#
vsi 10
 vxlan 10
  tunnel 1
  tunnel 2
#
interface Serial1/0
#
interface Serial2/0
#
interface Serial3/0
#
interface Serial4/0
#
interface NULL0
#
interface LoopBack1
 ip address 10.10.10.2 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 10.10.12.2 255.255.255.0
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 10.10.23.1 255.255.255.0
#
interface GigabitEthernet0/2
 port link-mode route
 combo enable copper
#
interface GigabitEthernet0/2.10
 vlan-type dot1q vid 10
 xconnect vsi 10
#
interface GigabitEthernet5/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet5/1
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/1
 port link-mode route
 combo enable copper
#
interface Tunnel1 mode vxlan
 source 10.10.10.2
 destination 10.10.10.1
#
interface Tunnel2 mode vxlan
 source 10.10.10.2
 destination 10.10.10.3


#CE3:
ospf 1
 area 0.0.0.0
  network 10.10.10.3 0.0.0.0
  network 10.10.13.0 0.0.0.255
  network 10.10.23.0 0.0.0.255
#
 system-working-mode standard
 xbar load-single
 password-recovery enable
 lpu-type f-series
#
vlan 1
#
 l2vpn enable
#
vsi 10
 vxlan 10
  tunnel 1
  tunnel 2
#
interface Serial1/0
#
interface Serial2/0
#
interface Serial3/0
#
interface Serial4/0
#
interface NULL0
#
interface LoopBack1
 ip address 10.10.10.3 255.255.255.255
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 10.10.13.2 255.255.255.0
#
interface GigabitEthernet0/1
 port link-mode route
 combo enable copper
 ip address 10.10.23.2 255.255.255.0
#
interface GigabitEthernet0/2
 port link-mode route
 combo enable copper
#
interface GigabitEthernet0/2.10
 vlan-type dot1q vid 10
 xconnect vsi 10
#
interface GigabitEthernet5/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet5/1
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/0
 port link-mode route
 combo enable copper
#
interface GigabitEthernet6/1
 port link-mode route
 combo enable copper
#
interface Tunnel1 mode vxlan
 source 10.10.10.3
 destination 10.10.10.1
#
interface Tunnel2 mode vxlan
 source 10.10.10.3
 destination 10.10.10.2

#SW1:
interface GigabitEthernet1/0/1
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan all
 combo enable fiber
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 10
 combo enable fiber

#SW2:
interface GigabitEthernet1/0/1
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan all
 combo enable fiber
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 10
 combo enable fiber

#SW3:
interface GigabitEthernet1/0/1
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan all
 combo enable fiber
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 10
 combo enable fiber

PC1:192.168.1.1
PC2:192.168.1.2
PC3:192.168.1.3

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档