beautypg.com

Adding static and default routes, Adding static and default routes 8 – Allied Telesis AT-8100 Series User Manual

Page 1828

background image

Chapter 104: Internet Protocol Version 4 Packet Routing

1828

Adding Static and

Default Routes

Building on our example, assume you decide to manually enter a static
route to a remote network. Here is the information you need to know to
create static routes:

The network address of the remote destination.

The subnet mask of the remote destination.

The IP address of the next hop.

The administrative distance of the route. This is optional.

The command for creating static routes is the IP ROUTE command in the
Global Configuration mode. Here is the format of the command:

ip route

ipaddress1 mask ipaddress2

[

admin

]

The IPADDRESS1 parameter specifies the IP address of a remote
destination network, subnet, or node. The IP address for the default route
is 0.0.0.0.

The MASK parameter specifies the mask of the IP address. The mask
represents the number of bits, from left to right, that constitute the network
portion of the address. The mask may be entered in IP notation (e.g.,
255.255.255.0) or decimal notation (e.g., /24).

The IPADDRESS2 parameter specifies the IP address of the next hop to
the remote destination network, subnet, or node. This address must be a
member of the same network as one of the existing routing interfaces on
the switch.

The ADMIN parameter specifies the administrative distance of the route.
The range is 1 to 255. The default is 1.

For example, assume you decide to add a static route to the remote
network 149.35.22.0, which has this mask: 255.255.255.0. Also assume
that the IP address of the next hop is 149.35.70.26, making it part of the
Inventory VLAN, ID 15, in the example in Table 252 on page 1825.
Although the VLAN is mentioned here, you do not include it in the
command because the switch automatically adds the static route to the
appropriate VLAN for you. Here is the command:

awplus(config)# ip route 149.35.22.0/24 149.35.70.26

Static routes become available to all of the interfaces on the switch as
soon as you create them with this command.