|
|
This chapter provides IOS CLI configuration examples for the Cisco 10000 ESR. Each example uses the actual commands you would enter at the IOS command line interface (CLI).
This example provides the sequence of commands necessary to accomplish the following:
The CLI command sequence is based on the assumption that we begin at a privileged EXEC prompt. Descriptive headings inserted in the CLI text announce that the hardware or features are being enabled.
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# ip routing
Router(config)# !
Configure an Unchannelized T3 Controller
The following command sequence configures an unchannelized T3 controller:
Router(config)# controller T3 1/0/0
Router(config)# no channelized
Router(config-controller)# clock source line
Router(config-controller)# end
The following command sequence configures a subrate of 25,000 kbps on the T3 port:
Router(config)# interface Serial1/0/0/1:0
Router(config-if)# no ip address
Router(config-if)# no ip directed broadcast
Router(config-if)# dsu bandwidth 25000
Router(config-if)# dsu mode <dsu type>
Configure Frame Relay Encapsulation
The following command sequence configures Frame Relay encapsulation on interface Serial1/0/0/1:0:
Router(config-if)# encapsulation frame-relay
Router(config-if)# frame-relay lmi-n391dte 6
Router(config-if)# keepalive 10
Router(config-if)# frame-relay lmi-n392dte 3
Router(config-if)# frame-relay lmi-n393dte 4
Router(config-if)# no shutdown
Router(config-if)# ip address 20.0.0.1 255.255.255.0
Configure Point to Multipoint Frame Relay
The following command sequence tells the Cisco 10000 ESR to use DLCI 101 to communicate with Router 1 and DLCI 102 to communicate with Router 2:
Router(config-if)# ip ospf network point-to-multipoint
Router(config-if)# frame-relay map ip 20.0.0.2 101 broadcast
Router(config-if)# frame-relay map ip 20.0.0.3 102 broadcast
Router(config-if)# no shutdown
Create an OSPF Routing Process
The following command sequence enables OSPF routing process 100. It also defines an interface on which OSPF runs and defines the area ID for that interface.
Router(config-if)# router ospf 100
Router(config-router)# network 20.0.0.0 0.255.255.255 area 0
Router(config-router)# end
This example provides the sequence of commands necessary to accomplish the following:
The CLI command sequence below starts with the assumption that you begin at a privileged EXEC prompt. Descriptive headings inserted in the CLI text announce that the hardware or features are being enabled.
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Create a Gigabit Ethernet Uplink Port
The following lines provision an operational gigabit Ethernet card:
Router(config)# interface GigabitEthernet8/0/0
Router(config-if)# ip address 125.1.1.2 255.255.255.0
Router(config-if)# keepalive
Router(config-if)# no shutdown
Router(config-if)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# ip routing
The following command sequence enables a functional T3 controller on the CT3 line card:
Router(config)# controller T3 1/0/0
Router(config-controller)# clock source line
Create a Full-Rate Channelized T1 Interface
The following command sequence configures a channelized, full-rate T1:
Router(config-controller)# t1 1 channel-group 0 timeslots 1-24
Router(config-controller)# t1 1 clock source Line
Router(config-controller)# interface Serial1/0/0/1:0
Router(config-if)# no ip address
Configure Frame Relay Encapsulation
The following command sequence enables Frame Relay encapsulation, creates a Frame Relay subinterface, and specifies the default LMI type:
Router(config-if)# encapsulation frame-relay
Router(config-if)# frame-relay lmi-n391dte 6
Router(config-if)# keepalive 10
Router(config-if)# frame-relay lmi-n392dte 3
Router(config-if)# frame-relay lmi-n393dte 4
Router(config-if)# no shutdown
Router(config-if)# interface Serial1/0/0/1:0.100 point-to-point
Router(config-subif)# ip address 128.1.1.2 255.255.255.0
Router(config-subif)# frame-relay interface-dlci 100
Router(config-fr-dlci)# no shutdown
Router(config-if)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Enable an OSPF Routing Process
The following commands create OSPF routing process 200, specify a range of IP addresses to be associated with the routing process, and assign an area ID to be associated with that range of IP addresses:
Router(config)# router ospf 200
Router(config-router)# network 125.1.1.0 0.0.0.255 area 0
Enable OSPF Route Redistribution
The following command enables route redistribution through BGP:
Router(config-router)# redistribute bgp 200 subnets
Configure BGP to Redistribute Routes Between Autonomous Systems
The following command sequence (starting at the first arrow) enables BGP, then defines a neighbor, autonomous system 300 (the second arrow). The network commands define the networks from which OSPF routes are injected into the BGP table.
Router(config-router)# router bgp 200
Router(config-router)# neighbor 128.1.1.1 remote-as 300
Router(config-router)# network 125.0.0.0
Router(config-router)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router bgp 200
Router(config-router)# network 130.1.0.0
Router(config-router)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router bgp 200
Router(config-router)# network 130.2.0.0
Router(config-router)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router bgp 200
Router(config-router)# network 130.3.0.0
Router(config-router)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router bgp 200
Router(config-router)# network 130.4.0.0
Router(config-router)# end
Router# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# router bgp 200
Router(config-router)# network 130.5.0.0
Router(config-router)# end
Router#
QoS Policy Propagation using Border Gateway Protocol (QPPB) allows you to classify packets by IP precedence based on BGP community lists, BGP autonomous system paths, and access lists. After a packet has been classified, you can use other QoS features such as committed access rate (CAR) and weighted random early detection (WRED) to specify and enforce policies to fit your business model.
The following example shows how to
1. Create route maps to match BGP community lists, access lists, and BGP AS paths
2. Apply IP precedence to routes learned from neighbors
In this example, the Cisco 10000 learns routes from autonomous system (AS) 10 and AS 60. QoS policy is applied to all packets that match the defined route maps. Any packets from the Cisco 10000 to AS 10 or AS 60 are sent to the appropriate QoS policy (Figure 11-1).

Router(config)# router bgp 30 Router(config)# table-map precedence-map Router(config-router)# neighbor 20.20.20.1 remote-as 10 Router(config-router)# neighbor 20.20.20.1 send-community Router(config-router)# neigh 20.20.20.1 route-map precedence-map out ! Router(config)# ip bgp-community new-format
Match community 1, set the IP precedence to priority, and set the QoS group to 1.
Router(config)# route-map precedence-map permit 10 Router(config-route-ma)# match community 1 Router(config-route-ma)# set ip precedence priority Router(config-route-ma)# set ip qos-group 1
Match community 2 and set the IP precedence to immediate.
Router(config)# route-map precedence-map permit 20 Router(config-route-ma)# match community 2 Router(config-route-ma)# set ip precedence immediate
Match community 3 and set the IP precedence to Flash.
Router(config)# route-map precedence-map permit 30 Router(config-route-ma)# match community 3 Router(config-route-ma)# set ip precedence flash
Match community 4 and set the IP precedence to Flash-override.
Router(config)# route-map precedence-map permit 40 Router(config-route-ma)# match community 4 Router(config-route-ma)# set ip precedence flash-override
Match community 5 and set the IP precedence to critical.
Router(config)# route-map precedence-map permit 50 Router(config-route-ma)# match community 5 Router(config-route-ma)# set ip precedence critical
Match community 6 and set the IP precedence to internet.
Router(config)# route-map precedence-map permit 60 Router(config-route-ma)# match community 6 Router(config-route-ma)# set ip precedence internet
Match community 7 and set the IP precedence to network.
Router(config)# route-map precedence-map permit 70 Router(config-route-ma)# match community 7 Router(config-route-ma)# set ip precedence network
Match ip address access list 69 or match AS path 1, set the IP precedence to critical, and set the QoS group to 9.
Router(config)# route-map precedence-map permit 75 Router(config-route-ma)# match ip address 69 Router(config-route-ma)# match as-path 1 Router(config-route-ma)# set ip precedence critical Router(config-route-ma)# set ip qos-group 9
For everything else, set the IP precedence to routine.
Router(config)# route-map precedence-map permit 80 Router(config-route-ma)# set ip precedence routine
Define the community lists.
Router(config)# ip community-list 1 permit 60:1 Router(config)# ip community-list 2 permit 60:2 Router(config)# ip community-list 3 permit 60:3 Router(config)# ip community-list 4 permit 60:4 Router(config)# ip community-list 5 permit 60:5 Router(config)# ip community-list 6 permit 60:6 Router(config)# ip community-list 7 permit 60:7
Define the AS path.
Router(config)# ip as-path access-list 1 permit ^10_60
Define the access list.
Router(config)# access-list 69 permit 69.0.0.0
RouterB(config)# router bgp 10 RouterB(config-router)# neighbor 30.30.30.1 remote-as 30 RouterB(config-router)# neighbor 30.30.30.1 send-community RouterB(config-router)# neigh 30.30.30.1 route-map send_community out ! RouterB(config)# ip bgp-community new-format
Match prefix 10 and set community to 60:1.
RouterB(config)# route-map send_community permit 10 RouterB(config-route-ma)# match ip address 10 RouterB(config-route-ma)# set community 60:1
Match prefix 20 and set community to 60:2.
RouterB(config)# route-map send_community permit 20 RouterB(config-route-ma)# match ip address 20 RouterB(config-route-ma)# set community 60:2
Match prefix 30 and set community to 60:3.
RouterB(config)# route-map send_community permit 30 RouterB(config-route-ma)# match ip address 30 RouterB(config-route-ma)# set community 60:3
Match prefix 40 and set community to 60:4.
RouterB(config)# route-map send_community permit 40 RouterB(config-route-ma)# match ip address 40 RouterB(config-route-ma)# set community 60:4
Match prefix 50 and set community to 60:5.
RouterB(config)# route-map send_community permit 50 RouterB(config-route-ma)# match ip address 50 RouterB(config-route-ma)# set community 60:5
Match prefix 60 and set community to 60:6.
RouterB(config)# route-map send_community permit 60 RouterB(config-route-ma)# match ip address 60 RouterB(config-route-ma)# set community 60:6
Match prefix 70 and set community to 60:7.
RouterB(config)# route-map send_community permit 70 RouterB(config-route-ma)# match ip address 70 RouterB(config-route-ma)# set community 60:7
For all others, set community to 60:8.
RouterB(config)# route-map send_community permit 80 RouterB(config-route-ma)# set community 60:8
Define the access lists.
RouterB(config)# access-list 10 permit 61.0.0.0 RouterB(config)# access-list 20 permit 62.0.0.0 RouterB(config)# access-list 30 permit 63.0.0.0 RouterB(config)# access-list 40 permit 64.0.0.0 RouterB(config)# access-list 50 permit 65.0.0.0 RouterB(config)# access-list 60 permit 66.0.0.0 RouterB(config)# access-list 70 permit 67.0.0.0
The following example shows how to configure several interfaces to classify packets based on the IP precedence and QoS group ID:
interface serial5/0/0/1:0 ip address 200.28.38.2 255.255.255.0 bgp-policy source ip-prec-map no ip mroute-cache no cdp enable frame-relay interface-dlci 20 IETF interface serial6/0/0/1:0 ip address 200.28.28.2 255.255.255.0 bgp-policy source qos-group no ip mroute-cache no cdp enable
frame-relay interface-dlci 20 IETF
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Oct 3 09:48:49 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.