Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add_workflow_for_techpubs
AUTH1UserResourceIdentifier{userKey=8a00a0c87a8bc654017a90dcbbab0002, userName='null'}
JIRAIDAUTHTP-548
REV5UserResourceIdentifier{userKey=8a00a0c85f4199b1015f7ea6e836000d, userName='null'}
REV6UserResourceIdentifier{userKey=8a00a0c85f4199b1015f7ea6e836000d, userName='null'}
REV3UserResourceIdentifier{userKey=8a00a0c866dc3dee0166e544fde30008, userName='null'}
REV1UserResourceIdentifier{userKey=8a00a0c86d32712b016d406f77af0008, userName='null'}


The 

Spacevars
0product2
supports the use of BGP for connections between complex networks.

BGP is maintained and configured via the CLI only. The BGP on 

Spacevars
0product2
should only be implemented by network administrators comfortable with configuring the 
Spacevars
0product2
via CLI and with those who are experienced in working with network service providers to establish connectivity.

This document only covers activating and accessing the BGP process. It is not meant as a full reference for the configuration and operation of BGP. The 

Spacevars
0product2
supports most standard BGP functions such as configuring local preference, setting weights, and adjusting as-paths.


Complete the following steps to enable, connect, and configure the BGP daemon:

  1. Activate the BGP process. At the command prompt (#), enter the following command:
Code Block
config_routing --bgp --enable

 The 

Spacevars
0product2
will enable the BGP daemon and reconfigure other network processes to send and receive routes to the BGP process. The 
Spacevars
0product2
 will not forward traffic during this startup routine.

        2. To start configuring BGP, access the BGP process. At the command prompt (#), complete the following steps:

                1. Enter the following command:

Code Block
config_routing --bgp --connect

                    You are prompted for the BGP password.

                 2. Enter the default password: bgp

                     The BGP console (BGP>) is displayed.

        3. At the BGP console (BGP>), enter the following command:

Code Block
enable

            The BGP privileged mode console (BGP#) is displayed. At this point, BGP can be configured using commands similar to other routers that run BGP.

        4. At the BGP privileged mode console (BGP#), enter the following command:

Code Block
config terminal

              The BGP daemon is now in BGP terminal configuration mode. The BGP terminal configuration mode console (BGP(config)#) is displayed.


          5. At the BGP terminal configuration mode console (BGP(config)#), add an Autonomous System (AS):

Code Block
router bgp <AS>


Note

The AS number is typically given by the network service provider.

     The BGP daemon is now in router configuration mode. The router configuration console (BGP(config-router)#) is displayed.

     

        6. From here, the BGP routing configuration can be constructed using commands typical to other industry routers. Following is a basic example:

Code Block
BGP(config-router)# bgp router-id <WAN-IP>
neighbor <peer-IP> remote-as <peer-AS>
neighbor <peer-IP> activate
network <LAN network> mask <LAN network mask>
neighbor <peer-IP> remote-as <peer-AS>

     

         7. When finished configuring BGP, the configuration is saved with two steps. First issue the command:

Code Block
wr mem

              This writes the configuration to the 

Spacevars
0product2
file /etc/config/bgpd.conf.

          8. Next exit the BGP process by typing the command exit until you are returned to the 

Spacevars
0product2
command line. Once you reach the 
Spacevars
0product2
command line, issue the command:

Code Block
cfg_commit

               This saves the contents of /etc/config/bgpd.conf to flash on the

Spacevars
0product2
.



        By default, the BGP process checks the Linux table at startup time for routes to advertise. This may create an undesired condition where the advertise routes are out of sync with the local routes if the local routing table changes for reasons such as LAN failure or a change in received routes from a local routing process such as OSPF. To avoid this situation, the below command should be added to the BGP routing configuration.

Code Block
bgp network import-check

 Further, if LAN VLAN interfaces are in use, then execute the following command from the 

Spacevars
0product2
CLI:

Code Block
enable_monitor_vlan on

This enables the 

Spacevars
0product2
to monitor the LAN switch ports and update BGP as required should a VLAN become no longer accessible.