vlan 11
vn-segment 10011
interface Vlan11
no shutdown
ip address 11.1.1.254/24
ip router ospf 1 area 0.0.0.0
hsrp version 2
hsrp 11
preempt
ip 11.1.1.252
interface nve1
no shutdown
source-interface loopback0
member vni 10011
ingress-replication protocol static
peer-ip 2.2.2.7
interface Ethernet1/2
no switchport
ip address 1.1.1.1/24
ip router ospf 1 area 0.0.0.0
no shutdown
interface Ethernet1/1
switchport mode access
switch acc vlan 11
interface loopback0
ip address 2.2.2.1/32
ip router ospf 1 area 0.0.0.0
line console
line vty
router ospf 1
router-id 2.2.2.1
[SH6800]display l2*** vsi verbose
VSI Name: ***a
VSI Index : 0
VSI State : Up
MTU : 1500
Bandwidth : -
Broadcast Restrain : -
Multicast Restrain : -
Unknown Unicast Restrain: -
MAC Learning : Enabled
MAC Table Limit : -
MAC Learning rate : -
Drop Unknown : -
Flooding : Enabled
Statistics : Disabled
VXLAN ID : 10011
Tunnels:
Tunnel Name Link ID State Type
Tunnel1 0x5000001 Up Manual
ACs:
AC Link ID State
GE1/0 0 Up
验证主机ping
代码语言:javascript复制
VPCS> sh ip
NAME : VPCS[1]
IP/MASK : 11.1.1.3/24
GATEWAY : 11.1.1.252
DNS :
MAC : 00:50:79:66:68:0b
LPORT : 20000
RHOST:PORT : 127.0.0.1:30000
MTU : 1500
VPCS> ping 11.1.1.1
84 bytes from 11.1.1.1 icmp_seq=1 ttl=64 time=52.298 ms
84 bytes from 11.1.1.1 icmp_seq=2 ttl=64 time=43.287 ms
84 bytes from 11.1.1.1 icmp_seq=3 ttl=64 time=56.294 ms
84 bytes from 11.1.1.1 icmp_seq=4 ttl=64 time=54.209 ms
84 bytes from 11.1.1.1 icmp_seq=5 ttl=64 time=44.216 ms
VPCS> ping 11.1.1.252
84 bytes from 11.1.1.252 icmp_seq=1 ttl=255 time=42.977 ms
84 bytes from 11.1.1.252 icmp_seq=2 ttl=255 time=128.824 ms
84 bytes from 11.1.1.252 icmp_seq=3 ttl=255 time=29.194 ms
84 bytes from 11.1.1.252 icmp_seq=4 ttl=255 time=39.773 ms
84 bytes from 11.1.1.252 icmp_seq=5 ttl=255 time=67.956 ms