H3C Technologies H3C S12500-X Series Switches User Manual
Page 59
52
# Create a VXLAN tunnel to Switch C. The tunnel interface is Tunnel 2. The tunnel destination is
Loopback 0 at 3.3.3.3 on Switch C.
[SwitchA] interface tunnel 2 mode vxlan
[SwitchA-Tunnel2] source 1.1.1.1
[SwitchA-Tunnel2] destination 3.3.3.3
[SwitchA-Tunnel2] quit
# Create VLANs 2 to 5, and assign FortyGigE 1/0/1 to these VLANs.
[SwitchA] vlan 2 to 5
[SwitchA] interface fortygige 1/0/1
[SwitchA-FortyGigE1/0/1] port link-type trunk
[SwitchA-FortyGigE1/0/1] port trunk permit vlan 2 to 5
# On FortyGigE 1/0/1, configure Ethernet service instance 1000 to match VLAN 2. Map the
service instance to the VSI vpna.
[SwitchA-FortyGigE1/0/1] service-instance 1000
[SwitchA-FortyGigE1/0/1-srv1000] encapsulation s-vid 2
[SwitchA-FortyGigE1/0/1-srv1000] xconnect vsi vpna
[SwitchA-FortyGigE1/0/1-srv1000] quit
# On FortyGigE 1/0/1, create Ethernet service instance 2000 to match VLAN 3. Map the service
instance to the VSI vpnb.
[SwitchA-FortyGigE1/0/1] service-instance 2000
[SwitchA-FortyGigE1/0/1-srv2000] encapsulation s-vid 3
[SwitchA-FortyGigE1/0/1-srv2000] xconnect vsi vpnb
[SwitchA-FortyGigE1/0/1-srv2000] quit
# On FortyGigE 1/0/1, configure Ethernet service instance 3000 to match VLAN 4. Map the
service instance to the VSI vpnc.
[SwitchA-FortyGigE1/0/1] service-instance 3000
[SwitchA-FortyGigE1/0/1-srv3000] encapsulation s-vid 4
[SwitchA-FortyGigE1/0/1-srv3000] xconnect vsi vpnc
[SwitchA-FortyGigE1/0/1-srv3000] quit
# On FortyGigE 1/0/1, configure Ethernet service instance 4000 to match VLAN 5. Map the
service instance 4000 to the VSI vpnd.
[SwitchA-FortyGigE1/0/1] service-instance 4000
[SwitchA-FortyGigE1/0/1-srv4000] encapsulation s-vid 5
[SwitchA-FortyGigE1/0/1-srv4000] xconnect vsi vpnd
[SwitchA-FortyGigE1/0/1-srv4000] quit
[SwitchA-FortyGigE1/0/1] quit
# Start the VXLAN IS-IS process. Enable VXLAN autonegotiation and MAC advertisement.
[SwitchA] vxlan-isis
[SwitchA-vxlan-isis] negotiate-vni enable
[SwitchA-vxlan-isis] mac-synchronization enable
[SwitchA-vxlan-isis] quit
3.
Configure Switch B:
# Enable L2VPN.
[SwitchB] l2vpn enable
# Enable Layer 2 forwarding for VXLANs.
[SwitchB] undo vxlan ip-forwarding