How to bind interfaces to VPN instances on a CE series switch

Configure a VPN instance, configure the route distinguisher (RD) and VPN-target extended community attributes for the IPv4 address family, and bind an interface to the VPN instance in the interface view.
# Configure a VPN instance and enable the IPv4 address family in the VPN instance.
system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4]
# Configure an RD for the VPN instance IPv4 address family.

[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1

# Configure the VPN-target extended community attribute for the VPN instance IPv4 address family.

[*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] commit

# Bind an interface to the VPN instance.

[~HUAWEI] interface vlanif 100
[*HUAWEI-Vlanif100] ip binding vpn-instance vpna
[*HUAWEI-Vlanif100] ip address 10.1.1.1 24
[*HUAWEI-Vlanif100] quit
[*HUAWEI] commit

Scroll to top