Routing Commands 22
© 2001- 2006 Hirschmann Automation and Control GmbH. All Rights Reserved.
Format no ip routing
Mode Global Config
4.2.3 ip address
This command configures an IP address on an interface. The IP address may be a secondary IP address.
The value for
<ipaddr> is the IP Address of the interface.
The value for
<subnetmask> is a 4-digit dotted-decimal number which represents the subnet mask of
the interface. This changes the label IP address in
show ip interface.
Format ip address <ipaddr> <subnetmask> [secondary]
Mode Interface Config
4.2.3.1 no ip address
This command deletes an IP address from an interface.
The value for
<ipaddr> is the IP Address of the interface.
The value for
<subnetmask> is a 4-digit dotted-decimal number which represents the Subnet Mask of
the interface.
Format no ip address <ipaddr> <subnetmask> [secondary]
Mode Interface Config
4.2.4 ip route
This command configures a static route. The <ip_addr> is a valid ip address. The <subnet_mask> is
a valid subnet mask. The
<nextHopRtr> is a valid IP address of the next hop router.
The
<preference> is an integer value from 1 to 255. The user can specify the preference value
(sometimes called "administrative distance") of an individual static route. Among routes to the same
destination, the route with the lowest preference value is the route entered into the forwarding database.
By specifying the preference of a static route, the user controls whether a static route is more or less
preferred than routes from dynamic routing protocols. The preference also controls whether a static
route is more or less preferred than other static routes to the same destination.
The value 255 stands for „unreachable“. This means that the appropriate route is never entered into the
forwarding database.
Note: The following must be present before the static routes are visible:
Enable ip routing globally.
Enable ip routing for the interface.
The associated link must also be up.
Default preference - 1
Format ip route <ip_addr> <subnet_mask> <nextHopRtr> [<preference>]
Mode Global Config
4.2.4.1 no ip route
This command deletes all next hops to a destination static route. If the optional <nextHopRtr>
parameter is designated, the next hop is deleted and if the optional preference value is designated, the
preference value of the static route is reset to its default,