Juniper bgp configuration
1.EBGP configuration
Set protocols bgp group ebgptest type external
Set protocols bgp group ebgptest local-address x.x.x.x
Set protocols bgp group ebgptest neighbor x.x.x.x multihop ttl 2
Set protocols bgp group ebgptest neighbor x.x.x.x peer-as 64430
Set routing-options autonomous-system 65530
Set routing-options router-id x.x.x.x
2.IBGP configuration
Set protocols bgp group ibgptest type internal
Set protocols bgp group ibgptest local-address x.x.x.x
Set protocols bgp group ibgptest neighbor x.x.x.x
Set routing-options autonomous-system 65530
Set routing-options router-id x.x.x.x
The following command imports a static or dynamic route into a BGP route
Set protocols bgp group ibgptest export static-to-bgp
Set policy-options policy-statement static-to-bgp term 1 from protocol static
Set policy-options policy-statement static-to-bgp term 1 from protocol ospf
Set policy-options policy-statement static-to-bgp term 1 then accept