Page 146 / 757 Scroll up to view Page 141 - 145
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
142
DGS-3627:admin#
create bgp community_list standard list1
Command: create bgp community_list standard list1
Success.
DGS-3627:admin#
config bgp community_list standard list1 add community_set 50000:10
permit
Command: config bgp community_list standard list1 add community_set 50000:10 permit
Success.
DGS-3627:admin#
delete bgp community_list
Purpose
This command is used to delete a BGP community list.
Syntax
delete bgp community_list [list_name <list_name 16> | all]
Description
This command is used to delete a BGP community list.
Parameters
<list_name 16>
- The name of the community list to be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the community list named “list1”:
DGS-3627:admin# delete bgp community_list list_name list1
Command:4# delete bgp community_list list_name list1
Success.
DGS-3627:admin#
show bgp community_list
Purpose
This command is used to show a BGP community list.
Syntax
show bgp community_list {<list_name 16>}
Description
This command is used to show a BGP community list.
Parameters
<list_name 16>
- Name of community list to be displayed.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To display the community list named “list1”:
Page 147 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
143
DGS-3627:admin#
create bgp community_list standard list1
Command: create bgp community_list standard list1
Success.
DGS-3627:admin#
config bgp community_list standard list1 add community_set 50000:10
permit
Command: config bgp community_list standard list1 add community_set 50000:10 permit
Success.
DGS-3627:admin#
show bgp community_list list1
Command:4# show bgp community_list list1
Community List Name: list1
--------------------------------
Type
: standard
permit:
50000:100
DGS-3627:admin#
show bgp route
Purpose
This command is used to display route entries in the Border Gateway Protocol (BGP) routing
table
Syntax
show bgp route {[ regexp <desc 80> | inconsistent_as | cidr_only | filter_list <list_name
16> | route_map <map_name 16> | community {community_set <community_set 80> |
local_as | no_advertise | no_export | internet}{exact_match} | community_list
<list_name 16> {exact_match} | ipaddress <ipaddr> | network <network_address>
{longer_prefixes} | prefix_list <list_name 16>]}
Description
This command is used to show BGP routes.
Parameters
regexp
- Displays routes matching the AS path regular expression
<regexp_str 80>
- This is a regular expression to match the BGP AS paths. You must
enclose this in quotes. Blank spaces are permitted. Detail rule please see reference doc.
cidr_only
- Displays only routes with non-natural network masks
prefix_list
- Displays routes conforming to the prefix list
filter_list
- Displays routes conforming to the filter list
route_map
- Displays routes matching the route map
<map_name 16>
- Specifies the name for the specified route map.
<list_name 16>
- Specifies the list name for the specified prefix list, IP access list, or route
map.
<ipaddr>
- Displays the host route that matches the specified IP address.
<network_address>
- Displays the route that matches the specified network address.
The format of network is (xxx.xxx.xxx/xx). It specifies an IP address and length of network
mask.
longer_prefixes
- If specified, more specific routes will also be displayed.
community
- Displays routes matching the communities
community_set < community_set 80>
- A community is in the form of <as_number> :
<udn_number>. A community string can be formed by multiple communities, separated by a
comma.
An example of a community string is 200:1024, 300:1025, 400:1026.
local_as
- Do not send outside local AS (well-known community)
Page 148 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
144
show bgp route
no_advertise
- Do not advertise to any peer (well-known community)
no_export
- Do not export to next AS (well-known community)
exact_match
- If specified, communities need to match exactly.
If not specified, then there are two cases:
If internet is contained in the community list, then all routes will match.
If not, then the community needs to be a subset of route’s community to match.
inconsistent_as
- Displays the routes if they have the same prefix and different AS path
origins.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To show how to get the BGP route information:
Page 149 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
145
DGS-3627:admin#
show bgp route
Command:
show bgp route
BGP local router ID is 10.0.40.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
-----------------
-----------
-------
------
------
--------------
*>
10.10.10.0/24
172.16.10.1
0
0
300
10 i
*>
10.10.20.0/24
172.16.10.1
0
0
300
10 i
*
10.20.10.0/24
172.16.10.1
0
0
300
10 i
*dh 30.10.1.1/24
172.3.3.2
100
50
200
20 i
Total Entries: 4
DGS-3627:admin#
show bgp route cidr_only
Command: show bgp route cidr_only
BGP local router ID is 172.16.73.131
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
---------------
-----------
-------
------
------
-------------
*> 192.168.0.0/8
172.16.72.24
0
1878
200
?
*> 172.16.0.0/24
172.16.72.30
0
108
200
?
Total Entries: 2
DGS-3627:admin# show bgp route community_list communitylist1
Command: show bgp route community_list communitylist1
BGP local router ID is 192.168.32.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
---------------
-----------
-------
------
-------
--------------
* i10.3.0.0
10.0.22.1
0
100
1800
1239 ?
*>i10.3.0.0
10.0.16.1
0
100
1800
1239 ?
* i10.6.0.0
10.0.22.1
0
100
1800
690
568 ?
Total Entries: 3
Page 150 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
146
DGS-3627:admin#
show bgp route filter_list filter_list_one
Command: show bgp route filter_list filter_list_one
BGP local router ID is 172.16.72.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
---------------
-----------
-------
------
-------
--------------
*
172.16.0.0
172.16.72.30
0
109 108 ?
*
172.16.1.0
172.16.72.30
0
109 108 ?
*
172.16.11.0
172.16.72.30
0
109 108 ?
*
172.16.14.0
172.16.72.30
0
109 108 ?
*
172.16.15.0
172.16.72.30
0
109 108 ?
*
172.16.16.0
172.16.72.30
0
109 108 ?
Total Entries: 6
DGS-3627:admin#
show bgp route regexp “108$”
Command:
show bgp route regexp “108$”
BGP local router ID is 172.16.72.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
------------------
-----------
-------
------
-------
--------------
s
172.16.0.0
172.16.72.30
0
109 108 ?
s
172.16.0.0
172.16.72.31
0
109 108 ?
*
172.16.1.0
172.16.72.30
0
109 108 ?
*
172.16.11.0
172.16.72.30
0
109 108 ?
*
172.16.14.0
172.16.72.30
0
109 108 ?
*
172.16.15.0
172.16.72.30
0
109 108 ?
*
172.16.16.0
172.16.72.30
0
109 108 ?
Total Entries: 7
DGS-3627:admin#
show bgp route inconsistent_as
Command:
show bgp route inconsistent_as
BGP local router ID is 172.16.72.24
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? – incomplete
IP Address/Netmask
Gateway
Metric
LocPrf
Weight
Path
------------------
-----------
-------
------
-------
--------------
*
172.16.1.0
172.16.72.30
0
109 108 i
172.16.72.21
0
110 101 i
*
172.16.11.0
172.16.72.30
0
109 108 i
172.16.72.10
0
104 105 i
172.16.72.10
0
104 103 i
Total Entries: 2

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top