HP (Hewlett-Packard) 6208M-SX Switch User Manual


 
Configuring BGP4
USING THE CLI
To view the BGP4 route table, enter the following command:
To display all the BGP4 routes in the routing switchs BGP4 route table that are the best routes to their
destinations, enter a command such as the following at any level of the CLI:
HP9300(config-bgp-router)# show ip bgp routes
Searching for matching routes, use ^C to quit...
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
H:HISTORY I:IBGP L:LOCAL M:MULTIPATH S:SUPPRESSED
Network ML Next Hop Metric LocPrf Weight Status
1 4.2.42.0 24 192.168.4.211 101 0 B
2 4.2.43.0 24 192.168.4.211 101 0 D
3 7.7.7.0 24 192.168.4.211 0 101 0 b
4 38.38.38.0 24 192.168.4.211 0 101 0 B
13 102.0.0.0 24 200.1.1.10 12 101 32768 BL
Syntax: show ip bgp routes [[network] <ip-addr>] | <num> | [as-path-access-list <num>] | [best] [cidr-only] |
[community <num> | no-export | no-advertise | internet | local-as] | [community-access-list <num>] |
[community <num> | <num>:<num> | local-as | no-export | no-advertise | internet] | [detail <option>] |
[filter-list <num, num,...>] | [not-installed-best] | [prefix-list <string>] | [regular-expression <regular-expression>] |
[summary] | [unreachable]
The <ip-addr> option displays routes for a specific network. The network keyword is optional. You can enter the
network address without entering network in front of it.
The <num> option specifies the table entry with which you want the display to start. For example, if you want to
list entries beginning with table entry 100, specify 100.
The as-path-access-list <num> parameter filters the display using the specified AS-path ACL.
The best parameter displays the routes received from the neighbor that the routing switch selected as the best
routes to their destinations.
The cidr-only option lists only the routes whose network masks do not match their class network length.
The community option lets you display routes for a specific community. You can specify local-as, no-export,
no-advertise, internet, or a private community number. You can specify the community number as either two
five-digit integer values of up to 1 65535, separated by a colon (for example, 12345:6789) or a single long integer
value.
The community-access-list <num> parameter filters the display using the specified community ACL.
The community-list option lets you display routes that match a specific community filter.
The detail option lets you display more details about the routes. You can refine your request by also specifying
one of the other display options after the detail keyword.
The filter-list option displays routes that match a specific address filter list.
The not-installed-best option displays the routes received from the neighbor that are the best BGP4 routes to
their destinations, but were nonetheless not installed in the IP route table because the routing switch received
better routes from other sources (such as OSPF, RIP, or static IP routes).
The prefix-list <string> parameter filters the display using the specified IP prefix list.
The regular-expression <regular-expression> option filters the display based on a regular expression. See
Using Regular Expressions on page 10-49.
The summary option displays summary information for the routes.
The unreachable option displays the routes that are unreachable because the routing switch does not have a
valid RIP, OSPF, or static route to the next hop.
10 - 103