Configuring A Static Ip Route; Configuring The Default Route - HP ProCurve Series 4100GL Management And Configuration Manual

Hide thumbs Also See for ProCurve Series 4100GL:
Table of Contents

Advertisement

IP Routing Features
Configuring Static IP Routes
16-16

Configuring a Static IP Route

To configure an IP static route with a destination address of 192.0.0.0 255.0.0.0
and a next-hop router IP address of 195.1.1.1, you would enter the following
commands:
HPswitch(config)# ip route 192.0.0.0 255.0.0.0 195.1.1.1
HPswitch(config)# write memory
Syntax: ip route < dest-ip-addr > < dest-mask > < next-hop-ip-addr >
— or —
ip route < dest-ip-addr >/< mask-bits > < next-hop-ip-addr >
The < dest-ip-addr > is the route's destination.
The < dest-mask > parameter specifies the subnet mask for the routes destina­
tion IP address. Ones are significant bits and zeros allow any value. For
example, the mask 255.255.255.0 matches on all hosts within the Class C sub-
net address specified by the < dest-ip-addr >. Alternatively, you can use the
CIDR notation and specify the number of bits in the network mask. For
example, you can enter 209.157.22.0/24 instead of 209.157.22.0 255.255.255.0.
The < next-hop-ip-addr > is the IP address of the next router in the path to the
destination.

Configuring the Default Route

You can also assign a default route and enter it in the routing table. The default
route is the route assigned to all traffic that has destinations that are not in
the local routing table. For example, if 208.45.228.35 is the ip address of your
ISP router, all non-local traffic could be directed to that route by entering the
commands:
HPswitch(config)# ip route 0.0.0.0 0.0.0.0 208.45.228.35
HPswitch(config)# write memory

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents