hcLh3c vxlan模拟

2024-06-06 14:28:07 浏览数 (1)

vxlanvxlan

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

pcpingpcping
代码语言: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

0 人点赞