IP Routing Features
Configuring Static IP Routes
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
16-16
Summary of Contents for ProCurve 6108
Page 2: ......
Page 18: ... This page is intentionally blank xvi ...
Page 50: ...Using the Menu Interface Where To Go From Here This page is intentionally unused 3 16 ...
Page 300: ...Port Based Virtual LANs VLANs and GVRP GVRP This page is intentionally unused 12 48 ...
Page 432: ...IP Routing Features Configuring DHCP Relay This page is intentionally unused 16 24 ...
Page 522: ...Troubleshooting Restoring a Flash Image This page is intentionally unused C 44 ...
Page 528: ...MAC Address Management Determining MAC Addresses This page is intentionally unused D 6 ...
Page 532: ...Daylight Savings Time on HP ProCurve Switches This page is intentionally unused E 4 ...
Page 546: ... This page is intentionally unused 14 Index ...