170 likes | 518 Views
ZXR10 Routing Swtich QinQ & SVLAN Configuration. Objectives. Know about Configuration of QinQ Grasp Application Configuration of SVLAN. Content. QinQ Configuration SVLAN Configuration. QinQ Configuration. Access L2 interface. ZXR10(config)# interface < interface-name >.
E N D
Objectives • Know about Configuration of QinQ • Grasp Application Configuration of SVLAN
Content • QinQ Configuration • SVLAN Configuration
QinQ Configuration Access L2 interface ZXR10(config)# interface < interface-name> • Configure QinQ port attribute ZXR10(config-gei_1/x)# switchport qinq{normal|uplink|customer|tpid <tpid>} • Show QinQ configuration result ZXR10#show qinq
QinQ Configuration Example • Assume Switch A customer port is gei_3/1 and uplink port is gei_3/24; Switch B customer port is gei_7/1, uplink port is gei_7/24. SPVLAN 10 Customer port SPVLAN 10 Uplink port User's Network 1 CVLAN1~100 Switch A ISP Networks User's Network 2 CVLAN1~100 PE SPVLAN 10 uplink port Switch B PE SPVLAN 10 Customer port SPVLAN: Service Provider VLAN CVLAN: Customer VLAN
QinQ Configuration Example • Configuration of Switch A • Configuration of Switch B
Content • QinQ Configuration • SVLAN Configuration
SVLAN Configuration Configure SVLAN rule for packet with tag ZXR10(config)# vlan qinq session-no <session-id> customer-port <port-id> uplink-port <port-id>{{in-vlan <vlan-id>{{ovlan <vlan-id>}}}|default-vlan-forwarding} default-vlan-forwarding:Transparent transmission function When the customer port is on the old line card (8270), and the uplink port is the smartgroup, this function will become invalid and the use is restricted; and the other case is that, when using native vlan to add the outer tag, the two can not be used simultaneously. • Configure SVLAN rule for packet without tag ZXR10(config)# vlan qinq session-no <session-id> customer-port <port-id> uplink-port <port-id>{untag ovlan <vlan-id>[undirect]} • Display SVLAN configuration information ZXR10(config)# show vlan qinq [session <session-id>]
T600(vpls) BRAS 600-1024 997:100-500(gei_1/1) 1100:untag 8905 998:100-500(gei_1/2) uplink:gei_1/3 3000 uplink:gei_1/4 100-500 100-500 customer:gei_1/1 customer:gei_1/2 600-1024 600-1024 3000 3000 2826E 2826E SVLAN Configuration Example
SVLAN Configuration Example –Requirements • For datagram of VLAN 100-500 from 8905 gei_1/1 (assume the frames of this VLAN range to be PPPOE dial-in user), add outer tag vlan997 on 8905 and uplink to BRAS via gei_1/4. • For datagram of VLAN 100-500 from 8905 gei_1/2 (assume the frames of this VLAN range to be PPPOE dial-in user), add outer tag vlan998 on 8905 and uplink to BRAS via gei_1/4. • For datagram of VLAN 600-1024 from 8905 gei_1/1-2 (assume the frames of this VLAN range to be private network user), transparently transmit these VLANs via 8905 and uplink to T600 via gei_1/3. • For the untagged frames received on 8905 gei_1/1-2, add a tag 1100 on 8905 and uplink to T600 via gei_1/3; • Configure vlan3000 as management VLAN, used to manage 8905 and 2826E via T600, management VLAN should contain no outer tags.
SVLAN Configuration Example —Configuration(1) • 8905 related port configuration (gei_1/1): ZXR10(config)# interface gei_1/1 ZXR10(config-if)# switchport mode hybrid //the port link type is modified to hybrid type ZXR10(config-if)# switchport hybrid native vlan 997 //it is recommended to modify native vlan to be the outer tag of a type of service, and here configure it to be the outer vlan of the dial in user ZXR10(config-if)# switchport hybrid vlan 600-1024,3000 tag //vlan needing to be transparently transmitted must be configured to be tag on customer port ZXR10(config-if)# switchport hybrid vlan 997,1100 untag //outer tag must be configured to be untag on customer port ZXR10(config-if)# switchport qinq customer //qinq customer port
SVLAN Configuration Example —Configuration(2) • 8905 related port configuration (gei_1/2): ZXR10(config)# interface fei_1/2 ZXR10(config-if)# switchport mode hybrid ZXR10(config-if)# switchport hybrid native vlan 998 ZXR10(config-if)# switchport hybrid vlan 600-1024,3000 tag ZXR10(config-if)# switchport hybrid vlan 998,1100 untag ZXR10(config-if)# switchport qinq customer
SVLAN Configuration Example —Configuration(3) • 8905 related port configuration (gei_1/3): ZXR10(config)# interface gei_1/3 ZXR10(config-if)# switchport mode hybrid ZXR10(config-if)# switchport hybrid native vlan 3000 //it is recommended to modify port native vlan to be tag of a type of service, and here configure it to be management vlan ZXR10(config-if)# switchport hybrid vlan 600-1024,1100,3000 tag //vlan needing to be transparently transmitted must be configured to be tag on uplink port ZXR10(config-if)# switchport hybrid vlan 4094 untag //configure only one help vlan globally ZXR10(config-if)# switchport qinq uplink //qinq uplink port
SVLAN Configuration Example —Configuration(4) • 8905 related port configuration (gei_1/4): ZXR10(config)# interface gei_1/4 ZXR10(config-if)# switchport mode hybrid ZXR10(config-if)# switchport hybrid native vlan 997 //it is recommended to configure it to be VLAN ID of a type of service and do not user the default value ZXR10(config-if)# switchport hybrid vlan 997-998 tag //outer tag, must be configured to be tag on uplink port ZXR10(config-if)# switchport qinq uplink
SVLAN Configuration Example —Configuration(5) • 8905 related configuration: ZXR10(config)# vlan qinq session-no 1 customer-port gei_1/1 uplink-port gei_1/4 in-vlan 100-500 ovlan 997 //Messages received on customer port gei_1/1, with vlan id to be 100-500, are transmitted with outer tag 997 to BRAS via uplink port gei_1/4. ZXR10(config)# vlan qinq session-no 2 customer-port gei_1/2 uplink-port gei_1/4 in-vlan 100-500 ovlan 998 // Messages received on customer port gei_1/2, with vlan id to be 100-500, are transmitted with outer tag 998 to BRAS via uplink port gei_1/4. ZXR10(config)# vlan qinq session-no 3 customer-port gei_1/1 uplink-port gei_1/3 in-vlan 600-1024,3000 untag helpvlan 4094 // Messages received on customer port gei_1/1, with vlan id to be 600-1024, are transmitted to T600 via port gei_1/3 ZXR10(config)# vlan qinq session-no 4 customer-port gei_1/2 uplink-port gei_1/3 in-vlan 600-1024 ,3000 untag helpvlan 4094 //Messages received on customer port gei_1/2, with vlan id to be 600-1024, 3000 are transparently transmitted to T600 via gei_1/3 port. ZXR10(config)# vlan qinq session-no 5 customer-port gei_1/1 uplink-port gei_1/3 untag ovlan 1100 //Messages received on customer port gei_1/1, without tag, are sent to T600 after being tagged with 1100 on 8905. ZXR10(config)# vlan qinq session-no 6 customer-port gei_1/2 uplink-port gei_1/3 untag ovlan 1100 // Messages received on customer port gei_1/2, without tag, are sent to T600 after being tagged with 1100 on 8905.