< Home

ip route

Function

The ip route command configures the UNR route delivered by DHCP.

The undo ip route command deletes the UNR route delivered by DHCP.

Format

ip route ip-address { mask | mask-length } interface-type interface-number dhcp [ preference ]

undo ip route ip-address { mask | mask-length } interface-type interface-number dhcp [ preference ]

Parameters

Parameter Description Value
ip-address Specifies the IP address. -
mask Specifies the sub network mask. -
mask-length Specifies the length of the sub network mask. -
interface-type interface-number Specifies the interface by interface type and interface number. -
preference Specifies the preference of the route. The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Set the UNR route delivered by DHCP.

<sysname> system-view
[sysname] ip route 192.168.0.0 16 GigabitEthernet 0/0/0 dhcp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >