beautypg.com

H3C Technologies H3C S6800 Series Switches User Manual

Page 44

background image

36

[SwitchA-FortyGigE1/0/1-srv1000] quit

# On FortyGigE 1/0/1, configure 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 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.

system-view

[SwitchB] l2vpn enable

# Specify VXLAN 11111 as the reserved VXLAN for VXLAN IS-IS.

[SwitchB] reserved vxlan 11111

# Create the VSI vpna and VXLAN 10000.

[SwitchB] vsi vpna

[SwitchB-vsi-vpna] vxlan 10000

[SwitchB-vsi-vpna-vxlan10000] quit

[SwitchB-vsi-vpna] quit

# Create the VSI vpnb and VXLAN 10001.

[SwitchB] vsi vpnb

[SwitchB-vsi-vpnb] vxlan 10001

[SwitchB-vsi-vpnb-vxlan10001] quit

[SwitchB-vsi-vpna] quit

# Assign an IP address to Loopback 0. The IP address will be used as the source IP address of the

VXLAN tunnels to Switch A and Switch C.

[SwitchB] interface loopback0

[SwitchB-Loopback0] ip address 2.2.2.2 255.255.255.255

[SwitchB-Loopback0] quit