Cisco 10000 Series Router Line Card Configuration Guide
Configuration Examples

Table Of Contents

Configuration Examples

Example 1: Configuring an Unchannelized Subrate T3 Port, Point to Multipoint Frame Relay, and OSPF

Example 2: OSPF, BGP, Channelized Full Rate T1

Example 3: Quality of Service Policy Propagation Using Border Gateway Protocol

Example 4: MPLS Virtual Private Networks


Configuration Examples


This chapter provides Cisco IOS CLI configuration examples for the Cisco 10000 series router. Each example uses the commands you enter at the IOS command line interface (CLI).

This chapter contains the following examples:

Example 1: Configuring an Unchannelized Subrate T3 Port, Point to Multipoint Frame Relay, and OSPF

Example 2: OSPF, BGP, Channelized Full Rate T1

Example 3: Quality of Service Policy Propagation Using Border Gateway Protocol

Example 4: MPLS Virtual Private Networks

Example 1: Configuring an Unchannelized Subrate T3 Port, Point to Multipoint Frame Relay, and OSPF

This example provides the sequence of commands necessary to accomplish the following:

Configure an Unchannelized T3 Controller

Configure Subrate T3

Configure Frame Relay Encapsulation

Configure Point to Multipoint Frame Relay

Create an OSPF Routing Process

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

Configure an unchannelized T3 controller and specify clock source:

Router(config)# controller T3 1/0/0

Router(config)# no channelized

Router(config-controller)# clock source line

Router(config-controller)# end

Configure Subrate T3

Configure 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

Configure 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

Configure the Cisco 10000 series router 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

Enable OSPF routing process 100. Define an interface on which OSPF runs and 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

Example 2: OSPF, BGP, Channelized Full Rate T1

This example provides the sequence of commands necessary to accomplish the following:

Create a Gigabit Ethernet Uplink Port

Create a T3 Controller

Create a Full-Rate Channelized T1 Interface

Configure Frame Relay Encapsulation

Enable an OSPF Routing Process

Enable OSPF Route Redistribution

Configure BGP to Redistribute Routes Between Autonomous Systems

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

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

Create a T3 Controller

Enable 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

Configure 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

Enable Frame Relay encapsulation, create a Frame Relay subinterface, and specify 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

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

Enable route redistribution through BGP:

Router(config-router)# redistribute bgp 200 subnets

Configure BGP to Redistribute Routes Between Autonomous Systems

Enable BGP (starting at the first arrow), define a neighbor for 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#

Example 3: Quality of Service Policy Propagation Using Border Gateway Protocol

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 series router 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 series router to AS 10 or AS 60 are sent to the appropriate QoS policy (Figure 18-1).

Figure 18-1 Cisco 10000 Series Router Routes and QoS Policy Application

Cisco 10000 Series Router Configuration

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

Router B Running Configuration

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

Example 4: MPLS Virtual Private Networks

MPLS can be used to create IP-based VPNs. MPLS VPNs offer all of the value of traditional VPNs, including reduced costs and enhanced security. In addition, because MPLS VPNs are created in Layer 3, they are more scalable, easier to configure, and easier to manage than Layer 2 VPNs.

Perform the tasks in the following sections to configure MPLS Virtual Private Networks (VPNs):

The following sections show examples of:

Defining a VPN

Configuring BGP Routing Sessions

Configuring PE to PE Routing Sessions

Configuring BGP PE to CE Routing Sessions

Configuring RIP PE to CE Routing Sessions

Configuring Static Route PE to CE Routing Sessions

Defining a VPN

Enter VRF configuration mode, define the VPN routing instance by assigning a VRF name, and create routing and forwarding tables.

Router(config)# ip vrf go_fast_internet_company
Router(config-vrf)# rd 200.28.28.40:42

Create a list of import or export route target communities for the specified VRF.

Router(config-vrf)# route-target import 200.28.28.40:43

Associate the specified route map with the VRF and with an interface or subinterface.

Router(config-vrf)# import map go_fast
Router(config-if)# ip vrf forwarding go_fast_internet_company

Configuring BGP Routing Sessions

To configure BGP routing sessions in a provider network, use the following commands in router configuration mode on the PE router:

Configure the BGP routing process with the autonomous system number.

Router(config)# router bgp 42


Specify a neighbor's IP address or BGP peer group, identifying it to the local autonomous system.

Router(config-router)# neighbor 200.28.28.40


Activate the advertisement of the IPv4 address family.


Router(config-router)# neighbor 200.28.28.40 activate


Configuring PE to PE Routing Sessions

To configure PE to PE routing sessions in a provider network, use the following commands in router configuration mode on the PE router:


Define IBGP parameters for VPNv4 network-layer reachability information (NLRI) exchange.

Router(config-router)# address-family vpnv4 unicast


Define an IBGP session to exchange VPNv4 NLRIs.

Router(config-router-af)# neighbor 200.28.28.45 remote-as 48

Router(config-router-af)# exit


Activate the advertisement of the IPv4 address family.

Router(config-router)# neighbor 200.28.28.45 activate

Configuring BGP PE to CE Routing Sessions

To configure BGP PE to CE routing sessions, use the following commands in router configuration mode on the PE router:

Define EBGP parameters for PE to CE routing sessions.

Router(config-router)# address-family ipv4 unicast vrf go_fast_internet_company

Define an EBGP session between PE and CE routers and activate the advertisement of the IPv4 address family.

Router(config-router-af)# neighbor 200.28.28.46 remote-as 49

Router(config-router-af)# neighbor 200.28.28.46 activate

Configuring RIP PE to CE Routing Sessions

To configure RIP PE to CE routing sessions, use the following commands in router configuration mode on the PE router:

Enable RIP, define RIP parameters for PE to CE routing sessions, and enable RIP on the PE to CE link.

Router(config)# router rip

Router(config-router)# address-family ipv4 unicast vrf go_fast_internet_company

Router(config-router-af)# network 200.28.28.47


Configuring Static Route PE to CE Routing Sessions

To configure static route PE to CE routing sessions, use the following commands in router configuration mode on the PE router:

Define static route parameters for each PE to CE session and for each BGP PE to CE routing session.

Router(config)# ip route vrf go_fast_internet_company 200.28.28.46 255.255.255.0 200.28.28.50


Router(config-router)# address-family ipv4 unicast vrf go_fast_internet_company

Redistribute VRF static routes and directly connected networks into the VRF BGP table.

Router(config-router-af)# redistribute static

Router(config-router-af)# redistribute static connected