Routing Case Study
InstructionsConfigure the routers according to the above diagram and the requirements below.
Requirements• Configure the interfaces with the IP addresses shown in the diagram.• Configure R2 and R3 to be in EIGRP AS 65100. Add the entire class B
network and disable automatic summarization.• Configure OSPF area 0 on the link between R1 and R2. Do not add the
loopback interfaces on R1 into area 0.• Redistribute all R1 loopbacks and summarize the 172.16.122.0 and
172.16.123.0 loopbacks to the backbone with the most efficient mask.
• Have R3 redistribute its connected routes into EIGRP.• Make sure all loopback interfaces are advertised with the correct mask.• Have R2 originate a default route into the OSPF domain.• Redistribute OSPF into EIGRP.• Configure passive interfaces for EIGRP and OSPF as appropriate.• Filter out 172.16.121.0 and 172.16.121.0 from being advertised to R3.• Configure R2 and R3 in BGP AS 65100. Configure R4 in BGP AS 65400.• Peer R2 and R3 in BGP on their loopback interfaces.• Peer R3 and R4 in BGP.• Have R4 advertise its loopback interfaces into BGP.• Modify the local preference on R3 so that AS 65100 prefers the T1 link to
AS 65400 networks. • Configure R3 to filter out 172.31.8.0 and 172.31.12.0 on the inbound
updates from R4.• Configure R4 with a static route to the 172.16.0.0/16 network via R3.• Configure the IPv6 loopback and tunnel interfaces on R1 and R3. • Enable RIPng on R1 and R3 and configure the advertisement of the IPv6
loopback and tunnel networks.
InstructionsConfigure the routers according to the above diagram and the requirementsbelow.Requirements
• Configure the interfaces with the IP addresses shown in the diag Instructions
Configure the routers according to the above diagram and the requirements
below.
Requirements
• Configure the interfaces with the IP addresses shown in the diagram.
• Configure R2 and R3 to be in EIGRP AS 65100. Add the entire class B network
and disable automatic summarization.
2 – 2 CCNP: Building Scalable Internetworks v5.0 – Skills-Based Assessment 2 Copyright © 2006, Cisco Systems, Inc
• Configure OSPF area 0 on the link between R1 and R2. Also add the loopback
interfaces on R1 into area 0.
• Have R3 redistribute its connected routes into EIGRP.
• Make sure all loopback interfaces are advertised with the correct mask.
• Have R2 originate a default route into the OSPF domain.
• Redistribute OSPF into EIGRP.
• Filter out 172.16.120.0 and 172.16.121.0 from being advertised to R3.
• Configure R2 and R3 in BGP AS 65100. Configure R4 in BGP AS 65400.
• Peer R2 and R3 in BGP on their loopback interfaces.
• Peer R3 and R4 in BGP.
• Have R4 advertise its loopback interfaces into BGP.
• Configure R3 to filter out 172.31.8.0 and 172.31.12.0 on the inbound updates
from R4.
• Configure R4 with a static route to the 172.16.0.0/16 network via R3.
这是今天在网上看到的一道题。
前面的问题都比较简单。但后面的 BGP我还搞不定。特留在这待我把路由卷看完了再解后面几问》
1.配 IP就不说了
2.在R2和R3之间启用 EIGRP,并以 B类地址宣告这几个网段,并取消掉 autosummary
3. 在R1和R2之间启用OSPF Area 0 。并宣告R1的 Loopback端口。
4. 检查各 Loopback端口的地址配置是否正确。
5.在R3上面重发布直连路由进 EIGRP
6.将R2以默认路由方式插入OSPF域。
7.重发布OSPF进 EIGRP。
8.过滤掉这两个段的宣告到R3.
9.配置两个 BGP。
10.Peer R2 and R3 in BGP on their loopback interfaces.这个问题我没弄懂意思,也没有操作成功。
11.R3和R4的 BGP
12.将R4的 LOOPBACK接口宣告进 BGP
13.过滤掉 172.31.8.0 /172.31.12.0的更新包。
14.配置R4到 172.16.0.0/16的静态路由。
R1 Configure:
R1#show runBuilding configuration…Current configuration : 1319 bytes!! Last configuration change at 11:40:24 UTC Tue Sep 1 2009!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!interface Loopback120ip address 172.16.120.1 255.255.255.0!interface Loopback121ip address 172.16.121.1 255.255.255.0!interface Loopback122ip address 172.16.122.1 255.255.255.0!interface Loopback123ip address 172.16.123.1 255.255.255.0!interface Serial0/0ip address 172.16.12.1 255.255.255.0serial restart-delay 0clock rate 19200!interface Serial0/1no ip addressshutdownserial restart-delay 0!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!router ospf 1log-adjacency-changesnetwork 172.16.12.0 0.0.0.255 area 0network 172.16.120.0 0.0.0.255 area 0network 172.16.121.0 0.0.0.255 area 0network 172.16.122.0 0.0.0.255 area 0network 172.16.123.0 0.0.0.255 area 0!ip http serverno ip http secure-server!!!!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4!!end
R1#show run
Building configuration…
Current configuration : 1319 bytes
!
! Last configuration change at 11:40:24 UTC Tue Sep 1 2009
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback120
ip address 172.16.120.1 255.255.255.0
!
interface Loopback121
ip address 172.16.121.1 255.255.255.0
!
interface Loopback122
ip address 172.16.122.1 255.255.255.0
!
interface Loopback123
ip address 172.16.123.1 255.255.255.0
!
interface Serial0/0
ip address 172.16.12.1 255.255.255.0
serial restart-delay 0
clock rate 19200
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 172.16.12.0 0.0.0.255 area 0
network 172.16.120.0 0.0.0.255 area 0
network 172.16.121.0 0.0.0.255 area 0
network 172.16.122.0 0.0.0.255 area 0
network 172.16.123.0 0.0.0.255 area 0
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
R2 Configure:
R2#show run
Building configuration…
Current configuration : 1498 bytes
!
! Last configuration change at 14:49:04 UTC Tue Sep 1 2009
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.2.1 255.255.255.0
!
interface Serial0/0
ip address 172.16.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 172.16.23.2 255.255.255.0
serial restart-delay 0
clock rate 19200
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 65100
redistribute ospf 1 metric 100000 10 0 1 1500
network 172.16.0.0
distribute-list 1 out
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 65100
network 172.16.12.0 0.0.0.255 area 0
default-information originate always
!
router bgp 65100
no synchronization
bgp log-neighbor-changes
network 172.16.2.0 mask 255.255.255.0
network 172.16.23.0 mask 255.255.255.0
neighbor 172.16.3.1 remote-as 65100
no auto-summary
!
ip http server
no ip http secure-server
!
!
!
access-list 1 deny 172.16.120.0 0.0.0.255 log
access-list 1 deny 172.16.121.0 0.0.0.255 log
access-list 1 permit any log
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
R3 Configure:
R3#show run
Building configuration…
Current configuration : 1662 bytes
!
! Last configuration change at 16:30:45 UTC Tue Sep 1 2009
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.3.1 255.255.255.0
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/1
ip address 172.16.23.3 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.34.3 255.255.255.0
serial restart-delay 0
clock rate 19200
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 65100
redistribute connected
network 172.16.0.0
no auto-summary
!
router bgp 65100
no synchronization
bgp log-neighbor-changes
network 172.16.3.0 mask 255.255.255.0
network 172.16.23.0 mask 255.255.255.0
neighbor 172.16.2.1 remote-as 65100
neighbor 192.168.34.4 remote-as 65400
neighbor 192.168.34.4 prefix-list filterout in
no auto-summary
!
ip http server
no ip http secure-server
!
!
!
!
ip prefix-list filterout seq 5 deny 172.31.8.0/24
ip prefix-list filterout seq 10 deny 172.31.12.0/24
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
R4 Configure:
R4#show run
Building configuration…
Current configuration : 1382 bytes
!
! Last configuration change at 14:46:06 UTC Tue Sep 1 2009
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback200
ip address 172.31.0.1 255.255.255.0
!
interface Loopback204
ip address 172.31.4.1 255.255.255.0
!
interface Loopback208
ip address 172.31.8.1 255.255.255.0
!
interface Loopback212
ip address 172.31.12.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.34.4 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 65400
no synchronization
bgp log-neighbor-changes
network 172.31.0.0 mask 255.255.255.0
network 172.31.4.0 mask 255.255.255.0
network 172.31.8.0 mask 255.255.255.0
network 172.31.12.0 mask 255.255.255.0
neighbor 192.168.34.3 remote-as 65100
no auto-summary
!
ip http server
no ip http secure-server
!
ip route 172.16.0.0 255.255.0.0 Serial0/0
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end
以上配置并不表示完全正确。因 BGP部分还末系统学习。
以下为部分信息输出:
on R1:
R1#show ip ospf 1 database
OSPF Router with ID (172.16.123.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
172.16.2.1 172.16.2.1 1545 0x8000000C 0x0078D2 2
172.16.123.1 172.16.123.1 1738 0x8000000E 0x00139C 6
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 172.16.2.1 1282 0x8000000C 0x007E69 1
192.168.34.0 172.16.2.1 212 0×80000003 0x00143F 0
R1#show ip route
Gateway of last resort is 172.16.12.2 to network 0.0.0.0
172.16.0.0/24 is subnetted, 5 subnets
C 172.16.12.0 is directly connected, Serial0/0
C 172.16.120.0 is directly connected, Loopback120
C 172.16.121.0 is directly connected, Loopback121
C 172.16.122.0 is directly connected, Loopback122
C 172.16.123.0 is directly connected, Loopback123
O E2 192.168.34.0/24 [110/20] via 172.16.12.2, 00:03:59, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 172.16.12.2, 02:04:43, Serial0/0
R1#show ip ospf 1 border-routers
OSPF Process 1 internal Routing Table
Codes: i – Intra-area route, I – Inter-area route
i 172.16.2.1 [64] via 172.16.12.2, Serial0/0, ASBR, Area 0, SPF 9
On R2:
R2#show ip ospf 1 neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.123.1 0 FULL/ - 00:00:31 172.16.12.1 Serial0/0
R2#show ip ospf 1 database router
OSPF Router with ID (172.16.2.1) (Process ID 1)
Router Link States (Area 0)
LS age: 1699
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 172.16.2.1
Advertising Router: 172.16.2.1
LS Seq Number: 8000000C
Checksum: 0x78D2
Length: 48
AS Boundary Router
Number of Links: 2
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 172.16.123.1
(Link Data) Router Interface address: 172.16.12.2
Number of TOS metrics: 0
TOS 0 Metrics: 64
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.12.0
(Link Data) Network Mask: 255.255.255.0
Number of TOS metrics: 0
TOS 0 Metrics: 64
LS age: 1895
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 172.16.123.1
Advertising Router: 172.16.123.1
LS Seq Number: 8000000E
Checksum: 0x139C
Length: 96
Number of Links: 6
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.123.1
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.122.1
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.121.1
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.120.1
(Link Data) Network Mask: 255.255.255.255
Number of TOS metrics: 0
TOS 0 Metrics: 1
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 172.16.2.1
(Link Data) Router Interface address: 172.16.12.1
Number of TOS metrics: 0
TOS 0 Metrics: 64
Link connected to: a Stub Network
(Link ID) Network/subnet number: 172.16.12.0
(Link Data) Network Mask: 255.255.255.0
Number of TOS metrics: 0
TOS 0 Metrics: 64
R2# show ip ospf 1 database
OSPF Router with ID (172.16.2.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
172.16.2.1 172.16.2.1 1717 0x8000000C 0x0078D2 2
172.16.123.1 172.16.123.1 1912 0x8000000E 0x00139C 6
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 172.16.2.1 1454 0x8000000C 0x007E69 1
192.168.34.0 172.16.2.1 384 0×80000003 0x00143F 0
R2#show ip eigrp 65100 interfaces
IP-EIGRP interfaces for process 65100
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se0/0 0 0/0 0 0/1 0 0
Se0/1 1 0/0 118 0/15 531 0
Lo0 0 0/0 0 0/1 0 0
R2#show ip eigrp 65100 topology
IP-EIGRP Topology Table for AS(65100)/ID(172.16.2.1)
Codes: P – Passive, A – Active, U – Update, Q – Query, R – Reply,
r – reply Status, s – sia Status
P 192.168.34.0/24, 1 successors, FD is 2681856
via 172.16.23.3 (2681856/2169856), Serial0/1
P 172.16.23.0/24, 1 successors, FD is 2169856
via Connected, Serial0/1
P 172.16.12.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
P 172.16.2.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 172.16.3.0/24, 1 successors, FD is 2297856
via 172.16.23.3 (2297856/128256), Serial0/1
P 172.16.123.1/32, 1 successors, FD is 28160
via Redistributed (28160/0)
P 172.16.122.1/32, 1 successors, FD is 28160
via Redistributed (28160/0)
R2#
R2#show ip bgp
BGP table version is 3, local router ID is 172.16.2.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
*> 172.16.2.0/24 0.0.0.0 0 32768 i
*> 172.16.23.0/24 0.0.0.0 0 32768 i
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 8 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial0/1
C 172.16.12.0/24 is directly connected, Serial0/0
C 172.16.2.0/24 is directly connected, Loopback0
D 172.16.3.0/24 [90/2297856] via 172.16.23.3, 00:08:00, Serial0/1
O 172.16.121.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0
O 172.16.120.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0
O 172.16.123.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0
O 172.16.122.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0
D EX 192.168.34.0/24 [170/2681856] via 172.16.23.3, 00:08:00, Serial0/1
on R3:
R3# show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial0/1
D 172.16.12.0/24 [90/2681856] via 172.16.23.2, 00:08:17, Serial0/1
D 172.16.2.0/24 [90/2297856] via 172.16.23.2, 00:08:17, Serial0/1
C 172.16.3.0/24 is directly connected, Loopback0
D EX 172.16.123.1/32 [170/2172416] via 172.16.23.2, 00:08:17, Serial0/1
D EX 172.16.122.1/32 [170/2172416] via 172.16.23.2, 00:08:17, Serial0/1
C 192.168.34.0/24 is directly connected, Serial1/1
R3#
R4#sh ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
B 172.16.23.0/24 [20/0] via 192.168.34.3, 01:27:12
S 172.16.0.0/16 is directly connected, Serial0/0
B 172.16.3.0/24 [20/0] via 192.168.34.3, 01:27:12
172.31.0.0/24 is subnetted, 4 subnets
C 172.31.0.0 is directly connected, Loopback200
C 172.31.4.0 is directly connected, Loopback204
C 172.31.8.0 is directly connected, Loopback208
C 172.31.12.0 is directly connected, Loopback212
C 192.168.34.0/24 is directly connected, Serial0/0ram.
• Configure R2 and R3 to be in EIGRP AS 65100. Add the entire class B networkand disable automatic summarization.2 – 2 CCNP: Building Scalable Internetworks v5.0 – Skills-Based Assessment 2 Copyright © 2006, Cisco Systems, Inc
• Configure OSPF area 0 on the link between R1 and R2. Also add the loopbackinterfaces on R1 into area 0.
• Have R3 redistribute its connected routes into EIGRP.
• Make sure all loopback interfaces are advertised with the correct mask.
• Have R2 originate a default route into the OSPF domain.
• Redistribute OSPF into EIGRP.
• Filter out 172.16.120.0 and 172.16.121.0 from being advertised to R3.
• Configure R2 and R3 in BGP AS 65100. Configure R4 in BGP AS 65400.
• Peer R2 and R3 in BGP on their loopback interfaces.
• Peer R3 and R4 in BGP.
• Have R4 advertise its loopback interfaces into BGP.
• Configure R3 to filter out 172.31.8.0 and 172.31.12.0 on the inbound updatesfrom R4.
• Configure R4 with a static route to the 172.16.0.0/16 network via R3.
这是今天在网上看到的一道题。
前面的问题都比较简单。但后面的 BGP我还搞不定。特留在这待我把路由卷看完了再解后面几问》
1. 配 IP 就 不 说 了2. 在 R2 和 R3 之 间 启 用 EIGRP , 并 以 B 类 地 址 宣 告 这 几 个 网 段 , 并 取 消 掉 autosummary3. 在 R1 和 R2 之 间 启 用 OSPF Area 0 。 并 宣 告 R1 的 Loopback 端 口 。4. 检 查 各 Loopback 端 口 的 地 址 配 置 是 否 正 确 。5. 在 R3 上 面 重 发 布 直 连 路 由 进 EIGRP6. 将 R2 以 默 认 路 由 方 式 插 入 OSPF 域 。7. 重 发 布 OSPF 进 EIGRP 。8. 过 滤 掉 这 两 个 段 的 宣 告 到 R3.9. 配 置 两 个 BGP 。10.Peer R2 and R3 in BGP on their loopback interfaces. 这个问题我没弄懂意思,也没有操作成功。11.R3 和 R4 的 BGP12. 将 R4 的 LOOPBACK 接 口 宣 告 进 BGP13. 过 滤 掉 172.31.8.0 /172.31.12.0 的 更 新 包 。14.配置R4到 172.16.0.0/16的静态路由。
R1 Configure:
R1#show runBuilding configuration…Current configuration : 1319 bytes!! Last configuration change at 11:40:24 UTC Tue Sep 1 2009!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!
interface Loopback120ip address 172.16.120.1 255.255.255.0!interface Loopback121ip address 172.16.121.1 255.255.255.0!interface Loopback122ip address 172.16.122.1 255.255.255.0!interface Loopback123ip address 172.16.123.1 255.255.255.0!interface Serial0/0ip address 172.16.12.1 255.255.255.0serial restart-delay 0clock rate 19200!interface Serial0/1no ip addressshutdownserial restart-delay 0!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!router ospf 1log-adjacency-changesnetwork 172.16.12.0 0.0.0.255 area 0network 172.16.120.0 0.0.0.255 area 0network 172.16.121.0 0.0.0.255 area 0network 172.16.122.0 0.0.0.255 area 0network 172.16.123.0 0.0.0.255 area 0!ip http serverno ip http secure-server!!!!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0
line vty 0 4!!end
R1#show run
Building configuration…Current configuration : 1319 bytes!! Last configuration change at 11:40:24 UTC Tue Sep 1 2009!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!interface Loopback120ip address 172.16.120.1 255.255.255.0!interface Loopback121ip address 172.16.121.1 255.255.255.0!interface Loopback122ip address 172.16.122.1 255.255.255.0!interface Loopback123ip address 172.16.123.1 255.255.255.0
!interface Serial0/0ip address 172.16.12.1 255.255.255.0serial restart-delay 0clock rate 19200!interface Serial0/1no ip addressshutdownserial restart-delay 0!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!router ospf 1log-adjacency-changesnetwork 172.16.12.0 0.0.0.255 area 0network 172.16.120.0 0.0.0.255 area 0network 172.16.121.0 0.0.0.255 area 0network 172.16.122.0 0.0.0.255 area 0network 172.16.123.0 0.0.0.255 area 0!ip http serverno ip http secure-server!!!!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4!!endR2 Configure:R2#show runBuilding configuration…Current configuration : 1498 bytes!! Last configuration change at 14:49:04 UTC Tue Sep 1 2009!
version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!interface Loopback0ip address 172.16.2.1 255.255.255.0!interface Serial0/0ip address 172.16.12.2 255.255.255.0serial restart-delay 0!interface Serial0/1ip address 172.16.23.2 255.255.255.0serial restart-delay 0clock rate 19200!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!
router eigrp 65100redistribute ospf 1 metric 100000 10 0 1 1500network 172.16.0.0distribute-list 1 outno auto-summary!router ospf 1log-adjacency-changesredistribute eigrp 65100network 172.16.12.0 0.0.0.255 area 0default-information originate always!router bgp 65100no synchronizationbgp log-neighbor-changesnetwork 172.16.2.0 mask 255.255.255.0network 172.16.23.0 mask 255.255.255.0neighbor 172.16.3.1 remote-as 65100no auto-summary!ip http serverno ip http secure-server!!!access-list 1 deny 172.16.120.0 0.0.0.255 logaccess-list 1 deny 172.16.121.0 0.0.0.255 logaccess-list 1 permit any log!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4!!endR3 Configure:R3#show runBuilding configuration…Current configuration : 1662 bytes!! Last configuration change at 16:30:45 UTC Tue Sep 1 2009!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3
!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!interface Loopback0ip address 172.16.3.1 255.255.255.0!interface Serial0/0no ip addressshutdownserial restart-delay 0!interface Serial0/1ip address 172.16.23.3 255.255.255.0serial restart-delay 0!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!interface Serial1/0no ip addressshutdownserial restart-delay 0!interface Serial1/1
ip address 192.168.34.3 255.255.255.0serial restart-delay 0clock rate 19200!interface Serial1/2no ip addressshutdownserial restart-delay 0!interface Serial1/3no ip addressshutdownserial restart-delay 0!router eigrp 65100redistribute connectednetwork 172.16.0.0no auto-summary!router bgp 65100no synchronizationbgp log-neighbor-changesnetwork 172.16.3.0 mask 255.255.255.0network 172.16.23.0 mask 255.255.255.0neighbor 172.16.2.1 remote-as 65100neighbor 192.168.34.4 remote-as 65400neighbor 192.168.34.4 prefix-list filterout inno auto-summary!ip http serverno ip http secure-server!!!!ip prefix-list filterout seq 5 deny 172.31.8.0/24ip prefix-list filterout seq 10 deny 172.31.12.0/24!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4!!endR4 Configure:R4#show runBuilding configuration…Current configuration : 1382 bytes
!! Last configuration change at 14:46:06 UTC Tue Sep 1 2009!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R4!boot-start-markerboot-end-marker!!no aaa new-modelmemory-size iomem 5!!ip cefno ip domain lookup!!!!!!!!!!!!!!!!!!!!!!!interface Loopback200ip address 172.31.0.1 255.255.255.0!interface Loopback204ip address 172.31.4.1 255.255.255.0!interface Loopback208ip address 172.31.8.1 255.255.255.0!interface Loopback212ip address 172.31.12.1 255.255.255.0!interface Serial0/0ip address 192.168.34.4 255.255.255.0serial restart-delay 0!interface Serial0/1no ip addressshutdown
serial restart-delay 0!interface Serial0/2no ip addressshutdownserial restart-delay 0!interface Serial0/3no ip addressshutdownserial restart-delay 0!router bgp 65400no synchronizationbgp log-neighbor-changesnetwork 172.31.0.0 mask 255.255.255.0network 172.31.4.0 mask 255.255.255.0network 172.31.8.0 mask 255.255.255.0network 172.31.12.0 mask 255.255.255.0neighbor 192.168.34.3 remote-as 65100no auto-summary!ip http serverno ip http secure-server!ip route 172.16.0.0 255.255.0.0 Serial0/0!!!!control-plane!!!!!!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4!!end以上配置并不表示完全正确。因 BGP部分还末系统学习。以下为部分信息输出:on R1:R1#show ip ospf 1 databaseOSPF Router with ID (172.16.123.1) (Process ID 1)Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count172.16.2.1 172.16.2.1 1545 0x8000000C 0x0078D2 2172.16.123.1 172.16.123.1 1738 0x8000000E 0x00139C 6Type-5 AS External Link StatesLink ID ADV Router Age Seq# Checksum Tag0.0.0.0 172.16.2.1 1282 0x8000000C 0x007E69 1192.168.34.0 172.16.2.1 212 0×80000003 0x00143F 0
R1#show ip routeGateway of last resort is 172.16.12.2 to network 0.0.0.0172.16.0.0/24 is subnetted, 5 subnetsC 172.16.12.0 is directly connected, Serial0/0C 172.16.120.0 is directly connected, Loopback120C 172.16.121.0 is directly connected, Loopback121C 172.16.122.0 is directly connected, Loopback122C 172.16.123.0 is directly connected, Loopback123O E2 192.168.34.0/24 [110/20] via 172.16.12.2, 00:03:59, Serial0/0O*E2 0.0.0.0/0 [110/1] via 172.16.12.2, 02:04:43, Serial0/0R1#show ip ospf 1 border-routersOSPF Process 1 internal Routing TableCodes: i – Intra-area route, I – Inter-area routei 172.16.2.1 [64] via 172.16.12.2, Serial0/0, ASBR, Area 0, SPF 9On R2:R2#show ip ospf 1 neighborNeighbor ID Pri State Dead Time Address Interface172.16.123.1 0 FULL/ - 00:00:31 172.16.12.1 Serial0/0R2#show ip ospf 1 database routerOSPF Router with ID (172.16.2.1) (Process ID 1)Router Link States (Area 0)LS age: 1699Options: (No TOS-capability, DC)LS Type: Router LinksLink State ID: 172.16.2.1Advertising Router: 172.16.2.1LS Seq Number: 8000000CChecksum: 0x78D2Length: 48AS Boundary RouterNumber of Links: 2Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 172.16.123.1(Link Data) Router Interface address: 172.16.12.2Number of TOS metrics: 0TOS 0 Metrics: 64Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.12.0(Link Data) Network Mask: 255.255.255.0Number of TOS metrics: 0TOS 0 Metrics: 64LS age: 1895Options: (No TOS-capability, DC)LS Type: Router LinksLink State ID: 172.16.123.1Advertising Router: 172.16.123.1LS Seq Number: 8000000EChecksum: 0x139CLength: 96Number of Links: 6Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.123.1(Link Data) Network Mask: 255.255.255.255Number of TOS metrics: 0TOS 0 Metrics: 1Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.122.1(Link Data) Network Mask: 255.255.255.255Number of TOS metrics: 0TOS 0 Metrics: 1Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.121.1
(Link Data) Network Mask: 255.255.255.255Number of TOS metrics: 0TOS 0 Metrics: 1Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.120.1(Link Data) Network Mask: 255.255.255.255Number of TOS metrics: 0TOS 0 Metrics: 1Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 172.16.2.1(Link Data) Router Interface address: 172.16.12.1Number of TOS metrics: 0TOS 0 Metrics: 64Link connected to: a Stub Network(Link ID) Network/subnet number: 172.16.12.0(Link Data) Network Mask: 255.255.255.0Number of TOS metrics: 0TOS 0 Metrics: 64R2# show ip ospf 1 databaseOSPF Router with ID (172.16.2.1) (Process ID 1)Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count172.16.2.1 172.16.2.1 1717 0x8000000C 0x0078D2 2172.16.123.1 172.16.123.1 1912 0x8000000E 0x00139C 6Type-5 AS External Link StatesLink ID ADV Router Age Seq# Checksum Tag0.0.0.0 172.16.2.1 1454 0x8000000C 0x007E69 1192.168.34.0 172.16.2.1 384 0×80000003 0x00143F 0R2#show ip eigrp 65100 interfacesIP-EIGRP interfaces for process 65100Xmit Queue Mean Pacing Time Multicast PendingInterface Peers Un/Reliable SRTT Un/Reliable Flow Timer RoutesSe0/0 0 0/0 0 0/1 0 0Se0/1 1 0/0 118 0/15 531 0Lo0 0 0/0 0 0/1 0 0R2#show ip eigrp 65100 topologyIP-EIGRP Topology Table for AS(65100)/ID(172.16.2.1)Codes: P – Passive, A – Active, U – Update, Q – Query, R – Reply,r – reply Status, s – sia StatusP 192.168.34.0/24, 1 successors, FD is 2681856via 172.16.23.3 (2681856/2169856), Serial0/1P 172.16.23.0/24, 1 successors, FD is 2169856via Connected, Serial0/1P 172.16.12.0/24, 1 successors, FD is 2169856via Connected, Serial0/0P 172.16.2.0/24, 1 successors, FD is 128256via Connected, Loopback0P 172.16.3.0/24, 1 successors, FD is 2297856via 172.16.23.3 (2297856/128256), Serial0/1P 172.16.123.1/32, 1 successors, FD is 28160via Redistributed (28160/0)P 172.16.122.1/32, 1 successors, FD is 28160via Redistributed (28160/0)R2#R2#show ip bgpBGP table version is 3, local router ID is 172.16.2.1Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,r RIB-failure, S StaleOrigin codes: i – IGP, e – EGP, ? – incompleteNetwork Next Hop Metric LocPrf Weight Path*> 172.16.2.0/24 0.0.0.0 0 32768 i*> 172.16.23.0/24 0.0.0.0 0 32768 i
Gateway of last resort is not set172.16.0.0/16 is variably subnetted, 8 subnets, 2 masksC 172.16.23.0/24 is directly connected, Serial0/1C 172.16.12.0/24 is directly connected, Serial0/0C 172.16.2.0/24 is directly connected, Loopback0D 172.16.3.0/24 [90/2297856] via 172.16.23.3, 00:08:00, Serial0/1O 172.16.121.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0O 172.16.120.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0O 172.16.123.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0O 172.16.122.1/32 [110/65] via 172.16.12.1, 02:08:45, Serial0/0D EX 192.168.34.0/24 [170/2681856] via 172.16.23.3, 00:08:00, Serial0/1on R3:R3# show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masksC 172.16.23.0/24 is directly connected, Serial0/1D 172.16.12.0/24 [90/2681856] via 172.16.23.2, 00:08:17, Serial0/1D 172.16.2.0/24 [90/2297856] via 172.16.23.2, 00:08:17, Serial0/1C 172.16.3.0/24 is directly connected, Loopback0D EX 172.16.123.1/32 [170/2172416] via 172.16.23.2, 00:08:17, Serial0/1D EX 172.16.122.1/32 [170/2172416] via 172.16.23.2, 00:08:17, Serial0/1C 192.168.34.0/24 is directly connected, Serial1/1R3#R4#sh ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGPD – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter areaN1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2E1 – OSPF external type 1, E2 – OSPF external type 2i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2ia – IS-IS inter area, * – candidate default, U – per-user static routeo – ODR, P – periodic downloaded static routeGateway of last resort is not set172.16.0.0/16 is variably subnetted, 3 subnets, 2 masksB 172.16.23.0/24 [20/0] via 192.168.34.3, 01:27:12S 172.16.0.0/16 is directly connected, Serial0/0B 172.16.3.0/24 [20/0] via 192.168.34.3, 01:27:12172.31.0.0/24 is subnetted, 4 subnetsC 172.31.0.0 is directly connected, Loopback200C 172.31.4.0 is directly connected, Loopback204C 172.31.8.0 is directly connected, Loopback208C 172.31.12.0 is directly connected, Loopback212C 192.168.34.0/24 is directly connected, Serial0/0
----------------R1--------------------------
enable
config t
host R1
line console 0logg sy
exec-time 0 0exit
interface lo 120ip add 172.16.120.1 255.255.255.0no shutexit
interface lo 121ip add 172.16.121.1 255.255.255.0no shutexit
interface lo 122ip add 172.16.122.1 255.255.255.0no shutexit
interface lo 123ip add 172.16.123.1 255.255.255.0no shutexit
interface s0/0ip add 172.16.12.1 255.255.255.0clock rate 64000no shutexit
----------------R2--------------------------
enable
config t
host R2
line console 0logg syexec-time 0 0exit
interface lo 0ip add 172.16.2.1 255.255.255.0no shutexit
interface s0/0ip add 172.16.12.2 255.255.255.0no shutexit
interface s0/1ip add 172.16.23.2 255.255.255.0clock rate 64000no shutexit
----------------R3--------------------------
enable
config t
host R3
line console 0logg syexec-time 0 0exit
interface lo 0ip add 172.16.3.1 255.255.255.0no shutexit
interface s0/0ip add 192.168.34.3 255.255.255.0no shutexit
interface s0/1ip add 172.16.23.3 255.255.255.0no shutexit
----------------R4--------------------------
enable
config t
host R4
line console 0logg syexec-time 0 0exit
interface lo 200ip add 172.31.0.1 255.255.255.0no shutexit
interface lo 204ip add 172.31.4.1 255.255.255.0no shutexit
interface lo 208ip add 172.31.8.1 255.255.255.0no shutexit
interface lo 212ip add 172.31.12.1 255.255.255.0no shutexit
interface s0/0ip add 192.168.34.4 255.255.255.0no shutexit
按要求的路由配置:--------------------R1----------------------
router ospf 1network 172.16.120.0 0.0.0.255 area 0network 172.16.121.0 0.0.0.255 area 0network 172.16.122.0 0.0.0.255 area 0network 172.16.123.0 0.0.0.255 area 0network 172.16.12.0 0.0.0.255 area 0exit
ip route 172.31.0.0 255.255.0.0 172.16.12.2
--------------------R2----------------------router ospf 1network 172.16.12.0 0.0.0.255 area 0
redistribute eigrp 65100 metric 30 metric-type 1 subnets
exit
access-list 1 deny 172.16.120.0 0.0.0.255access-list 1 deny 172.16.121.0 0.0.0.255access-list 1 permit any
router eigrp 65100no auto-summary network 172.16.2.0 0.0.0.255network 172.16.23.0 0.0.0.255redistribute ospf 1 metric 1000 100 255 1 1500redistribute staticdistribute-list 1 out Serial0/1exitip route 0.0.0.0 0.0.0.0 172.16.12.1
router bgp 65100no synchronizationbgp log-neighbor-changesneighbor 172.16.3.1 remote-as 65100neighbor 172.16.3.1 update-source Loopback0neighbor 172.16.3.1 next-hop-selfexit
--------------------R3----------------------router eigrp 65100no auto-summary network 172.16.3.0 0.0.0.255network 172.16.23.0 0.0.0.255redistribute connected exit
access-list 1 deny 172.31.8.0 0.0.0.255access-list 1 permit any
router bgp 65100no synchronizationneighbor 172.16.2.1 remote-as 65100neighbor 172.16.2.1 update-source Loopback0
neighbor 172.16.2.1 next-hop-selfneighbor 192.168.34.4 remote-as 65400neighbor 192.168.34.4 distribut-list 1 inexit
--------------------R4----------------------router bgp 65400no synchronizationneighbor 192.168.34.3 remote-as 65100network 172.31.0.0 mask 255.255.255.0network 172.31.4.0 mask 255.255.255.0network 172.31.8.0 mask 255.255.255.0network 172.31.12.0 mask 255.255.255.0exit
ip route 172.16.0.0 255.255.0.0 192.168.34.3
最终各个路由器的路由表:R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 8 subnetsO E1 172.16.23.0 [110/94] via 172.16.12.2, 00:19:53, Serial0/0C 172.16.12.0 is directly connected, Serial0/0O E1 172.16.2.0 [110/94] via 172.16.12.2, 00:19:53, Serial0/0O E1 172.16.3.0 [110/94] via 172.16.12.2, 00:19:53, Serial0/0C 172.16.120.0 is directly connected, Loopback120C 172.16.121.0 is directly connected, Loopback121C 172.16.122.0 is directly connected, Loopback122C 172.16.123.0 is directly connected, Loopback123S 172.31.0.0/16 [1/0] via 172.16.12.2O E1 192.168.34.0/24 [110/94] via 172.16.12.2, 00:19:53, Serial0/0
R2#show ip route(R2上的 172.31.8.0/24的路由过滤掉了)Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route
Gateway of last resort is 172.16.12.1 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 8 subnets, 2 masksC 172.16.23.0/24 is directly connected, Serial0/1C 172.16.12.0/24 is directly connected, Serial0/0C 172.16.2.0/24 is directly connected, Loopback0D 172.16.3.0/24 [90/2297856] via 172.16.23.3, 00:20:20, Serial0/1O 172.16.121.1/32 [110/65] via 172.16.12.1, 00:20:18, Serial0/0O 172.16.120.1/32 [110/65] via 172.16.12.1, 00:20:18, Serial0/0O 172.16.123.1/32 [110/65] via 172.16.12.1, 00:20:18, Serial0/0O 172.16.122.1/32 [110/65] via 172.16.12.1, 00:20:18, Serial0/0172.31.0.0/24 is subnetted, 3 subnetsB 172.31.0.0 [200/0] via 172.16.3.1, 00:17:07B 172.31.4.0 [200/0] via 172.16.3.1, 00:17:07B 172.31.12.0 [200/0] via 172.16.3.1, 00:17:07D EX 192.168.34.0/24 [170/2681856] via 172.16.23.3, 00:20:20, Serial0/1S* 0.0.0.0/0 [1/0] via 172.16.12.1
R3#show ip route(R3上的 172.16.120.0/24 172.16.121.0/24,172.31.8.0/24的路由过滤掉了)Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route
Gateway of last resort is 172.16.23.2 to network 0.0.0.0
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masksC 172.16.23.0/24 is directly connected, Serial0/1D EX 172.16.12.0/24 [170/3097600] via 172.16.23.2, 00:20:48, Serial0/1D 172.16.2.0/24 [90/2297856] via 172.16.23.2, 00:20:48, Serial0/1C 172.16.3.0/24 is directly connected, Loopback0D EX 172.16.123.1/32 [170/3097600] via 172.16.23.2, 00:20:48, Serial0/1D EX 172.16.122.1/32 [170/3097600] via 172.16.23.2, 00:20:48, Serial0/1172.31.0.0/24 is subnetted, 3 subnetsB 172.31.0.0 [20/0] via 192.168.34.4, 00:17:37B 172.31.4.0 [20/0] via 192.168.34.4, 00:17:37B 172.31.12.0 [20/0] via 192.168.34.4, 00:17:37C 192.168.34.0/24 is directly connected, Serial0/0D*EX 0.0.0.0/0 [170/2681856] via 172.16.23.2, 00:20:48, Serial0/1
R4# 00:06:17: %BGP-5-ADJCHANGE: neighbor 192.168.34.3 Up
R4# show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route
Gateway of last resort is not set
S 172.16.0.0/16 [1/0] via 192.168.34.3172.31.0.0/24 is subnetted, 4 subnetsC 172.31.0.0 is directly connected, Loopback200C 172.31.4.0 is directly connected, Loopback204C 172.31.8.0 is directly connected, Loopback208C 172.31.12.0 is directly connected, Loopback212C 192.168.34.0/24 is directly connected, Serial0/0