IzzyMenu.com

BGP °ü·Ã ÀÚ·á¹× ÀÚü °­ÀÇ ÀÚ·á

 ·Î±×ÀÎ  È¸¿ø°¡ÀÔ

BGP Traffic Á¦¾î ¼³Á¤ ¿¹Á¦
ANTON  2011-03-12 22:00:43, Á¶È¸ : 586, Ãßõ : 98



R1#show run
Building configuration...

Current configuration : 1524 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$fPUY$pBHUNCt8rLYJ1sC4jkDbt1
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Ethernet0/0
ip address 14.14.1.1 255.255.255.0
half-duplex
!
interface Serial0/0
ip address 150.14.1.1 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 150.14.1.2 103 broadcast
frame-relay map ip 150.14.1.3 103 broadcast
no frame-relay inverse-arp
!
interface Serial0/1
ip address 14.14.0.1 255.255.255.0
clockrate 64000
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 14.14.0.1 0.0.0.0 area 0
network 14.14.1.1 0.0.0.0 area 0
network 150.14.1.1 0.0.0.0 area 0
!
router bgp 14
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
neighbor CCNP peer-group
neighbor CCNP remote-as 14
neighbor CCNP update-source Loopback0
neighbor CCNP route-reflector-client
neighbor 2.2.2.2 peer-group CCNP
neighbor 3.3.3.3 peer-group CCNP
neighbor 150.14.1.3 remote-as 254
neighbor 150.14.1.3 ebgp-multihop 5
no auto-summary



R3#show run
Building configuration...

Current configuration : 1591 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
logging queue-limit 100
enable password cisco
!
ip subnet-zero
no ip domain lookup
ip host BB2 6.6.6.6
ip host BB1 5.5.5.5
ip host R4 4.4.4.4
ip host R3 3.3.3.3
ip host R2 2.2.2.2
ip host R1 1.1.1.1
!
!
!        
!
hub ether 0 1
link-test
auto-polarity
!
hub ether 0 2
link-test
auto-polarity
!
hub ether 0 3
link-test
auto-polarity
!
hub ether 0 4
link-test
auto-polarity
!
hub ether 0 5
link-test
auto-polarity
!
hub ether 0 6
link-test
auto-polarity
!
hub ether 0 7
link-test
auto-polarity
!
hub ether 0 8
link-test
auto-polarity
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Ethernet0
ip address 14.14.1.3 255.255.255.0
!
interface Serial0
ip address 150.14.2.1 255.255.255.0
ip ospf priority 0
shutdown
!
interface Serial1
ip address 14.14.3.3 255.255.255.0
clockrate 64000
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 14.14.1.3 0.0.0.0 area 0
network 14.14.3.3 0.0.0.0 area 0
network 150.14.2.1 0.0.0.0 area 0
!
router bgp 14
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 14
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 4.4.4.4 remote-as 15
neighbor 4.4.4.4 ebgp-multihop 3
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
ip http server
ip classless
!



hostname R4
!
logging queue-limit 100
enable password cisco
!
ip subnet-zero
no ip domain lookup
ip host BB2 6.6.6.6
ip host BB1 5.5.5.5
ip host R4 4.4.4.4
ip host R3 3.3.3.3
ip host R2 2.2.2.2
ip host R1 1.1.1.1
!
!
!        
!        
hub ether 0 1
link-test
auto-polarity
!
hub ether 0 2
link-test
auto-polarity
!
hub ether 0 3
link-test
auto-polarity
!
hub ether 0 4
link-test
auto-polarity
!
hub ether 0 5
link-test
auto-polarity
!
hub ether 0 6
link-test
auto-polarity
!        
hub ether 0 7
link-test
auto-polarity
!
hub ether 0 8
link-test
auto-polarity
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Ethernet0
ip address 14.14.2.4 255.255.255.0
!
interface Serial0
ip address 150.14.2.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 150.14.2.1 213 broadcast
frame-relay map ip 150.14.2.3 213 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 14.14.3.4 255.255.255.0
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 14.14.2.4 0.0.0.0 area 0
network 14.14.3.4 0.0.0.0 area 0
network 150.14.2.2 0.0.0.0 area 0
!
router bgp 15
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 14
neighbor 2.2.2.2 ebgp-multihop 3
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 14
neighbor 3.3.3.3 ebgp-multihop 3
neighbor 3.3.3.3 update-source Loopback0
neighbor 150.14.2.3 remote-as 253
neighbor 150.14.2.3 ebgp-multihop 7
no auto-summary
!
ip http server
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
no login
!
end

R4#show ip bgp
BGP table version is 18, local router ID is 4.4.4.4
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
*> 128.28.1.0/24    150.14.2.3               0             0 253 i
*> 128.28.2.0/24    150.14.2.3               0             0 253 i
*> 128.28.3.0/24    150.14.2.3               0             0 253 i
*> 128.28.4.0/24    150.14.2.3               0             0 253 i
*> 128.28.5.0/24    150.14.2.3               0             0 253 i
*> 197.68.1.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i
*> 197.68.2.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i
*> 197.68.3.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 100 200 254 i
*> 197.68.4.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i
*> 197.68.5.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i


R4(config)#ip prefix-list NET197 seq 20 permit 197.68.2.0/24
R4(config)#ip prefix-list NET197 seq 10 permit 197.68.1.0/24
              route-map SET_ATT_1 permit 10
              match ip address prefix-list NET197
              set local-preference 200
R4(config)#route-map SET_ATT_1 permit 20
R4(config-route-map)#
R4(config-route-map)#
R4(config-route-map)#exit
R4(config)#router bgp 15
           neighbor 3.3.3.3 route-map SET_ATT_1 in      
R4#cle
R4#clear
*Mar  1 05:13:57.126: %SYS-5-CONFIG_I: Configured from console by console
R4#clear ip bgp * in
R4#clear ip bgp * out
R4#show ip bgp
BGP table version is 21, local router ID is 4.4.4.4
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
*> 128.28.1.0/24    150.14.2.3               0             0 253 i
*> 128.28.2.0/24    150.14.2.3               0             0 253 i
*> 128.28.3.0/24    150.14.2.3               0             0 253 i
*> 128.28.4.0/24    150.14.2.3               0             0 253 i
*> 128.28.5.0/24    150.14.2.3               0             0 253 i
*> 197.68.1.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i
*> 197.68.2.0       3.3.3.3                       200      0 14 254 i
*                   2.2.2.2                                0 14 254 i
*> 197.68.3.0       3.3.3.3                                0 14 254 i
*                   2.2.2.2                                0 14 100 200 254 i
*  197.68.4.0       3.3.3.3                                0 14 254 i
*>                  2.2.2.2                                0 14 254 i
*  197.68.5.0       3.3.3.3                                0 14 254 i
*>                  2.2.2.2                                0 14 254 i




hostname BB1
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
ip host R1 1.1.1.1
ip host R2 2.2.2.2
ip host R3 3.3.3.3
ip host R4 4.4.4.4
ip host BB1 5.5.5.5
ip host BB2 6.6.6.6
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 5.5.5.5 255.255.255.0
!
interface Loopback197
ip address 197.68.2.1 255.255.255.0 secondary
ip address 197.68.3.1 255.255.255.0 secondary
ip address 197.68.4.1 255.255.255.0 secondary
ip address 197.68.5.1 255.255.255.0 secondary
ip address 197.68.1.1 255.255.255.0
!
interface Ethernet0/0
no ip address
shutdown
half-duplex
!
interface Serial0/0
ip address 150.14.1.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 150.14.1.1 301 broadcast
frame-relay map ip 150.14.1.2 302 broadcast
no frame-relay inverse-arp
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!        
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
network 5.5.5.5 0.0.0.0 area 0
network 150.14.1.3 0.0.0.0 area 0
neighbor 150.14.1.1
neighbor 150.14.1.2
!
router bgp 254
no synchronization
bgp router-id 5.5.5.5
bgp log-neighbor-changes
network 197.68.1.0
network 197.68.2.0
network 197.68.3.0
network 197.68.4.0
network 197.68.5.0
neighbor 150.14.1.1 remote-as 14
neighbor 150.14.1.1 ebgp-multihop 5
neighbor 150.14.1.2 remote-as 14
neighbor 150.14.1.2 ebgp-multihop 5
no auto-summary
!
ip http server
ip classless
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
no login
!
!
end
BB1#  show ip bgp
BGP table version is 26, local router ID is 5.5.5.5
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
*  128.28.1.0/24    150.14.1.2                          1500 14 15 253 i
*>                  150.14.1.1                          2000 14 15 253 i
*  128.28.2.0/24    150.14.1.2                          1500 14 15 253 i
*>                  150.14.1.1                          2000 14 15 253 i
*  128.28.3.0/24    150.14.1.2                          1500 14 15 253 i
*>                  150.14.1.1                          2000 14 15 253 i
*  128.28.4.0/24    150.14.1.2                          1500 14 15 253 i
*>                  150.14.1.1                          2000 14 15 253 i
*  128.28.5.0/24    150.14.1.2                          1500 14 15 253 i
*>                  150.14.1.1                          2000 14 15 253 i
*> 197.68.1.0       0.0.0.0                  0         32768 i
*> 197.68.2.0       0.0.0.0                  0         32768 i
*> 197.68.3.0       0.0.0.0                  0         32768 i
*> 197.68.4.0       0.0.0.0                  0         32768 i
*> 197.68.5.0       0.0.0.0                  0         32768 i
BB1#
BB1#
BB1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BB1(config)#ro
BB1(config)#router bgp 254
BB1(config-router)#
BB1(config-router)#
BB1(config-router)#no  neighbor 150.14.1.1 weight 2000
BB1(config-router)#no  neighbor 150.14.1.2 weight 1500
BB1(config-router)#
BB1(config-router)#
BB1(config-router)#end
BB1#cle
BB1#clear r
*Mar  1 05:11:33.968: %SYS-5-CONFIG_I: Configured from console by console
BB1#clear ip bgp * in
BB1#clear ip bgp * out
BB1#
BB1#
BB1#show ip bg
BGP table version is 36, local router ID is 5.5.5.5
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
*> 128.28.1.0/24    150.14.1.2                             0 14 15 253 i
*                   150.14.1.1                             0 14 15 253 i
*> 128.28.2.0/24    150.14.1.2                             0 14 15 253 i
*                   150.14.1.1                             0 14 15 253 i
*> 128.28.3.0/24    150.14.1.2                             0 14 15 253 i
*                   150.14.1.1                             0 14 15 253 i
*> 128.28.4.0/24    150.14.1.2                             0 14 15 253 i
*                   150.14.1.1                             0 14 15 253 i
*> 128.28.5.0/24    150.14.1.2                             0 14 15 253 i
*                   150.14.1.1                             0 14 15 253 i
*> 197.68.1.0       0.0.0.0                  0         32768 i
*> 197.68.2.0       0.0.0.0                  0         32768 i
*> 197.68.3.0       0.0.0.0                  0         32768 i
*> 197.68.4.0       0.0.0.0                  0         32768 i
*> 197.68.5.0       0.0.0.0                  0         32768 i



BB2#show run
Building configuration...

Current configuration : 1589 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname BB2
!
logging queue-limit 100
enable password cisco
!
ip subnet-zero
no ip domain lookup
ip host BB2 6.6.6.6
ip host BB1 5.5.5.5
ip host R4 4.4.4.4
ip host R3 3.3.3.3
ip host R2 2.2.2.2
ip host R1 1.1.1.1
!
!
!        
!
interface Loopback0
ip address 6.6.6.6 255.255.255.0
!
interface Loopback128
ip address 128.28.2.1 255.255.255.0 secondary
ip address 128.28.3.1 255.255.255.0 secondary
ip address 128.28.4.1 255.255.255.0 secondary
ip address 128.28.5.1 255.255.255.0 secondary
ip address 128.28.1.1 255.255.255.0
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
ip address 150.14.2.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 150.14.2.1 311 broadcast
frame-relay map ip 150.14.2.2 312 broadcast
no frame-relay inverse-arp
!
interface Serial1
no ip address
shutdown
!
router ospf 1
router-id 6.6.6.6
log-adjacency-changes
network 6.6.6.6 0.0.0.0 area 0
network 150.14.2.3 0.0.0.0 area 0
neighbor 150.14.2.2
!
router bgp 253
no synchronization
bgp router-id 6.6.6.6
bgp log-neighbor-changes
network 128.28.1.0 mask 255.255.255.0
network 128.28.2.0 mask 255.255.255.0
network 128.28.3.0 mask 255.255.255.0
network 128.28.4.0 mask 255.255.255.0
network 128.28.5.0 mask 255.255.255.0
neighbor 150.14.2.2 remote-as 15
neighbor 150.14.2.2 ebgp-multihop 5
no auto-summary
!        
ip http server
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
no login
!
end


  ÃßõÇÏ±â   ¸ñ·Ïº¸±â

Copyright 1999-2024 Zeroboard / skin by zero