beautypg.com

Setting routes – Allied Telesis AT-8700XL Series Switch User Manual

Page 15

background image

Getting Started with the Command Line Interface (CLI)

15

Software Release 2.6.1
C613-02030-00 REV B

If IP addresses on your LAN are assigned dynamically by DHCP, you can set
the switch to request an IP address from the DHCP server, using the
commands (for Ethernet port 0, for example):

ADD IP INTERFACE=eth0 IPADDRESS=DHCP

ENABLE IP REMOTEASSIGN

You do not need to set the MASK parameter because the subnet mask received
from the DHCP server is used.

If you use DHCP to assign IP addresses to devices on your LAN, and you want to
manage the switch within this DHCP regime, it is recommended that you set your
DHCP server to always assign the same IP address to the switch. This will enable you
to access the GUI by browsing to that IP address, and will also let you use the switch as
a gateway device for your LAN. If you need the switch's MAC address for this, it can be
displayed using the command SHOW SWITCH.

To change the IP address for an interface, enter the command:

SET IP INTERFACE=interface IPADDRESS=ipadd MASK=ipadd

Setting Routes

The process of routing packets consists of selectively forwarding data packets
from one network to another. Your switch makes a decision to send a packet to
a particular network on information it learns dynamically from listening to the
selected route protocol and on the static information entered as part of the
configuration process. In addition, you can configure user-defined filters to
restrict the way packets are sent.

Your switch maintains a table of routes which holds information about routes
to destinations. The route table tells the switch how to find a remote network or
host. A route is uniquely identified by IP address, network mask, next hop,
ifIndex, protocol and policy. A list of routes comprises all the different routes to
a destination. The routes may have different metrics, next hops, policy or
protocol. A list of routes is uniquely identified by its IP address and net mask.

The routing table is maintained dynamically by using one or more routing
protocols such as RIP, EGP and OSPF. These act to exchange routing
information with other switches or hosts.

You can also add static routes to the route table to define default routes to
external switches or networks and to define subnets.

To add a static route, enter the command:

ADD IP ROUTE=ipadd INTERFACE=interface NEXTHOP=ipadd

[CIRCUIT=miox-circuit] [DLCI=dlci]

[MASK=ipadd][METRIC=1..16] [METRIC1=1..16]

[METRIC2=1..65535][POLICY=0..7] [PREFERENCE=0..65535]

To displays the entire routing table, including both static and dynamic routes,
enter the command:

SHOW IP ROUTE

For more information about setting IP routes, see the Internet Protocol (IP)
chapter in the AT-8700XL Series Software Reference.