Reset Search
 

 

Article

How to configure a BGP router reflector with next-hop-self for iBGP neighbor?

« Go Back

Information

 
TitleHow to configure a BGP router reflector with next-hop-self for iBGP neighbor?
Objective
How to configure a BGP router reflector with next-hop-self for iBGP neighbor?
Environment
  • EXOS all
  • BGP
Procedure
Network Diagram:

User-added image

Router A configuration:

#
# Module vlan configuration.
#
create vlan "link1"
create vlan "lo"
enable loopback-mode vlan lo
configure vlan link1 add ports 1 untagged  
configure vlan link1 ipaddress 192.168.200.1 255.255.255.252
enable ipforwarding vlan link1
configure vlan lo ipaddress 192.168.1.8 255.255.255.255
enable ipforwarding vlan lo


#
# Module bgp configuration.
#
configure bgp AS-number 100
configure bgp routerid 192.168.1.8
create bgp neighbor 192.168.1.6 remote-AS-number 100 multi-hop
configure bgp neighbor 192.168.1.6 source-interface ipaddress 192.168.1.8
enable bgp neighbor 192.168.1.6
enable bgp


#
# Module ospf configuration.
#
configure ospf routerid 192.168.1.8
enable ospf
configure ospf add vlan link1 area 0.0.0.0 link-type point-to-point 
configure ospf add vlan lo area 0.0.0.0 passive


Router B configuration:

Create a route-policy in Router B with the following syntax:

Policy: regrabgp.pol
--------------------------------------------------------------
entry R1 {
if match any {
                          nlri 200.200.200.0/24 exact;
                  } then {
                                next-hop 192.168.1.6;
                              }
}

--------------------------------------------------------------

#
# Module vlan configuration.
#
create vlan "link1"
create vlan "link2"
create vlan "lo"
enable loopback-mode vlan lo
configure vlan link1 add ports 1 untagged  
configure vlan link2 add ports 2 untagged  
configure vlan link1 ipaddress 192.168.200.2 255.255.255.252
enable ipforwarding vlan link1
configure vlan link2 ipaddress 192.168.200.5 255.255.255.252
enable ipforwarding vlan link2
configure vlan lo ipaddress 192.168.1.6 255.255.255.255
enable ipforwarding vlan lo


#
# Module bgp configuration.
#
configure bgp AS-number 100
configure bgp routerid 192.168.1.6
create bgp neighbor 192.168.1.4 remote-AS-number 100 multi-hop
configure bgp neighbor 192.168.1.4 source-interface ipaddress 192.168.1.6
enable bgp neighbor 192.168.1.4
create bgp neighbor 192.168.1.8 remote-AS-number 100 multi-hop
configure bgp neighbor 192.168.1.8 route-reflector-client
configure bgp neighbor 192.168.1.8 source-interface ipaddress 192.168.1.6
enable bgp neighbor 192.168.1.8
configure bgp neighbor 192.168.1.8 route-policy out regrabgp
<= This command applies the policy "regrabgp.pol" 
enable bgp

#
# Module ospf configuration.
#
configure ospf routerid 192.168.1.6
enable ospf
configure ospf add vlan link1 area 0.0.0.0 link-type point-to-point 
configure ospf add vlan link2 area 0.0.0.0 link-type point-to-point 
configure ospf add vlan lo area 0.0.0.0 passive


Router C configuration:

#
# Module vlan configuration.
#
create vlan "internet"
enable loopback-mode vlan internet
create vlan "link2"
create vlan "lo"
enable loopback-mode vlan lo
configure vlan link2 add ports 2 untagged  
configure vlan link2 ipaddress 192.168.200.6 255.255.255.252
enable ipforwarding vlan link2
configure vlan lo ipaddress 192.168.1.4 255.255.255.255
enable ipforwarding vlan lo
configure vlan internet ipaddress 200.200.200.1 255.255.255.0


#
# Module bgp configuration.
#
configure bgp AS-number 100
configure bgp routerid 192.168.1.4
configure bgp add network 123.123.123.0/24
create bgp neighbor 192.168.1.6 remote-AS-number 100 multi-hop
configure bgp neighbor 192.168.1.6 source-interface ipaddress 192.168.1.4
enable bgp neighbor 192.168.1.6
enable bgp


#
# Module ospf configuration.
#
configure ospf routerid 192.168.1.4
enable ospf
configure ospf add vlan link2 area 0.0.0.0 link-type point-to-point 
configure ospf add vlan lo area 0.0.0.0 passive
Additional notes
The procedure to create a policy file using the VI Editor can be found in the Article below:
How to create and apply an ACL in EXOS

The HUB thread:
https://community.extremenetworks.com/extreme/topics/next-hop-self-for-update-received-from-ibgp-neighbor

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255