XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
30-4
assigned different VLAN tags for different VLANs in DSLAM2. Notice: The assigned VLAN tag
of the second user may be same with the first user and the packet with tag will be also packed
an external tag. In the above figure, the external tag of the second user is different to the first
user for distinguishing DSLAM location and locating the user finally.
The configuration in the following:
If the data flow of DSLAM1 enters the switchs downlink port1, the configuration is as follows:
Switch(config)#class-map c1
Switch(config-classmap-c1)#match vlan 1001
Switch(config-classmap-c1)#exit
Switch(config)#class-map c2
Switch(config-classmap-c2)#match vlan 2001
Switch(config-classmap-c2)#exit
Switch(config)#class-map c3
Switch(config-classmap-c3)#match vlan 3001
Switch(config-classmap-c3)#exit
Switch(config)#policy-map p1
Switch(config-policymap-p1)#class c1
Switch(config-policymap-p1-class-c1)# set nested-vlan 1001
Switch(config-policymap-p1)#class c2
Switch(config-policymap-p1-class-c2)# set nested-vlan 2001
Switch(config-policymap-p1)#class c3
Switch(config-policymap-p1-class-c3)# set nested-vlan 3001
Switch(config-policymap-p1-class-c3)#exit
Switch(config-policymap-p1)#exit
Switch(config)#interface ethernet 1/0/1
Switch(config-if-ethernet1/0/1)#service-policy p1 in
If the data flow of DSLAM2 enters the switchs downlink port1, the configuration is as follows:
Switch(config)#class-map c1
Switch(config-classmap-c1)#match vlan 1001
Switch(config-classmap-c1)#exit
Switch(config)#class-map c2
Switch(config-classmap-c2)#match vlan 2001
Switch(config-classmap-c2)#exit
Switch(config)#class-map c3
Switch(config-classmap-c3)#match vlan 3001
Switch(config-classmap-c3)#exit
Switch(config)#policy-map p1
Switch(config-policymap-p1)#class c1