Reference Guide
IP Addressing 193
2
Click
Add
and enter the required fields (that are described above).
Adding an Entry to the IPv4 Routing Table Using CLI Commands
The following table summarizes the CLI commands for adding an entry to
the IPv4 Routing table.
The following is an example of the CLI command:
Table 8-8. IPv4 Static Routing CLI Commands for R1-2210 and R1-2401 in Layer 2 + Static
Routing Mode
CLI Command Description
ip route prefix
{mask|prefix-
length
} ip-address-next-hop
[
metric distance] [reject-route]
no ip route prefix {mask|prefix-
length} [ip-address-next-hop]
Configures static routes.
Use the no form of this
command to remove static
routes.
show ip route Displays the current routing
table state.
Example 1: Configuring a static route with a metric value of
10
console(config)# ip route 3.3.3.3/24 192.12.12.10 metric 10
Example 2: Configuring a static route without specifying a
metric value. The default metric is 1.
console(config)# ip route 4.4.4.4/24 192.12.12.11
Table 8-9. IPv4 Static Routing CLI Commands for R1-2401 in Layer 2
CLI Command Description
ip address ip-address {mask |
/prefix-length} [default-gateway
ip-address
Configures IPv4 routing on an
IPv4 interface.
ip address dhcp Renews an IP address that was
acquired from a DHCP server
for a specific interface










