cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2956
Views
36
Helpful
15
Replies

Advertising smaller IP address with eBGP and reach the internet.

ossniper
Level 1
Level 1

Hello.

 

Please, I really need help as I am trying to sort out an issue at work.

I am working for a startup company and just acquired a /22 Public iP address. I have 2 Upstream ISP and one downstream customer connection via ebgp.

I decided to advertise the /22 using null0 and divide the iP address space into /23 for load balancing between both ISP using a static route.

The problem I am having is once I configure /30 or /29 on the router interface and test with my laptop I can't reach the internet but can reach the router via icmp. but the /24 can access the internet.


my config: e.g

Public IP Address: 102.100.0.0/22


ip route 102.100.0.0 255.255.252.0 Null0
ip route 102.100.0.0 255.255.254.0 100.100.10.1
ip route 102.100.2.0 255.255.254.0 200.200.20.1

 

ip prefix-list FIRSTBLOCK seq 10 permit 102.100.0.0/24
ip prefix-list FIRSTBLOCK seq 10 permit 102.100.1.0/24

ip prefix-list 2NDBLOCK seq 5 permit 102.100.2.0/30
ip prefix-list 2NDBLOCK seq 10 permit 102.100.3.0/24


router bgp 65000
bgp router-id 10.10.10.10
bgp log-neighbor-changes
neighbor 100.100.10.1 remote-as 65001
neighbor 200.200.20.1 remote-as 65002
neighbor 102.100.0.2 remote-as 65003
!
address-family ipv4
network 102.100.0.0.0 mask 255.255.252.0
network 102.100.0.0 mask 255.255.255.0
network 102.100.1.0 mask 255.255.255.0
network 102.100.0.0 mask 255.255.254.0 /23
network 102.100.2.0 mask 255.255.254.0 /23
network 102.100.2.0 mask 255.255.255.252 /30
network 102.100.3.0 mask 255.255.255.0
neighbor 100.100.10.1 activate
neighbor 100.100.10.1 prefix-list FIRSTBLOCK out
neighbor 200.200.20.1 activate
neighbor 200.200.20.1 prefix-list 2NDBLOCK out
neighbor 102.100.0.2 activate
neighbor 102.100.0.2 prefix-list default out


interface GigabitEthernet0/0/0
description ***ISP-2***
ip address 100.100.10.2 255.255.255.248
ip nat outside
negotiation auto
end


interface GigabitEthernet0/0/4
description ***ISP-1***
ip address 200.200.20.2 255.255.255.254
ip nat outside
negotiation auto
end


interface GigabitEthernet0/0/5.999
description customer 1
encapsulation dot1Q 999
ip address 102.100.0.2 255.255.255.0


!!!!
interface GigabitEthernet0/2/0
description **TESTIN TO PC**
ip address 102.100.2.2 255.255.255.252
negotiation auto
end

 

I will appreciate all advise, insight and feedback, please.

 

Thanks and Best Regards,

 

 

15 Replies 15

*EdgeRouter-ISP1 eBGP 100.100.10.0
1- no need static since the both peer direct connect
2-advertise the whole public IP using route null0 with high AD
*EdgeRouter-ISP2 eBGP 200.200.20.0
1- no need static since the both peer direct connect
2-advertise the whole public IP using route null0 with high AD
*EdgeRouter-IntenalRouter
1-publicIP must
A-connect both router
B-Using the other PublicIP for access Server form internet ....etc.
2-InternalRouter must access internet via default router toward EdgeRouter.


 

Review Cisco Networking for a $25 gift card