cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1803
Views
25
Helpful
34
Replies

single router doual bgp 2921 series isuue

kazimjhon
Level 1
Level 1

hello

I have just configured bgp with two isp on a single router and i have 2 public /24 prefixes and i want to route one prefix on isp-1 and the 2nd to isp-2. Now i have three issues

1} no maximum-path command found in my router ( Is it must for this configuration )

2) Browsing issue some websites open and some in  buffering mode

3) Both prefixes Traffic goes isp-1 and when isp-1 down then shifted to isp-2

Below is the router version and configuration

R1#show version
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.4(3)M1, REL
EASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Sat 25-Oct-14 03:34 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)

KhybeNet-R1 uptime is 4 weeks, 4 days, 13 hours, 53 minutes
System returned to ROM by power-on
System image file is "flash0:c2900-universalk9-mz.SPA.154-3.M1.bin"
Last reload type: Normal Reload
Last reload reason: power-on

 

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco CISCO2921/K9 (revision 1.0) with 487424K/36864K bytes of memory.
Processor board ID FTX1803AL6G
3 Gigabit Ethernet interfaces
1 terminal line
DRAM configuration is 64 bits wide with parity enabled.
255K bytes of non-volatile configuration memory.
250880K bytes of ATA System CompactFlash 0 (Read/Write)


License Info:

License UDI:

-------------------------------------------------
Device# PID SN
-------------------------------------------------
*1 CISCO2921/K9 FTX1803AL6G

 

Technology Package License Information for Module:'c2900'

------------------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------
ipbase ipbasek9 Permanent ipbasek9
security None None None
uc None None None
data datak9 RightToUse datak9
NtwkEss None None None
CollabPro None None None

Configuration register is 0x2102


Building configuration...

Current configuration : 7305 bytes
!
! Last configuration change at 21:51:55 GMT Mon Aug 15 2022
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname KhybeNet-R1
!
boot-start-marker
boot-end-marker
!
!
no logging console
no logging monitor

!
aaa new-model
!
!
!
!
!
!
!
aaa session-id common
clock timezone GMT 5 0
!
!
!
!
!
!
!
!
!
!
ip domain name
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
!
cts logging verbose
!
!
license udi pid CISCO2921/K9 sn FTX1803AL6G
license boot module c2900 technology-package datak9
!
!

!
redundancy
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.2 255.255.255.252
description ISP-1
duplex full
speed 1000
no cdp enable
!
interface GigabitEthernet0/1
description LAN
no ip address
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1.1
encapsulation dot1Q 100
ip address 103.217.136.1 255.255.255.0
!
interface GigabitEthernet0/1.2
encapsulation dot1Q 101
!
interface GigabitEthernet0/1.3
encapsulation dot1Q 102
ip address 103.157.36.1 255.255.255.0

interface GigabitEthernet0/2
description ISP-2
ip address 192.168.2.2 255.255.255.252
shutdown
duplex auto
speed auto
!
!
router bgp 135384
bgp log-neighbor-changes
neighbor 192.168.2.1 remote-as 38264
neighbor 192.168.2.1 description BGP With ISP-2
neighbor 192.168.1.1 remote-as 17557
neighbor 192.168.1.1 description BGP With ISP-1
!
address-family ipv4
network 103.157.36.0 mask 255.255.255.0
network 103.217.136.0 mask 255.255.255.0
network 192.168.2.0 mask 255.255.255.252
network 192.168.1.0 mask 255.255.255.252
neighbor 192.168.2.1 activate
neighbor 192.168.2.1 advertise-map ADVERTISED-ISP2 non-exist-map NON-EXIT-I
SP2
neighbor 192.168.2.1 soft-reconfiguration inbound
neighbor 192.168.2.1 filter-list 1 out
neighbor 192.168.1.1 activate
neighbor 192.168.1.1 advertise-map ADVERTISED-ISP1 non-exist-map NON-EXIT-
ISP1
neighbor 192.168.1.1 soft-reconfiguration inbound
neighbor 192.168.1.1 filter-list 1 out
exit-address-family
!
ip forward-protocol nd
!
ip as-path access-list 1 permit ^$

no ip http server
ip http authentication aaa
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip route 0.0.0.0 0.0.0.0 192.168.2.1
ip route 103.157.36.0 255.255.255.0 Null0
ip route 103.217.136.0 255.255.255.0 Null0

!
!
route-map NON-EXIT-ISP1 permit 10
match ip address 30
!
route-map NON-EXIT-ISP2 permit 10
match ip address 50
!
route-map ADVERTISED-ISP1 permit 10
match ip address 40
!
route-map ADVERTISED-ISP2 permit 10
match ip address 20
!
!

access-list 20 permit 103.217.136.0 0.0.0.255
access-list 30 permit 192.168.2.0 0.0.0.3
access-list 40 permit 103.157.36.0 0.0.0.255
access-list 50 permit 192.168.1.0 0.0.0.3

 

34 Replies 34

You are so so welcome,

Only ont thing more,

If you not receive defualt route from both ISP then you need to config default route for failover of pbr.

Good luck freind 

Thanks for your help and time

We are receiving default routes from both isp 

One issue is pending. I have only one LAN port and i am using Inter Vlan routing on that. so what will be the configuration of my LAN side beacuase you mentioned ( ip policy route-map 158OUT ) and ( ip policy route-map 216OUT) on my lan interfaces.

Below is my InterVLAN Routing configuration

interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1.1
encapsulation dot1Q 100
ip address 103.216.135.1 255.255.255.240
!
interface GigabitEthernet0/1.2
encapsulation dot1Q 101
ip address 103.158.35.1 255.255.255.240
!
interface GigabitEthernet0/1.3
encapsulation dot1Q 102
ip address 103.216.135.17 255.255.255.240
!
interface GigabitEthernet0/1.4
encapsulation dot1Q 103
ip address 103.216.135.105 255.255.255.248
op
!
interface GigabitEthernet0/1.5
encapsulation dot1Q 104
ip address 103.216.135.249 255.255.255.248
!
interface GigabitEthernet0/1.6
encapsulation dot1Q 105
ip address 103.158.35.209 255.255.255.240
!
interface GigabitEthernet0/1.7
encapsulation dot1Q 106
ip address 103.216.135.177 255.255.255.240

Yes you can use PBR under subinterface. 

kindly Edith the previous lab and add PBR on this because i have one LAN interface (subented and sub interface configraton with intervlan routing)