Tải bản đầy đủ (.pdf) (14 trang)

Quản trị mạng BCSI_R1R7 Printing

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (46.6 KB, 14 trang )


1
R1_F#sh ru
Building configuration...

Current configuration : 2018 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1_F
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$Ff/C$reJojgUjY5KHFAHmx6Ehi/
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
ip host r1 166.66.66.1
ip host r2 1.1.1.10
ip host r3 1.1.1.1
ip host r4 1.1.1.2
ip host r5 1.1.1.6
ip host r6 1.1.1.5
ip host r7 1.1.1.9


!
!
!
!
!
interface Loopback0
ip address 166.66.6.97 255.255.255.240
ip ospf network point-to-point
!
interface Loopback1
ip address 166.66.6.81 255.255.255.240
ip ospf network point-to-point
!
interface Loopback2
ip address 166.66.6.65 255.255.255.240
ip ospf network point-to-point
!
interface Loopback10
ip address 222.222.222.10 255.255.255.255
!
interface FastEthernet0/0
description Conntect to router R3
ip address 166.66.6.1 255.255.255.252
ip ospf authentication-key teamwork
ip ospf priority 10
duplex auto
speed auto
!
interface Serial0/0
no ip address

shutdown
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
area 0 authentication
network 166.66.6.0 0.0.0.3 area 0
network 166.66.6.80 0.0.0.15 area 0
network 166.66.6.96 0.0.0.15 area 0
!
router bgp 100
no synchronization
bgp log-neighbor-changes
redistribute ospf 1 metric 10
neighbor 166.66.66.2 remote-as 100
no auto-summary
!
ip http server
ip classless
!
!
access-list 1 deny 166.66.6.64 0.0.0.15
access-list 1 permit any
access-list 2 deny 1.1.1.2
access-list 2 deny 1.1.1.5
access-list 2 deny 177.77.7.0 0.0.0.255
access-list 2 permit any

banner motd ^C

*************************************************
* *
* This is R1, Lab F. Conf by Dao Xuan Hung *
* *

2
*************************************************

^C
!
line con 0
password cisco
logging synchronous
line aux 0
password cisco
login
line vty 0 4
access-class 2 in
password cisco
login
!
!
!
end

R1_F# sh ip bgp
BGP table version is 12, local router ID is 222.222.222.10
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
*> 1.1.1.8/30 166.66.6.2 10 32768 ?
*> 166.66.6.0/30 0.0.0.0 0 32768 ?
*> 166.66.6.4/30 166.66.6.2 10 32768 ?
*> 166.66.6.16/28 166.66.6.2 10 32768 ?
*> 166.66.6.80/28 0.0.0.0 0 32768 ?
*> 166.66.6.96/28 0.0.0.0 0 32768 ?
*> 166.66.6.128/28 166.66.6.2 10 32768 ?
R1_F# sh ip ro
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

222.222.222.0/32 is subnetted, 1 subnets
C 222.222.222.10 is directly connected, Loopback10
1.0.0.0/30 is subnetted, 3 subnets
O E2 1.1.1.0 [110/1] via 166.66.6.2, 00:09:12, FastEthernet0/0
O E2 1.1.1.4 [110/1] via 166.66.6.2, 00:00:23, FastEthernet0/0
O IA 1.1.1.8 [110/138] via 166.66.6.2, 00:08:52, FastEthernet0/0
188.88.0.0/16 is variably subnetted, 6 subnets, 2 masks
O E2 188.88.8.68/30 [110/1] via 166.66.6.2, 00:00:23, FastEthernet0/0

O E2 188.88.8.48/30 [110/1] via 166.66.6.2, 00:00:24, FastEthernet0/0
O E2 188.88.8.8/30 [110/1] via 166.66.6.2, 00:00:24, FastEthernet0/0
O E2 188.88.8.4/30 [110/1] via 166.66.6.2, 00:00:24, FastEthernet0/0
O E2 188.88.8.0/30 [110/1] via 166.66.6.2, 00:00:24, FastEthernet0/0
O E2 188.88.8.0/28 [110/1] via 166.66.6.2, 00:00:24, FastEthernet0/0
177.77.0.0/16 is variably subnetted, 6 subnets, 2 masks
O E2 177.77.7.72/30 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
O E2 177.77.7.64/30 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
O E2 177.77.7.64/28 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
O E2 177.77.7.68/30 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
O E2 177.77.7.48/30 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
O E2 177.77.7.0/28 [110/1] via 166.66.6.2, 00:00:25, FastEthernet0/0
166.66.0.0/16 is variably subnetted, 7 subnets, 2 masks
O IA 166.66.6.128/28 [110/75] via 166.66.6.2, 00:08:54, FastEthernet0/0
C 166.66.6.96/28 is directly connected, Loopback0
C 166.66.6.64/28 is directly connected, Loopback2
C 166.66.6.80/28 is directly connected, Loopback1
C 166.66.6.0/30 is directly connected, FastEthernet0/0
O IA 166.66.6.4/30 [110/74] via 166.66.6.2, 00:22:35, FastEthernet0/0
O 166.66.6.16/28 [110/11] via 166.66.6.2, 00:22:35, FastEthernet0/0
R1_F#

3
R2#sh ru
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime

service timestamps log uptime
service password-encryption
!
hostname R2
!
enable secret 5 $1$rxuo$zbSfNpBisgqHvnFlE7f/U/
!
!
!
!
!
ip subnet-zero
ip host R7 188.88.8.50
ip host R6 1.1.1.5
ip host R5 177.77.7.50
ip host R4 1.1.1.2
ip host R3 166.66.6.6
ip host R1 166.66.6.1
!
!
!
!
process-max-time 200
!
interface Loopback0
ip address 222.22.2.2 255.255.255.0
no ip directed-broadcast
!
interface Loopback1
ip address 166.66.6.129 255.255.255.240

no ip directed-broadcast
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/0
no ip address
no ip directed-broadcast
no ip mroute-cache
shutdown
no fair-queue
!
interface Serial0/1
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/2
description Connect to router 3
ip address 166.66.6.5 255.255.255.252
no ip directed-broadcast
ip ospf authentication-key 7 044C0E0A032543400C
clockrate 64000
!
interface Serial0/3
description Connect to router 7
ip address 1.1.1.10 255.255.255.252

no ip directed-broadcast
!
router ospf 1
redistribute bgp 100 subnets
network 1.1.1.8 0.0.0.3 area 1
network 166.66.6.4 0.0.0.3 area 1
network 166.66.6.128 0.0.0.15 area 1
area 1 authentication
area 1 nssa
!
router bgp 100
no synchronization
bgp always-compare-med
network 166.66.6.0 mask 255.255.255.0
neighbor 1.1.1.9 remote-as 300
neighbor 166.66.6.6 remote-as 100
neighbor 166.66.6.6 route-map LOCALPREF in
!
ip classless
no ip http server
ip as-path access-list 2 permit ^200$
!
access-list 1 deny 177.77.7.50
access-list 1 deny 222.22.2.6
access-list 1 deny 222.22.2.5
access-list 1 deny 188.88.8.49
access-list 1 deny 1.1.1.4 0.0.0.3
access-list 1 deny 177.77.7.64 0.0.0.15

4

access-list 1 deny 188.88.8.0 0.0.0.15
access-list 1 permit any
route-map LOCALPREF permit 10
match as-path 2
set local-preference 300
!
banner motd ^C Hello, this is router 2, configured by Vu Hoang Nam! ^C
!
line con 0
password 7 094F471A1A0A
login
transport input none
line aux 0
password 7 030752180500
login
line vty 0 4
access-class 1 in
password 7 030752180500
login
!
!
end

R2# sh ip bgp
BGP table version is 85, local router ID is 222.22.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/30 1.1.1.9 250 0 300 200 i

*>i1.1.1.4/30 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 i
*> 1.1.1.8/30 1.1.1.9 250 0 300 i
*>i177.77.7.0/28 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*>i177.77.7.48/30 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*>i177.77.7.64/30 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*>i177.77.7.64/28 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*>i177.77.7.68/30 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*>i177.77.7.72/30 1.1.1.2 150 300 0 200 i
* 1.1.1.9 250 0 300 200 i
*> 188.88.8.0/30 1.1.1.9 250 0 300 i
*> 188.88.8.0/28 1.1.1.9 250 0 300 i
Network Next Hop Metric LocPrf Weight Path
*> 188.88.8.4/30 1.1.1.9 250 0 300 i
*> 188.88.8.8/30 1.1.1.9 250 0 300 i
*> 188.88.8.48/30 1.1.1.9 250 0 300 i
*> 188.88.8.68/30 1.1.1.9 250 0 300 i
R2# sh ip ro
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

1.0.0.0/30 is subnetted, 3 subnets
B 1.1.1.0 [20/250] via 1.1.1.9, 00:04:57
O N2 1.1.1.4 [110/1] via 166.66.6.6, 00:05:03, Serial0/2
C 1.1.1.8 is directly connected, Serial0/3
C 222.22.2.0/24 is directly connected, Loopback0
188.88.0.0/16 is variably subnetted, 6 subnets, 2 masks
B 188.88.8.68/30 [20/250] via 1.1.1.9, 00:13:06
B 188.88.8.48/30 [20/250] via 1.1.1.9, 00:13:06
B 188.88.8.8/30 [20/250] via 1.1.1.9, 00:13:06
B 188.88.8.4/30 [20/250] via 1.1.1.9, 00:13:06
B 188.88.8.0/30 [20/250] via 1.1.1.9, 00:13:06
B 188.88.8.0/28 [20/250] via 1.1.1.9, 00:13:06
177.77.0.0/16 is variably subnetted, 6 subnets, 2 masks
O N2 177.77.7.72/30 [110/1] via 166.66.6.6, 00:05:04, Serial0/2
O N2 177.77.7.64/28 [110/1] via 166.66.6.6, 00:04:59, Serial0/2
O N2 177.77.7.64/30 [110/1] via 166.66.6.6, 00:05:04, Serial0/2
O N2 177.77.7.68/30 [110/1] via 166.66.6.6, 00:05:04, Serial0/2
O N2 177.77.7.48/30 [110/1] via 166.66.6.6, 00:05:04, Serial0/2
O N2 177.77.7.0/28 [110/1] via 166.66.6.6, 00:05:04, Serial0/2
166.66.0.0/16 is variably subnetted, 5 subnets, 3 masks
C 166.66.6.128/28 is directly connected, Loopback1
O IA 166.66.6.64/26 [110/75] via 166.66.6.6, 00:13:07, Serial0/2
O IA 166.66.6.0/30 [110/74] via 166.66.6.6, 00:13:07, Serial0/2
C 166.66.6.4/30 is directly connected, Serial0/2
O IA 166.66.6.16/28 [110/65] via 166.66.6.6, 00:13:07, Serial0/2
R2#
R2# exit


5
R3#sh ru
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
enable secret 5 $1$8FG9$WMlRaCBvRGuYh3Bu9LfqW.
!
!
!
!
!
ip subnet-zero
ip host R7 188.88.8.69
ip host R1 166.66.6.81
ip host R6 188.88.8.1
ip host R5 177.77.7.65
ip host R4 177.77.7.1
ip host R2 166.66.6.129
!
!
!

!
process-max-time 200
!
interface Loopback0
ip address 166.66.6.17 255.255.255.240
no ip directed-broadcast
ip ospf network point-to-point
!
interface Loopback1
ip address 222.22.2.3 255.255.255.0
no ip directed-broadcast
!
interface Ethernet0/0
no ip address
no ip directed-broadcast
!
interface Serial0/0
no ip address
no ip directed-broadcast
no ip mroute-cache
shutdown
no fair-queue
!
interface Ethernet0/1
description CONNECT TO ROUTER R1
ip address 166.66.6.2 255.255.255.252
no ip directed-broadcast
ip ospf authentication-key teamwork
!
interface Serial0/1

no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/2
description CONNECT TO ROUTER R2
ip address 166.66.6.6 255.255.255.252
no ip directed-broadcast
ip ospf authentication-key welldone
!
interface Serial0/3
description CONNECT TO ROUTER R4
ip address 1.1.1.1 255.255.255.252
no ip directed-broadcast
!
router ospf 1
redistribute bgp 100 subnets
network 166.66.6.0 0.0.0.3 area 0
network 166.66.6.4 0.0.0.3 area 1
network 166.66.6.16 0.0.0.15 area 0
area 0 authentication
area 0 range 166.66.6.64 255.255.255.192
area 1 authentication
area 1 nssa
!
router bgp 100
no synchronization
bgp always-compare-med
network 1.1.1.0 mask 255.255.255.252
redistribute ospf 1

neighbor 1.1.1.2 remote-as 200
neighbor 1.1.1.2 route-map R3 in
neighbor 166.66.6.5 remote-as 100
!
ip classless
no ip http server
!

×