当前位置:网站首页>Static vxlan configuration

Static vxlan configuration

2022-07-07 12:27:00 __ Dong

 Insert picture description here
config

CE1 、CE2

>system-view immediately   ##  Enter the command to make it effective immediately , Avoid input commit  trouble 
## CE1
 Configure the underlying underlay The Internet 
interface GE1/0/0
 undo portswitch
 undo shutdown
 ip add 12.0.0.1 24
 
 int lo0
 ip add 1.1.1.1 24
 
 
 ospf 1
 are 0
 
 int G1/0/0
 ospf enable are 0
 int  lo0
 ospf enable are 0

##CE2
 CE2
 
 interface GE1/0/0
 undo portswitch
 undo shutdown
 ip address 12.0.0.2 255.255.255.0
 ospf enable 1 area 0.0.0.0
 
 interface LoopBack0
 ip address 2.2.2.2 255.255.255.0
 ospf enable 1 area 0.0.0.0

ospf 1
 area 0.0.0.0
 

SW1、SW2


##SW1
vlan batch 10
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 10

##SW2
vlan batch 20
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20

To configure vxlan

##SW1
 bridge-domain 10
 vxlan vni 10
 
 interface GE1/0/1.1 mode l2
 encapsulation dot1q vid 10            ## vlan id by 10  Packets of are allowed to enter the tunnel 
 bridge-domain 10
 
 interface Nve1
 source 1.1.1.1
 vni 10 head-end peer-list 2.2.2.2

##SW2
 bridge-domain 10
 vxlan vni 10
 
 interface GE1/0/1.1 mode l2
 encapsulation dot1q vid 20              ## vlan id by 20  Packets of are allowed to enter the tunnel 
 bridge-domain 10
 
 interface Nve1
 source 2.2.2.2
 vni 10 head-end peer-list 1.1.1.1

test :
 Insert picture description here

原网站

版权声明
本文为[__ Dong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071027111641.html