Creating a QoS Interface Hierarchy for Bulk-Configured VLAN Subinterfaces with RADIUS
Bulk-configured VLAN subinterfaces are created dynamically, so you cannot apply a QoS profile directly to a VLAN subinterface. Instead, you can use subscriber service profiles and RADIUS to apply QoS profiles.
To create an interface hierarchy for bulk-configured VLAN subinterfaces:
- Configure the bulk-configured VLAN subinterface.
host1(config)#interface gigabitEthernet 6/0/0host1(config-if)#encapsulation vlanhost1(config-if)#auto-configure vlanhost1(config-if)#vlan bulk-config BulkConfighost1(config-if)#profile vlan bulk-config BulkConfig vlanBulkProfilehost1(config-if)#vlan bulk-config BulkConfig vlan-range 1 3600- Configure the profiles and service profile for the bulk-configured VLAN subinterfaces and the IP upper-layer encapsulation.
host1(config-if)#profile vlanBulkProfilehost1(config-profile)#vlan auto-configure iphost1(config-profile)#vlan profile ip ipProfilehost1(config-profile)#vlan service-profile vlanServiceProfilehost1(config-profile)#exithost1(config-profile)#profile ipProfilehost1(config-profile)#ip unnumbered loopback 0host1(config-profile)#exit- Configure an IP service profile.
host1(config)#ip service-profile vlanServiceProfilehost1(config-service-profile)#user-name "vlan@test"host1(config-service-profile)#password 56789host1(config-service-profile)#exit
TIP: Configure the service profile in the default virtual router or the virtual router in which RADIUS is configured.
- Access the RADIUS server and assign values for the RADIUS attributes necessary for creating a QoS interface hierarchy, including the QoS profile name. For example:
- Juniper VSA Qos-Profile-Name [26-26]QoS profile name
- (Optional) Juniper VSA Virtual-Router [26-1]Virtual router name
- (Optional) IETF VSA [22]Framed-Route
The highlighted output from this debug log message shows the QoS profile, virtual router, and framed route attributes configured through RADIUS.
DEBUG 06/17/2007 14:50:19 radiusSendAttributes: ACCESS-REQUEST attributes (default)DEBUG 06/17/2007 14:50:19 radiusSendAttributes: username attr added: vlan@testDEBUG 06/17/2007 14:50:19 radiusSendAttributes: acct-session-id attr added: erx GigabitEthernet 2/1.100:100:0004194348DEBUG 06/17/2007 14:50:19 radiusSendAttributes: user-password attr added: <value withheld>DEBUG 06/17/2007 14:50:19 radiusSendAttributes: calling-station-id attr added: #ananke#E21#100DEBUG 06/17/2007 14:50:19 radiusSendAttributes: nas-port-type attr added: 15DEBUG 06/17/2007 14:50:19 radiusSendAttributes: nas-port attr added: 553648228DEBUG 06/17/2007 14:50:19 radiusSendAttributes: nas-port-id attr added: GigabitEthernet 2/1.100:100DEBUG 06/17/2007 14:50:19 radiusSendAttributes: nas-ip-address attr added: 172.26.27.50DEBUG 06/17/2007 14:50:19 radiusSendAttributes: nas-identifier attr added: anankeDEBUG 06/17/2007 14:50:19 radiusAttributes: USER ATTRIBUTES: (vlan@test)DEBUG 06/17/2007 14:50:19 radiusAttributes: class attr: (binary data)DEBUG 06/17/2007 14:50:19 radiusAttributes: total eap message attr length = 0DEBUG 06/17/2007 14:50:19 radiusAttributes: framed route attr: 40.40.41.0/30 0.0.0.0DEBUG 06/17/2007 14:50:19 radiusAttributes: ingress policy name (vsa) attr: testDEBUG 06/17/2007 14:50:19 radiusAttributes: ingress policy stats (vsa) attr: 1DEBUG 06/17/2007 14:50:19 radiusAttributes: egress policy name (vsa) attr: testDEBUG 06/17/2007 14:50:19 radiusAttributes: egress policy stats (vsa) attr: 1DEBUG 06/17/2007 14:50:19 radiusAttributes: qos profile name (vsa) attr: testDEBUG 06/17/2007 14:50:19 radiusAttributes: virtual router name (vsa) attr: serverhost1:server#show ip interface briefInterface IP-Address Status Protocol Description-------------------- ------------------- ---------- ---------- -------------null0 255.255.255.255/32 up uploopback0 10.1.0.1/24 up upGigabitEthernet6/0.100 Unnumbered up uphost1:server#show ip routePrefix/Length Type Next Hop Dst/Met Interface------------------ --------- --------------- ---------- -----------------------10.1.0.0/24 Connect 10.1.0.1 0/0 loopback040.40.41.0/30 Access 0.0.0.0 3/2 GigabitEthernet6/0/0.100
- Verify that the correct QoS profile is attached to the VLAN subinterface.
host1:server#show qos interface-hierarchy interface gigabitEthernet 6/0/0.100attachment@ ip GigabitEthernet6/0/0.100:t-class interface rule traffic scheduler queueqos profile group type type class profile profile------------------------ ------- --------- ----- ------- --------- --------test@GigabitEthernet6/0/0.100 vlan node default default
- For information about bulk-configured VLAN subinterfaces, see JUNOSe Link Layer Configuration Guide, Chapter 16, Configuring Dynamic Interfaces Using Bulk Configuration
- For information about service profiles, see JUNOSe Broadband Access Configuration Guide, Chapter 23, Configuring Subscriber Management
- For information about RADIUS VSAs, see JUNOSe Broadband Access Configuration Guide, Chapter 3, Configuring RADIUS Attributes
- auto-configure vlan command
- encapsulation vlan command
- interface gigabitEthernet command
- ip service-profile command
- profile command
- profile vlan bulk-config command
- vlan auto-configure command
- vlan bulk-config command
- vlan profile command
- vlan service-profile command
- show ip interface command
- show ip route command
- show qos interface-hierarchy command