Page 121 / 757 Scroll up to view Page 116 - 120
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
117
DGS-3627:admin#
create bgp aggregate_address 10.0.0.0/8 summary_only
Command: create bgp aggregate_address 10.0.0.0/8 summary_only
Success.
DGS-3627:admin#
delete bgp aggregate_address
Purpose
This command is used to delete an aggregate entry in a Border Gateway Protocol (BGP)
database.
Syntax
delete bgp aggregate_address [<network_address>| all]
Description
This command is used to delete an aggregate entry in a Border Gateway Protocol (BGP)
database.
Parameters
<network_address>
- The IP aggregated network to be deleted.
all
- Used to delete all IP aggregated networks.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an aggregate route for which the network address is 10.0.0.0/8:
DGS-3627:admin#
delete bgp aggregate_address 10.0.0.0/8
Command: delete bgp aggregate_address 10.0.0.0/8
Success.
DGS-3627:admin#
show bgp aggregate_address
Purpose
This command is used to show an aggregate entry in the Border Gateway Protocol (BGP)
database.
Syntax
show bgp aggregate_address {<network_address>]
Description
This command displays the aggregate network address.
Parameters
<network_address>
- The IP aggregated network address.
If a specific network address is not specified, all aggregated addresses will be displayed.
Restrictions
None.
Example usage:
To display an aggregate route of 10.0.0.0/8:
DGS-3627:admin#
show bgp aggregate_address 10.0.0.0/8
Command: show bgp aggregate_address 10.0.0.0/8
Network Address
Options
------------------
----------------------
10.0.0.0/8
summary_only, as_set
Total Aggregate Address Number: 1
DGS-3627:admin#
Page 122 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
118
create bgp network
Purpose
This command is used to specify the network advertised by the Border Gateway Protocol
(BGP).
Syntax
create bgp network <network_address> {route_map <map_name 16>}
Description
BGP networks can be learned from connected routes, from dynamic routing, and from static
route sources.
Parameters
<network_address>
- Represents the local network that BGP will advertise.
route_map
- Specifies the route map to be applied to the advertised networks. If not
specified, all networks are advertised.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To setup network 10.108.0.0/16 to be included in the BGP updates:
DGS-3627:admin#
create bgp network 10.108.0.0/16
Command: create bgp network 10.108.0.0/16
Success.
DGS-3627:admin#
config bgp network
Purpose
This command is used to configure the attributes associated with the network advertised by
the Border Gateway Protocol (BGP).
Syntax
config bgp network <network_address> [route_map <map_name 16> | clear_routemap]
Description
This command changes the BGP attributes associated with the network.
Parameters
<network_address>
- Represents the local network that BGP will advertise.
<map_name 16>
- Specifies the route map applied to the advertised networks.
clear_routemap
- Removes the route map applied to the network if specified this parameter.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To change the network 10.108.0.0/16 to clear a route map:
DGS-3627:admin#
config bgp network 10.108.0.0/16 clear_routemap
Command: config bgp network 10.108.0.0/16 clear_routemap
Success.
DGS-3627:admin#
delete bgp network
Purpose
This command is used to delete the networks advertised by the Border Gateway Protocol
(BGP).
Syntax
delete bgp network [<network_address> | all]
Description
This command is used to delete the networks advertised.
Page 123 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
119
delete bgp network
Parameters
<network_address>
- Represents the local network that BGP will advertise.
all
- Deletes all BGP networks.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete network 10.108.0.0/16 to be advertised in the BGP updates:
DGS-3627:admin#
delete bgp network 10.108.0.0/16
Command: delete bgp network 10.108.0.0/16
Success.
DGS-3627:admin#
show bgp network
Purpose
This command is used to show the networks advertised by the Border Gateway Protocol
(BGP).
Syntax
show bgp network {<network_address>}
Description
This command used to show the networks advertised by BGP.
Parameters
<network_address>
- Represents the local network that BGP will advertise.
If a specific network address is not specified, all network addresses will be displayed.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To show network 10.108.0.0/16 advertised in the BGP updates:
DGS-3627:admin#
show bgp network 10.108.0.0/16
Command: show bgp network 10.108.0.0/16
Network Address
Route Map
-----------------
-------------
10.108.0.0/16
-
Total Network Number:
1
DGS-3627:admin#
config bgp timer
Purpose
This command is used to configure the BGP protocol timer.
Syntax
config bgp timer holdtime <sec 0-65535> keepalive <sec 0-65535>
Description
This command is used to configure the BGP protocol timer.
The hold time needs to be at least three times that of the keepalive time.
If the timer is specified for specific neighbors, then the neighbor specific timer will take effect.
Parameters
holdtime
- The valid values are from 0 to 65535.
The system will declare a peer as dead if a keepalive message is received that is
more than the hold time.
Page 124 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
120
config bgp timer
The default value is 180 seconds.
If the holdtime is set to zero, then the holdtime will never expire.
If the two routers that build a BGP connection have a different hold time, then the
smaller hold time will be used.
If the timer is specified for specific neighbors, then the neighbor specific timer will
take effect.
The hold time needs to be at least three times that of the keepalive timer.
keepalive
- The valid values are from 0 to 65535.
This specifies the interval at which keepalive messages are sent to its peer.
If the keepalive value is set to zero, then the keepalive message will not be sent out.
The default value is 60 seconds.
If the two routers that build a BGP connection have a different keepalive timer, then
the smaller keepalive timer will be used.
If the timer is specified for specific neighbors, then the neighbor specific timer will
take effect.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the BGP hold and keepalive timer:
DGS-3627:admin#
config bgp timer holdtime 360 keepalive 120
Command:4# config bgp timer holdtime 360 keepalive 120
Success.
DGS-3627:admin#
config bgp bestpath
Purpose
This command is used to configure the BGP best path selection related setting.
Syntax
config bgp { always_compare_med [enable | disable]| deterministic_med [enable |
disable] | default_local_preference <uint 0-4294967295>| bestpath { as_path_ignore
[enable | disable] | compare_routerid [enable | disable] | med_confed [enable | disable]
| med_missing_as_worst [enable | disable] | compare_confed_aspath [enable | disable]
}(1)}(1)
Description
MED is a metric assigned to tell the external router how to choose a route. By default, MED is
used to determine the route that is advertised by the same AS.
The BGP deterministic med command can be configured to enforce a deterministic
comparison of the MED values between all the paths received from within the same
Autonomous System
Default local preference
By default, a BGP router will send the default local preference with the routes. It can be
overwritten if the local preference is set by the route map. For the received route, the local
preference received with the route will be used in the best path selection. This local
preference will be overwrite if the local preference is ingress set by the route map.
For the local routes, the default local preference will be used for them in the best path
selection
Best path selection process
The following is the steps that the BGP will use to select the best path among BGP routes:
Prefer the path that has the largest weight.
Page 125 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
121
config bgp bestpath
If the routes have the same weight, use the route with the highest local preference.
If the routes have the same local preference, prefer the route that was originated by BGP on
this router. Originated from network command > from redistribute command> from aggregate
command.
If no route was originated, prefer the route with the shortest AS path.
If all paths are of the same AS length, prefer the route with lowest origin code (IGP < EGP <
INCOMPLETE).
If the origin codes are the same, prefer the path with the lowest Multi Exit Discriminator.
If the MEDs are the same, prefer external paths over internal paths. EBGP>IBGP.
Prefer the path through the closest IGP neighbor.
Prefer the path that was received first (the oldest one).
Prefer the path with the lowest BGP Router ID.
Prefer the routes advertised by the BGP speaker with a lower BGP identifier value.
Prefer the routes advertised by the BGP speaker with a lower peer address.
Parameters
always_compare_med
- Enable or disable the comparison of the Multi Exit Discriminator
(MED) for paths from the neighbors in different Autonomous Systems. By default this setting
is disabled.
deterministic_med
- Enable or disable to enforce the deterministic comparison of the Multi
Exit Discriminator (MED) for paths received from the neighbors within the same Autonomous
System By default this setting is disabled.
default_local_preference
- The default value is 100
as_path_ignore
- If enabled, the BGP process will ignore the AS path in the path selection
process. By default this value is disabled.
compare_routerid
- If enabled, the BGP process will include the router ID in the path
selection process. Similar routes are compared and the route with the lowest router ID is
selected. By default this value is disabled.
med_confed
- If enabled, the BGP process will compare the MED for the routes that are
received from confederation peers. For routes that have an external AS in the path, the
comparison does not occur.
By default this value is disabled.
med_missing_as_worst
- If enabled, the BGP process will assign a value of infinity to routes
that are missing the Multi Exit Discriminator (MED) attribute. If disabled, the BGP process will
assign a value of zero to routes that are missing the Multi Exit Discriminator (MED) attribute,
causing this route to be chosen as the best path. By default this value is disabled.
compare_confed_aspath
- If enabled, the BGP process will compare the confederation AS
path length of the routes received. The shorter the confederation AS path length, the better
the route is. By default this value is disabled.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the comparison of the Multi Exit Discriminator (MED):
DGS-3627:admin#
config bgp always_compare_med disable
Command:4# config bgp always_compare_med disable
Success.
DGS-3627:admin#
config bgp bestpath compare_confed_aspath enable
Command:4# config bgp bestpath compare_confed_aspath enable
Success.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top