Service Provider Network Configuration with OSPF 411interface Serial0 description *** Link to Atlanta POP *** ip address 192.168.3.5 255.255.255.252 no fair-queue !interface Serial1 n
Trang 1Service Provider Network Configuration with OSPF 411
interface Serial0 description *** Link to Atlanta POP ***
ip address 192.168.3.5 255.255.255.252
no fair-queue
!interface Serial1
no ip address shutdown
!router bgp 65001
no synchronization bgp log-neighbor-changes redistribute connected neighbor 192.168.3.6 remote-as 65000
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!endSimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 2412 Appendix B Service Provider Tag Switching with OSPF and IS-IS
Atlanta POP Router Configuration
On the Atlanta POP router, standard OPSF is configured as the IGP I-BGP
is set up between the Atlanta and Raleigh POP routers An E-BGP session is set up between the Atlanta POP router and Peer 1 Tag switching is enabled only on the internal service provider link
Atlanta#show running-config
Building configuration
Current configuration : 1572 bytes
!version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Atlanta
!enable password cisco
Trang 3Service Provider Network Configuration with OSPF 413
interface Loopback0
ip address 204.134.83.1 255.255.255.255
!interface Serial0/0 description *** Link to Core Router ***
ip address 204.134.83.5 255.255.255.252 tag-switching ip
no fair-queue clockrate 64000
!interface Serial0/1 description *** Link to Peer1 ***
ip address 192.168.3.6 255.255.255.252 clockrate 64000
!interface Serial0/2
no ip address shutdown clockrate 64000
!interface Serial0/3
no ip address shutdown clockrate 64000
!interface Ethernet1/0
no ip address shutdown
!interface Ethernet1/1
no ip address shutdown
!interface Ethernet1/2
no ip address shutdown
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 4414 Appendix B Service Provider Tag Switching with OSPF and IS-IS
interface Ethernet1/3
no ip address shutdown
!router ospf 1 log-adjacency-changes network 204.134.83.1 0.0.0.0 area 0 network 204.134.83.5 0.0.0.0 area 0
!router bgp 65000
no synchronization bgp log-neighbor-changes neighbor 192.168.3.5 remote-as 65001 neighbor 204.134.83.3 remote-as 65000 neighbor 204.134.83.3 update-source Loopback0 neighbor 204.134.83.3 next-hop-self
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 5Service Provider Network Configuration with OSPF 415
Core Router Configuration
On the Core router, standard OPSF is configured as the IGP Tag switching
is enabled on the two service provider links
Core#show running-config
Building configuration
Current configuration : 1353 bytes
!version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Core
!enable password cisco
ip address 204.134.83.2 255.255.255.255
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 6416 Appendix B Service Provider Tag Switching with OSPF and IS-IS
interface Serial0/0 description *** Connection to Raleigh POP ***
ip address 204.134.83.9 255.255.255.252 tag-switching ip
no fair-queue
!interface Serial0/1 description *** Connection to Atlanta POP ***
ip address 204.134.83.6 255.255.255.252 tag-switching ip
!interface Serial0/2
no ip address shutdown
!interface Serial0/3
no ip address shutdown
!interface Ethernet1/0
no ip address shutdown
!interface Ethernet1/1
no ip address shutdown
!interface Ethernet1/2
no ip address shutdown
!interface Ethernet1/3
no ip address shutdown
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 7Service Provider Network Configuration with OSPF 417
router ospf 1 log-adjacency-changes network 204.134.83.2 0.0.0.0 area 0 network 204.134.83.6 0.0.0.0 area 0 network 204.134.83.9 0.0.0.0 area 0
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!end
Raleigh POP Router Configuration
On the Raleigh POP router, standard OPSF is configured as the IGP I-BGP
is set up between the Raleigh and Atlanta POP routers An E-BGP session is set up between the Raleigh POP and Peer2 Tag switching is enabled only on the internal service provider link
Raleigh#show running-config
Building configuration
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 8418 Appendix B Service Provider Tag Switching with OSPF and IS-IS
Current configuration : 1599 bytes
!version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Raleigh
!enable password cisco
ip address 204.134.83.3 255.255.255.255
!interface Serial0/0
no ip address shutdown
no fair-queue clockrate 64000
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 9Service Provider Network Configuration with OSPF 419
interface Serial0/1 description *** Link to Peer2 ***
ip address 192.168.3.9 255.255.255.252 clockrate 64000
!interface Serial0/2
no ip address shutdown clockrate 64000
!interface Serial0/3 description *** Link to Core Router ***
ip address 204.134.83.10 255.255.255.252 tag-switching ip
clockrate 64000
!interface Ethernet1/0
no ip address shutdown
!interface Ethernet1/1
no ip address shutdown
!interface Ethernet1/2
no ip address shutdown
!interface Ethernet1/3
no ip address shutdown
!router ospf 1 log-adjacency-changes network 204.134.83.3 0.0.0.0 area 0 network 204.134.83.10 0.0.0.0 area 0
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 10420 Appendix B Service Provider Tag Switching with OSPF and IS-IS
router bgp 65000
no synchronization bgp log-neighbor-changes neighbor 192.168.3.10 remote-as 65002 neighbor 204.134.83.1 remote-as 65000 neighbor 204.134.83.1 update-source Loopback0 neighbor 204.134.83.1 next-hop-self
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!end
Peer 2 Router Configuration
On the Peer 2 router, MPLS is not enabled; only standard BGP is enabled
Peer2#show running-config
Building configuration
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 11Service Provider Network Configuration with OSPF 421
Current configuration : 951 bytes
!version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Peer2
!enable password cisco
ip address 192.168.2.1 255.255.255.255
!interface Ethernet0
no ip address shutdown
!interface Serial0 description *** Link to Raleigh POP ***
ip address 192.168.3.10 255.255.255.252
no fair-queue
!interface Serial1
no ip address shutdownSimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 12422 Appendix B Service Provider Tag Switching with OSPF and IS-IS
router bgp 65002
no synchronization bgp log-neighbor-changes redistribute connected neighbor 192.168.3.9 remote-as 65000
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!end
Routing Tables
This section shows you the routing tables of each network device in the example network Notice that the Core router has no knowledge of the peer router subnets and the peer routers have no knowledge of the core service provider networks The Atlanta and Raleigh POP routers have full knowl-edge of all the subnets in the network
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 13Service Provider Network Configuration with OSPF 423
Peer 1 Routing Table
On the Peer 1 router, internal service provider routes do not show up in the routing table:
Peer1#show ip route
Output Omitted
Gateway of last resort is not set
192.168.1.0 255.255.255.255 is subnetted, 1 subnets
C 192.168.1.1 is directly connected, Loopback0 192.168.2.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.2.1 [20/0] via 192.168.3.6, 00:08:15 192.168.3.0 255.255.255.252 is subnetted, 2 subnets
B 192.168.3.8 [20/0] via 192.168.3.6, 00:08:15
C 192.168.3.4 is directly connected, Serial0
Atlanta Routing Table
On the Atlanta POP router, all routes (both peer and service provider) are displayed in the routing table:
Atlanta#show ip route
Output Omitted
Gateway of last resort is not set
204.134.83.0 255.255.255.0 is variably subnetted, 5 subnets, 2 masks
O 204.134.83.8 255.255.255.252 [110/1562] via 204.134.83.6, 00:10:08, Serial0/0
C 204.134.83.1 255.255.255.255 is directly connected, Loopback0
O 204.134.83.3 255.255.255.255 [110/1563] via 204.134.83.6, 00:10:08, Serial0/0Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 14424 Appendix B Service Provider Tag Switching with OSPF and IS-IS
O 204.134.83.2 255.255.255.255 [110/782] via 204.134.83.6, 00:10:08, Serial0/0
C 204.134.83.4 255.255.255.252 is directly connected, Serial0/0
192.168.1.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.1.1 [20/0] via 192.168.3.5, 00:22:47 192.168.2.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.2.1 [200/0] via 204.134.83.3, 00:09:24 192.168.3.0 255.255.255.252 is subnetted, 2 subnets
B 192.168.3.8 [200/0] via 204.134.83.3, 00:09:24
C 192.168.3.4 is directly connected, Serial0/1
Core Routing Table
On the Core router, only internal service provider routes show up in the routing table:
Core#show ip route
Output Omitted
Gateway of last resort is not set
204.134.83.0 255.255.255.0 is variably subnetted, 5 subnets, 2 masks
C 204.134.83.8 255.255.255.252 is directly connected, Serial0/0
O 204.134.83.1 255.255.255.255 [110/782] via 204.134.83.5, 00:10:51, Serial0/1
O 204.134.83.3 255.255.255.255 [110/782] via 204.134.83.10, 00:10:51, Serial0/0
C 204.134.83.2 255.255.255.255 is directly connected, Loopback0
C 204.134.83.4 255.255.255.252 is directly connected, Serial0/1
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 15Service Provider Network Configuration with OSPF 425
Raleigh Routing Table
On the Raleigh POP router, both service provider and peer routers are displayed in the routing table:
Raleigh#show ip route
Output Omitted
Gateway of last resort is not set
204.134.83.0 255.255.255.0 is variably subnetted,
5 subnets, 2 masks
C 204.134.83.8 255.255.255.252 is directly connected, Serial0/3
O 204.134.83.1 255.255.255.255 [110/1563] via 204.134.83.9, 00:11:17, Serial0/3
C 204.134.83.3 255.255.255.255 is directly connected, Loopback0
O 204.134.83.2 255.255.255.255 [110/782] via 204.134.83.9, 00:11:17, Serial0/3
O 204.134.83.4 255.255.255.252 [110/1562] via 204.134.83.9, 00:11:17, Serial0/3 192.168.1.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.1.1 [200/0] via 204.134.83.1, 00:10:33 192.168.2.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.2.1 [20/0] via 192.168.3.10, 00:24:05 192.168.3.0 255.255.255.252 is subnetted, 2 subnets
C 192.168.3.8 is directly connected, Serial0/1
B 192.168.3.4 [200/0] via 204.134.83.1, 00:10:34
Peer 2 Routing Table
On the Peer 2 router, no service provider routes are displayed in the routing table:
Peer2#show ip route
Output Omitted
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 16426 Appendix B Service Provider Tag Switching with OSPF and IS-IS
Gateway of last resort is not set 192.168.1.0 255.255.255.255 is subnetted, 1 subnets
B 192.168.1.1 [20/0] via 192.168.3.9, 00:11:45 192.168.2.0 255.255.255.255 is subnetted, 1 subnets
C 192.168.2.1 is directly connected, Loopback0 192.168.3.0 255.255.255.252 is subnetted, 2 subnets
C 192.168.3.8 is directly connected, Serial0
B 192.168.3.4 [20/0] via 192.168.3.9, 00:11:45
Tags
In this section, the mapping of tags to IP prefixes shows that a complete LSP exists between the loopback addresses on the Atlanta and Raleigh POP routers With an end-to-end LSP, the Core router only needs to examine the label, and therefore does not require full knowledge of the peer subnets
Atlanta POP Forwarding Table
In the following output from the Atlanta POP router, you can see that a full LSP exists between the Atlanta and Raleigh POP routers:
Atlanta#show tag-switching forwarding-table
Local Outgoing Prefix Bytes tag Outgoing Next Hoptag tag or VC or Tunnel Id switched interface
26 Pop tag 204.134.83.2 255.255.255.255 0 Se0/0 point2point
27 26 204.134.83.3 255.255.255.255 0 Se0/0 point2point
28 Pop tag 204.134.83.8 255.255.255.252 0 Se0/0 point2point
Core Forwarding Table
On the Core router, labeled packets between the Atlanta and Raleigh POP routers will be label-switched, as indicated in the forwarding table:
Core#show tag-switching forwarding-table
Local Outgoing Prefix Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id switched interface
26 Pop tag 204.134.83.3 255.255.255.255 1753 Se0/0 point2point
27 Pop tag 204.134.83.1 255.255.255.255 1812 Se0/1 point2point
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 17Service Provider Network Configuration with IS-IS 427
Raleigh POP Forwarding Table
In the following output from the Raleigh POP router’s forwarding table, you can see that a full LSP exists between the Raleigh and Atlanta POP routers:
Raleigh#show tag-switching forwarding-table
Local Outgoing Prefix Bytes tag Outgoing Next Hoptag tag or VC or Tunnel Id switched interface
26 Pop tag 204.134.83.2 255.255.255.255 0 Se0/3 point2point
27 Pop tag 204.134.83.4 255.255.255.252 0 Se0/3 point2point
28 27 204.134.83.1 255.255.255.255 0 Se0/3 point2point
Service Provider Network Configuration
with IS-IS
In this section, a sample network is configured with BGP between the
PE and CE routers IS-IS is configured as the service provider IGP Figure B.3 illustrates this network
F I G U R E B 3 A service provider network to be configured with IS-IS
Figure B.4 illustrates the routing protocol utilization in the service provider network illustrated in Figure B.3
F I G U R E B 4 Network protocol utilization
Peer 2
Serial 0 Serial 0/1 Serial 0/0 Serial 0/1 Serial 0/0 Serial 0/3 Serial 0/1 Serial 0
Peer 2 BGP
AS 65002
Peer 1 BGP
AS 65001
I-BGP
AS 65000 IS-ISSimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 18428 Appendix B Service Provider Tag Switching with OSPF and IS-IS
Table B.3 lists the IP addresses and interfaces of the CE devices in Figure B.3
Table B.4 lists the IP addresses and interfaces of the service provider devices in Figure B.3
Router Configuration
This section shows the configuration of all the network devices in the example network The peer routers run BGP, the Atlanta and Raleigh POP routers run OSPF and BGP, and the Core router runs only OSPF
Peer 1 Router Configuration
On the Peer 1 router, MPLS is not enabled; only standard BGP is enabled
T A B L E B 4 Service Provider Addressing
Device Loopback 0 Serial 0/0 Serial 0/1 Serial 0/3
Trang 19Service Provider Network Configuration with IS-IS 429
version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Peer1
!enable password cisco
ip address 192.168.1.1 255.255.255.255
!interface Ethernet0
no ip address shutdown
!interface Serial0 description *** Link to Atlanta POP ***
ip address 192.168.3.5 255.255.255.252
no fair-queue
!interface Serial1
no ip address shutdown
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 20430 Appendix B Service Provider Tag Switching with OSPF and IS-IS
router bgp 65001
no synchronization bgp log-neighbor-changes redistribute connected neighbor 192.168.3.6 remote-as 65000
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!end
Atlanta POP Router Configuration
On the Atlanta POP router, standard IS-IS is configured as the IGP I-BGP is set up between the Atlanta and Raleigh POP routers An E-BGP session is set
up between the Atlanta POP router and Peer 1 Tag switching is enabled only
on the internal service provider link
Atlanta#show running-config
Building configuration
Current configuration : 1556 bytesSimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 21Service Provider Network Configuration with IS-IS 431
version 12.1service timestamps debug uptimeservice timestamps log uptime
no service password-encryption
!hostname Atlanta
!enable password cisco
ip address 204.134.83.1 255.255.255.255
ip router isis
!interface Serial0/0 description *** Link to Core Router ***
ip address 204.134.83.5 255.255.255.252
ip router isis tag-switching ip
no fair-queue clockrate 64000
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 22432 Appendix B Service Provider Tag Switching with OSPF and IS-IS
interface Serial0/1 description *** Link to Peer1 ***
ip address 192.168.3.6 255.255.255.252 clockrate 64000
!interface Serial0/2
no ip address shutdown clockrate 64000
!interface Serial0/3
no ip address shutdown clockrate 64000
!interface Ethernet1/0
no ip address shutdown
!interface Ethernet1/1
no ip address shutdown
!interface Ethernet1/2
no ip address shutdown
!interface Ethernet1/3
no ip address shutdown
!router isis net 49.0001.1111.1111.1111.00 is-type level-1
!Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
Trang 23Service Provider Network Configuration with IS-IS 433
router bgp 65000
no synchronization bgp log-neighbor-changes neighbor 192.168.3.5 remote-as 65001 neighbor 204.134.83.3 remote-as 65000 neighbor 204.134.83.3 update-source Loopback0 neighbor 204.134.83.3 next-hop-self
ip netmask-format decimalline aux 0
line vty 0 4 privilege level 15 password cisco logging synchronous login
ip netmask-format decimal
!end
Core Router Configuration
On the Core router, standard IS-IS is configured as the IGP Tag switching
is enabled on the two service provider links
Core#show running-config
Building configuration
Current configuration : 1317 bytesSimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com