HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Routing Comma - Page 20
exclude, display ip routing-table, longer-match
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 20 highlights
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display ip routing-table ip-address to display information about routes to a specified destination address. Executing the command with different parameters yields different output: • display ip routing-table ip-address: { The system ANDs the input destination IP address with the subnet mask in each route entry. { The system ANDs the destination IP address in each route entry with its own subnet mask. If the two operations yield the same result for an entry and this entry is active, it is displayed. • display ip routing-table ip-address mask: { The system ANDs the input destination IP address with the input subnet mask. { The system ANDs the destination IP address in each route entry with the input subnet mask. If the two operations yield the same result for an entry and the entry is active with a subnet mask less than or equal to the input subnet mask, the entry is displayed. Only route entries that exactly match the input destination address and mask are displayed. • display ip routing-table ip-address longer-match: { The system ANDs the input destination IP address with the subnet mask in each route entry. { The system ANDs the destination IP address in each route entry with its own subnet mask. If the two operations yield the same result for multiple entries that are active, the one with the longest mask length is displayed. • display ip routing-table ip-address mask longer-match: { The system ANDs the input destination IP address with the input subnet mask. { The system ANDs the destination IP address in each route entry with the input subnet mask. If the two operations yield the same result for multiple entries with a mask less than or equal to the input subnet mask, the one that is active with longest mask length is displayed. Use display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } to display route entries with destination addresses within a specified range. Examples # Display route entries for the destination IP address 11.1.1.1. display ip routing-table 11.1.1.1 Routing Table : Public Summary Count : 4 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 11.0.0.0/8 11.1.0.0/16 11.1.1.0/24 Static 60 0 Static 60 0 Static 60 0 Static 60 0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 NULL0 NULL0 NULL0 NULL0 # Display route entries by specifying a destination IP address and the longer-match keyword. 9