PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:bgp:bgp:maximum-prefix:maximum-prefix

This is an old revision of the document!


BGP: maximum-prefix

Topology

IP

Project name: ccna-bgp31-maximum-prefix

  • R1
enable
configure terminal
!
hostname R1
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
exit
!
interface Loopback 1
ip address 100.10.1.1 255.255.255.0
no shutdown
exit
interface Loopback 2
ip address 100.10.2.1 255.255.255.0
no shutdown
exit
interface Loopback 3
ip address 100.10.3.1 255.255.255.0
no shutdown
exit
interface Loopback 4
ip address 100.10.4.1 255.255.255.0
no shutdown
exit
interface Loopback 5
ip address 100.10.5.1 255.255.255.0
no shutdown
exit
interface Loopback 6
ip address 100.10.6.1 255.255.255.0
no shutdown
exit
interface Loopback 7
ip address 100.10.7.1 255.255.255.0
no shutdown
exit
interface Loopback 8
ip address 100.10.8.1 255.255.255.0
no shutdown
exit
interface Loopback 9
ip address 100.10.9.1 255.255.255.0
no shutdown
exit
interface Loopback 10
ip address 100.10.10.1 255.255.255.0
no shutdown
exit
interface Loopback 11
ip address 100.10.11.1 255.255.255.0
no shutdown
exit
interface Loopback 12
ip address 100.10.12.1 255.255.255.0
no shutdown
exit
interface Loopback 13
ip address 100.10.13.1 255.255.255.0
no shutdown
exit
interface Loopback 14
ip address 100.10.14.1 255.255.255.0
no shutdown
exit
interface Loopback 15
ip address 100.10.15.1 255.255.255.0
no shutdown
exit
interface Loopback 16
ip address 100.10.16.1 255.255.255.0
no shutdown
exit
interface Loopback 17
ip address 100.10.17.1 255.255.255.0
no shutdown
exit
interface Loopback 18
ip address 100.10.18.1 255.255.255.0
no shutdown
exit
interface Loopback 19
ip address 100.10.19.1 255.255.255.0
no shutdown
exit
interface Loopback 20
ip address 100.10.20.1 255.255.255.0
no shutdown
exit
interface GigabitEthernet 0/0
ip address 100.1.2.1 255.255.255.0
no shutdown
exit
!
end
write
  • R2
enable
configure terminal
!
hostname R2
no ip domain-lookup
line console 0
exec-timeout 0 0
logging synchronous
exit
!
interface Loopback 1
ip address 100.20.1.2 255.255.255.0
no shutdown
exit
interface GigabitEthernet 0/0
ip address 100.1.2.2 255.255.255.0
no shutdown
exit
!
end
write

Basic BGP Configuration

  • R1
configure terminal
!
router bgp 10
network 100.10.1.0 mask 255.255.255.0
neighbor 100.1.2.2 remote-as 20
exit
!
end
  • R2
configure terminal
!
router bgp 20
network 100.20.1.0 mask 255.255.255.0
neighbor 100.1.2.1 remote-as 10
exit
!
end

maximum-prefix Configuration

  • R1
configure terminal
!
router bgp 10
network 100.10.1.0 mask 255.255.255.0
network 100.10.2.0 mask 255.255.255.0
network 100.10.3.0 mask 255.255.255.0
network 100.10.4.0 mask 255.255.255.0
network 100.10.5.0 mask 255.255.255.0
network 100.10.6.0 mask 255.255.255.0
network 100.10.7.0 mask 255.255.255.0
network 100.10.8.0 mask 255.255.255.0
network 100.10.9.0 mask 255.255.255.0
network 100.10.10.0 mask 255.255.255.0
network 100.10.11.0 mask 255.255.255.0
network 100.10.12.0 mask 255.255.255.0
network 100.10.13.0 mask 255.255.255.0
network 100.10.14.0 mask 255.255.255.0
network 100.10.15.0 mask 255.255.255.0
network 100.10.16.0 mask 255.255.255.0
network 100.10.17.0 mask 255.255.255.0
network 100.10.18.0 mask 255.255.255.0
network 100.10.19.0 mask 255.255.255.0
network 100.10.20.0 mask 255.255.255.0
exit
!
end
  • R2 (Pattern 1)
configure terminal
!
router bgp 20
neighbor 100.1.2.1 maximum-prefix 10
exit
!
end
  • R2 (Pattern 2)
configure terminal
!
router bgp 20
neighbor 100.1.2.1 maximum-prefix 10 50
exit
!
end
  • R2 (Pattern 3)
configure terminal
!
router bgp 20
neighbor 100.1.2.1 maximum-prefix 19 warning-only
exit
!
end
  • R2 (Pattern 4)
configure terminal
!
router bgp 20
neighbor 100.1.2.1 maximum-prefix 19 restart 3
exit
!
end

Verification

References

tech/network/cisco/bgp/bgp/maximum-prefix/maximum-prefix.1550410330.txt.gz · Last modified: 2019/02/17 22:32 by wnoguchi