OcNOS-SP : Virtual Extensible LAN Guide : Virtual Extensible LAN Configuration Guide : VXLAN Quality of Service Configuration : COS-DSCP
COS-DSCP
RTR1/VTEP1
 
VTEP1#configure terminal
Enter Configure mode.
VTEP1(config)#mac vrf vrf1
Create mac routing/forwarding instance with vrf1 name and enter into vrf mode
VTEP1(config-vrf)#rd 1.1.1.1:11
Assign RD value
VTEP1(config-vrf)#route-target both 10.10.10.10:100
Assign route-target value for import/export
VTEP1(config-vrf)#exit
Exit form vrf mode
VTEP1(config)#hardware-profile filter vxlan enable
Enable hardware profile for vxlan
VTEP1(config)#qos enable
Enable qos
VTEP1(config)#qos profile cos-to-queue COS-QUE
Create qos profile for mapping traffic towards tunnel from access-if.
VTEP1(config-ingress-cos-map)#cos 2 queue 3
Configure particular COS value to the queue value for con-figured profile.
VTEP1(config-ingress-cos-map)#exit
Exit from qos profile config mode
VTEP1(config)#qos profile queue-color-to-dscp QUE-DSCP
OR
VTEP1(config)#qos profile dscp-encap DSCP-ENCAP
 
Create qos profile for attaching in vxlan tunnel egress.
 
 
Either one of the qos profile CLI can be configured. Functionality of queue-color-to-dscp and dscp-encap qos profiles remains the same.
VTEP1(config-egress-dscp-map)#queue 3 dscp 16
OR
VTEP1(config-egress-dscp-encap-map)#l2 queue 3 dscp 16
Configure particular queue value to the dscp value for configured profile.
 
Either one of the qos profile CLI can be configured. Functionality of queue-color-to-dscp and dscp-encap qos profiles remains the same.
VTEP1(config-egress-dscp-encap-map)#exit
Exit from qos profile config mode
VTEP1(config)#interface po2
Create a port channel po2
VTEP1(config-if)#switchport
Configure port as switchport
VTEP1(config-if)#load-interval 30
Set load-interval
VTEP1(config-if)#interface po24
Create a port channel po24
VTEP1(config-if)#load-interval 30
Configure port as switchport
VTEP1(config-if)#ip address 24.1.1.1/30
Set load-interval
VTEP1(config-if)#interface lo
Enter in to loopback interface
VTEP1(config-if)#ip address 1.1.1.1/32 secondary
Configure ip address
VTEP1(config-if)#interface xe1
Enter in to interface mode
VTEP1(config-if)#channel-group 2 mode active
Map to channel-group
VTEP1(config-if)#interface xe2
Enter in to interface mode
VTEP1(config-if)#channel-group 2 mode active
Map to channel-group
VTEP1(config-if)#interface xe14
Enter in to interface mode
VTEP1(config-if)#channel-group 24 mode ac-tive
Map to channel-group
VTEP1(config-if)#interface xe15
Enter in to interface mode
VTEP1(config-if)#channel-group 24 mode ac-tive
Map to channel-group
VTEP1(config-if)#router ospf 1
Create ospf instance
VTEP1(config-router)#ospf router-id 1.1.1.1
Configure ospf router-id
VTEP1(config-router)#network 1.1.1.1/32 area 0.0.0.0
Configure loopback network address in to ospf
VTEP1(config-router)#network 24.1.1.0/30 area 0.0.0.0
Configure network address in to ospf
VTEP1(config-router)#router bgp 100
Enter into Router BGP mode
VTEP1(config-router)#neighbor 6.6.6.6 re-mote-as 100
Specify a neighbor router with peer ip address and remote-as defined
VTEP1(config-router)#neighbor 6.6.6.6 up-date-source lo
Specify the neighbor to use loopback address as source
VTEP1(config-router)#address-family l2vpn evpn
Enter into l2vpn evpn address-family
VTEP1(config-router-af)#neighbor 6.6.6.6 activate
Activate the neighbor to address-family
VTEP1(config-router)#nvo vxlan vtep-ip-global 1.1.1.1
Configure Source vtep-ip-global configuration
VTEP1(config)#nvo vxlan tunnel qos-map-mode cos-dscp egress QUE-DSCP
OR
VTEP1(config)#nvo vxlan tunnel qos-map-mode cos-dscp egress DSCP-ENCAP
 
Configure the mapping qos profile in to vxlan tunnel egress
 
 
 
Configure the mapping qos profile in to vxlan tunnel egress
VTEP1(config)#nvo vxlan id 1 in-gress-replication inner-vid-disabled
Create vnid 1 and disable inner-vid
VTEP1(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf1
Assign vrf for evpn-bgp to carry EVPN route
VTEP1(config-nvo)#nvo vxlan access-if port-vlan po2 1001
Create vxlan access-if with vlan 1001
VTEP1(config-nvo-acc-if)#no shutdown
No shut the vxlan access-if
VTEP1(config-nvo-acc-if)#map vnid 1
Map vnid to the vxlan access-if
VTEP1(config-nvo-acc-if)#map qos-profile cos-to-queue COS-QUE
Map qos profile for vxlan access-if ingress traffic from CE
VTEP1(config-nvo-acc-if)#exit
Exit from VxLAN access-interface mode and enter into configuration mode.
VTEP1(config)#commit
Commit the candidate configuration to the running configuration
RTR2
 
R2#configure terminal
Enter Configure mode.
R2(config)#interface po24
Create port channel
R2(config-if)#load-interval 30
Set load-interval
R2(config-if)#ip address 24.1.1.2/30
Assign ip address
R2(config-if)#interface po46
Create port channel
R2(config-if)#load-interval 30
Set load-interval
R2(config-if)#ip address 46.1.1.1/30
Assign ip address
R2(config-if)#interface lo
Enter in to loopback interface
R2(config-if)#ip address 4.4.4.4/32 sec-ondary
Assign secondary ip address
R2(config-if)#interface xe4
Enter into interface mode
R2(config-if)#channel-group 46 mode active
Map port channel to the interface
R2(config-if)#interface xe5
Enter into interface mode
R2(config-if)#channel-group 46 mode active
Map port channel to the interface
R2(config-if)#interface xe14
Enter into interface mode
R2(config-if)#channel-group 24 mode active
Map port channel to the interface
R2(config-if)#interface xe15
Enter into interface mode
R2(config-if)#channel-group 24 mode active
Map port channel to the interface
R2(config-if)#router ospf 1
Create ospf instance
R2(config-router)#ospf router-id 4.4.4.4
Configure ospf router-id
R2(config-router)#network 4.4.4.4/32 area 0.0.0.0
Configure ospf network address with respective area
R2(config-router)#network 24.1.1.0/30 area 0.0.0.0
Configure ospf network address with respective area
R2(config-router)#network 46.1.1.0/30 area 0.0.0.0
Configure ospf network address with respective area
R2(config-router)#exit
Exit from router mode.
R2(config)#commit
Commit the candidate configuration to the running configuration
RTR3/VTEP2
 
VTEP3#configure terminal
Enter Configuration mode
VTEP3(config)#mac vrf vrf1
Create mac routing/forwarding instance with vrf1 name and enter into vrf mode
VTEP3(config-vrf)#rd 6.6.6.6:11
Assign RD value
VTEP3(config-vrf)#route-target both 10.10.10.10:100
Assign route-target value for import/export
VTEP1(config-vrf)#exit
Exit from vrf mode
VTEP1(config)#hardware-profile filter vxlan enable
Enable hardware profile for vxlan
VTEP3(config)#qos enable
Enable QOS
VTEP3(config)#qos statistics
Enable QOS statistics
VTEP3(config)#qos profile queue-color-to-cos QUE-COS
Create qos profile for mapping incoming traffic from tunnel to access-if.
VTEP3(config-egress-cos-map)#queue 4 cos 5
Configure particular queue value to the cos value for con-figured profile.
VTEP3(config-egress-cos-map)#qos profile dscp-to-queue DSCP-QUE
Create qos profile for attaching in vxlan tunnel ingress.
VTEP3(config-ingress-dscp-map)#dscp 16 queue 4
Configure particular dscp value to the queue value for con-figured profile.
VTEP3(config-egress-dscp-map)#interface po46
Create port channel
VTEP3(config-if)#load-interval 30
Set load interval
VTEP3(config-if)#ip address 46.1.1.2/30
Assign ip address
VTEP3(config-if)#interface lo
Enter into loopback interface
VTEP3(config-if)#ip address 6.6.6.6/32 secondary
Assign secondary ip address
VTEP3(config-if)#interface xe4
Enter into interface mode
VTEP3(config-if)#channel-group 46 mode active
Map channel group into the interface
VTEP3(config-if)#interface xe5
Enter into interface mode
VTEP3(config-if)#channel-group 46 mode active
Map channel group into the interface
VTEP3(config-if)#interface xe15
Enter into interface mode
VTEP3(config-if)#switchport
Make interface as L2 port
VTEP3(config-if)#load-interval 30
Set load interval
VTEP3(config-if)#router ospf 1
Create ospf instance
VTEP3(config-router)#ospf router-id 6.6.6.6
Configure ospf router-id
VTEP3(config-router)#network 6.6.6.6/32 area 0.0.0.0
Configure ospf network address with respective area
VTEP3(config-router)#network 46.1.1.0/30 area 0.0.0.0
Configure ospf network address with respective area
VTEP3(config-router)#router bgp 100
Enter into Router BGP mode
VTEP3(config-router)#neighbor 1.1.1.1 re-mote-as 100
Specify a neighbor router with peer ip address and remote-as defined
VTEP3(config-router)#neighbor 1.1.1.1 up-date-source lo
Specify the neighbor to use loopback address as source
VTEP3(config-router)#address-family l2vpn evpn
Enter into l2vpn evpn address-family
VTEP3(config-router-af)#neighbor 1.1.1.1 activate
Activate the neighbor to address-family
VTEP3(config)#nvo vxlan vtep-ip-global 6.6.6.6
Configure Source vtep-ip-global configuration
VTEP3(config)#nvo vxlan tunnel qos-map-mode cos-dscp ingress DSCP-QUE
Configure the mapping qos profile in to vxlan tunnel ingress
VTEP3(config)#nvo vxlan id 1 in-gress-replication inner-vid-disabled
Create vnid 1 and disable inner-vid
VTEP3(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf1
Assign vrf for evpn-bgp to carry EVPN route
VTEP3(config-nvo)#nvo vxlan access-if port-vlan xe15 1000
Create vxlan access-if with vlan 1000
VTEP3(config-nvo-acc-if)#no shutdown
No shut the vxlan access-if
VTEP3(config-nvo-acc-if)#map vnid 1
Map vnid to the vxlan access-if
VTEP3(config-nvo-acc-if)#map qos-profile queue-color-to-cos QUE-COS
Map qos profile for vxlan access-if egress traffic to CE
VTEP3(config-nvo-acc-if)#exit
Exit from VxLAN access-interface mode and enter into configuration mode
VTEP3(config)#commit
Commit the candidate configuration to the running configuration
Last modified date: 10/20/2023