www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ROUTE / Module 6 / Labs – BGP Path Selection and Manipulation – Device Configurations

Labs – BGP Path Selection and Manipulation – Device Configurations

R1#show running-config
Building configuration…

Current configuration : 2458 bytes
!
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 logging console
enable secret 5 $1$ZHZP$Bf0gaK4Ei7zfUol9D8zpV/
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 190.2.2.1 255.255.255.0 secondary
ip address 190.3.3.1 255.255.255.0 secondary
ip address 190.4.4.1 255.255.255.0 secondary
ip address 190.1.1.1 255.255.255.0
ip ospf 1 area 0 secondaries none
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.1 255.255.255.252
no fair-queue
!
interface Serial0/1
ip address 10.0.0.5 255.255.255.252
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
!
router bgp 254
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
redistribute connected route-map CONNECTED
neighbor 4.4.4.4 remote-as 254
neighbor 4.4.4.4 update-source Loopback0
neighbor 10.0.0.2 remote-as 5
neighbor 10.0.0.2 route-map AS-PATH-PREPEND out
neighbor 10.0.0.6 remote-as 5
neighbor 10.0.0.6 route-map AS-PATH-PREPEND out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-2 seq 5 permit 190.2.2.0/24
!
ip prefix-list NET-3 seq 5 permit 190.3.3.0/24
!
ip prefix-list NET-4 seq 5 permit 190.4.4.0/24
!
route-map AS-PATH-PREPEND permit 10
match ip address prefix-list NET-2
set as-path prepend 222
!
route-map AS-PATH-PREPEND permit 20
match ip address prefix-list NET-3
set as-path prepend 333
!
route-map AS-PATH-PREPEND permit 30
match ip address prefix-list NET-4
set as-path prepend 444
!
route-map CONNECTED permit 10
match ip address prefix-list NET-2
set local-preference 222
set origin igp
!
route-map CONNECTED permit 20
match ip address prefix-list NET-3
set local-preference 333
set origin igp
!
route-map CONNECTED permit 30
match ip address prefix-list NET-4
set local-preference 444
set origin igp
!
!
!
control-plane
!
!
!
voice-port 1/0/0
!
voice-port 1/0/1
!
voice-port 1/1/0
!
voice-port 1/1/1
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
privilege level 15
password cisco
login
!
!
end

R1#

 

R2#show running-config
Building configuration…

Current configuration : 1511 bytes
!
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 logging console
enable secret 5 $1$FsT/$/viPNrSsewWFUCy/QbD5l0
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 150.2.2.2 255.255.255.0
loopback
half-duplex
no keepalive
!
interface Serial0/0
ip address 10.0.0.2 255.255.255.252
clock rate 2000000
no fair-queue
!
interface FastEthernet0/1
no ip address
shutdown
half-duplex
!
interface Serial0/1
ip address 10.0.0.9 255.255.255.252
clock rate 2000000
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 10.0.0.8 0.0.0.3
no auto-summary
!
router bgp 5
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 150.2.2.0 mask 255.255.255.0
neighbor 3.3.3.3 remote-as 5
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 10.0.0.1 remote-as 254
neighbor 10.0.0.1 route-map AS-444-INBOUND in
no auto-summary
!
ip http server
ip forward-protocol nd
!
!
ip as-path access-list 1 permit _444$
!
!
route-map AS-444-INBOUND permit 10
match as-path 1
set local-preference 1
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
line aux 0
line vty 0 4
privilege level 15
password cisco
login
!
!
end

R2#

 

R3#show running-config
Building configuration…

Current configuration : 1926 bytes
!
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 logging console
enable secret 5 $1$mOsw$hNy9.KzOvGX2XmLabNBOT/
!
no aaa new-model
!
!
ip cef
no ip domain lookup
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 150.3.3.3 255.255.255.0
loopback
half-duplex
no keepalive
!
interface Serial0/0
ip address 10.0.0.13 255.255.255.252
no fair-queue
!
interface FastEthernet0/1
no ip address
shutdown
half-duplex
!
interface Serial0/1
ip address 10.0.0.6 255.255.255.252
clock rate 2000000
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Serial1/0
no ip address
shutdown
!
interface Serial1/1
ip address 10.0.0.10 255.255.255.252
!
router eigrp 1
network 3.3.3.3 0.0.0.0
network 10.0.0.8 0.0.0.3
no auto-summary
!
router bgp 5
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 150.3.3.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 5
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 next-hop-self
neighbor 10.0.0.5 remote-as 254
neighbor 10.0.0.5 route-map AS-333-INBOUND in
neighbor 10.0.0.14 remote-as 254
neighbor 10.0.0.14 route-map AS-222-INBOUND in
no auto-summary
!
ip http server
ip forward-protocol nd
!
!
ip as-path access-list 1 permit _222$
ip as-path access-list 2 permit _333$
!
!
route-map AS-333-INBOUND permit 10
match as-path 2
set local-preference 200
!
route-map AS-222-INBOUND permit 10
match as-path 1
set local-preference 200
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
line aux 0
line vty 0 4
privilege level 15
password cisco
login
!
!
end

R3#

 

 

R4#show running-config
Building configuration…

Current configuration : 2436 bytes
!
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 logging console
enable secret 5 $1$M/kd$Eb360Ygk4rDpv7JtJeRbP.
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip ospf 4 area 0
!
interface FastEthernet0/0
ip address 190.2.2.4 255.255.255.0 secondary
ip address 190.3.3.4 255.255.255.0 secondary
ip address 190.4.4.4 255.255.255.0 secondary
ip address 190.1.1.4 255.255.255.0
ip ospf priority 0
ip ospf 4 area 0 secondaries none
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.14 255.255.255.252
no fair-queue
clock rate 2000000
!
interface Serial0/1
no ip address
shutdown
!
interface Serial0/2
no ip address
shutdown
!
router ospf 4
router-id 4.4.4.4
log-adjacency-changes
!
router bgp 254
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
redistribute connected route-map CONNECTED
neighbor 1.1.1.1 remote-as 254
neighbor 1.1.1.1 update-source Loopback0
neighbor 10.0.0.13 remote-as 5
neighbor 10.0.0.13 route-map AS-PATH-PREPEND out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-2 seq 5 permit 190.2.2.0/24
!
ip prefix-list NET-3 seq 5 permit 190.3.3.0/24
!
ip prefix-list NET-4 seq 5 permit 190.4.4.0/24
!
route-map AS-PATH-PREPEND permit 10
match ip address prefix-list NET-2
set as-path prepend 222
!
route-map AS-PATH-PREPEND permit 20
match ip address prefix-list NET-3
set as-path prepend 333
!
route-map AS-PATH-PREPEND permit 30
match ip address prefix-list NET-4
set as-path prepend 444
!
route-map CONNECTED permit 10
match ip address prefix-list NET-2
set local-preference 222
set origin igp
!
route-map CONNECTED permit 20
match ip address prefix-list NET-3
set local-preference 333
set origin igp
!
route-map CONNECTED permit 30
match ip address prefix-list NET-4
set local-preference 444
set origin igp
!
!
!
control-plane
!
!
!
voice-port 1/0/0
!
voice-port 1/0/1
!
voice-port 1/1/0
!
voice-port 1/1/1
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
privilege level 15
password cisco
login
!
!
end

R4#

 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.