ZXA10 C300 Configuration Manual (CLI)
2.
Configure the VLAN of the uplink interfaces.
ZXAN(config)#interface gei_1/21/1
ZXAN(config-if)#switchport vlan 11 tag
ZXAN(config-if)#exit
ZXAN(config)#interface gei_1/21/2
ZXAN(config-if)#switchport vlan 10 tag
ZXAN(config-if)#exit
3.
Configure the IP address of the VLAN interface.
ZXAN(config)#interface vlan 10
ZXAN(config-if-vlan10)#ip address 10.1.1.2 255.255.255.0
ZXAN(config-if-vlan10)#exit
ZXAN(config)#interface vlan 11
ZXAN(config-if-vlan11)#ip address 11.1.1.1 255.255.255.0
ZXAN(config-if-vlan11)#exit
4.
Enable the MPLS on the VLAN interfaces.
ZXAN(config)#interface vlan 10
ZXAN(config-if-vlan10)#mpls ip
ZXAN(config-if-vlan10)#exit
ZXAN(config)#interface vlan 11
ZXAN(config-if-vlan11)#mpls ip
ZXAN(config-if-vlan11)#exit
5.
Configure the routing protocol.
ZXAN(config)#router ospf 1
ZXAN(config-router)#network 2.2.2.2 0.0.0.0 area 0.0.0.0
ZXAN(config-router)#network 10.1.1.0 0.0.0.255 area 0.0.0.0
ZXAN(config-router)#network 11.1.1.0 0.0.0.255 area 0.0.0.0
ZXAN(config-router)#exit
6.
Enable the global MPLS function.
ZXAN(config)#vlan-reserve 4090 vpn
ZXAN(config)#ip mpls-forwarding enable
ZXAN(config)#mpls ldp router-id loopback1
ZXAN(config)#mpls ip
7.
Save the configuration data.
l
Configuration on C300-3.
1.
Configure the loopback interface.
ZXAN(config)#interface loopback1
ZXAN(config-loopback1)#ip address 3.3.3.3 255.255.255.255
ZXAN(config-loopback1)#exit
2.
Configure the VLAN of the uplink interface.
ZXAN(config)#interface gei_1/21/2
ZXAN(config-if)#switchport vlan 11 tag
16-28
SJ-20130520164529-007|2013-06-30 (R1.0)
ZTE Proprietary and Confidential