Page 1 of 1

BGP + adv IP

Posted: 13 Jan 2016 10:47
by theday
Hello

How can i create eBGP and Adv List IP ?

My configuration BGP like below :

"
#--------------------------------------------------
echo "Router (Network Side) Configuration"
#--------------------------------------------------
router
interface "INTL"
address 118.97.218.114/30
port 1/5/1
no shutdown
exit
interface "LACP"
address 118.87.218.110/30
port lag-1
no shutdown
exit
interface "LAN"
address 210.57.215.2/30
port 1/5/2
no shutdown
exit
interface "MGT"
address 10.0.107.253/24
port 1/1/3
no shutdown
exit
interface "system"
no shutdown
exit
autonomous-system 38142
router-id 210.57.215.1
#--------------------------------------------------
echo "Router (Service Side) Configuration"
#--------------------------------------------------
router
#--------------------------------------------------
echo "BGP Configuration"
#--------------------------------------------------
bgp
advertise-external ipv4 ipv6
group "bgp"
description "EXternal-BGP"
family ipv4 vpn-ipv4 mvpn-ipv4
connect-retry 5
type external
neighbor 118.97.218.109
peer-as 7713
exit
neighbor 118.97.218.113
peer-as 7713
exit
exit
no shutdown
exit
exit


exit all
"

and i have list IP to adv below :

210.57.208.0/24
210.57.209.0/24
210.57.210.0/24
.............
210.57.223.0/24

How can i make list IP above to adv ?


Happy new year :)

Re: BGP + adv IP

Posted: 14 Jan 2016 03:09
by Stoffen
Hi.
I assume these prefixes are in the routingtable already.

You could use either ones of the statements in the prefix-list, depending on what you want to permit

Code: Select all

*A:SR01>config>router>policy-options# info 
----------------------------------------------
            prefix-list "eBGP"
                prefix 210.57.208.0/20 through 24
                prefix 210.57.208.0/20 prefix-length-range 24-24
            exit
            policy-statement "eBGP_export"
                entry 10
                    from
                        prefix-list "eBGP"
                    exit
                    to
                        protocol bgp
                    exit
                exit
            exit

*A:SR01>config>router>policy-options# \configure router bgp group "eBGP" export "eBGP_export"


Re: BGP + adv IP

Posted: 14 Jan 2016 03:47
by theday
Hi Stoffen,

The prefix-list wasnt not on routing table, the prefixlist on other router, i just want to adv that IP,
can uhelp ?

Thanks

Re: BGP + adv IP

Posted: 18 Jan 2016 04:01
by Stoffen
Hi.
Im not sure what you want to accomplish here.

Are the prefixes you want to advertise reachable from your eBGP speaker?

You could add the prefixes as static routes with a direct or indirect next-hop, and do a export of those on the BGP speaker.