Setting routes – Allied Telesis AR700 SERIES Software Release 2.7.1 User Manual
Page 16

16
AR700 Series Router User Guide
Software Release 2.7.1
C613-02047-00 REV A
If IP addresses on your LAN are assigned dynamically by DHCP, you can set
the router 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 router within this DHCP regime, it is recommended that you set
your DHCP server to always assign the same IP address to the router. This will
enable you to access the GUI by browsing to that IP address, and will also let
you use the router as a gateway device for your LAN. If you need the router's
MAC address for this, you can display it using the command SHOW ETH=0
MACADDRESS.
To change the IP address for an interface, enter the command:
set ip interface=interface ipaddress=ipadd mask=ipadd
For more information about Ethernet interfaces, see
in this document, and the Interfaces chapter in the Software
Reference. For more information about IP addressing and routing, see
in this document, and the Internet Protocol (IP) chapter in
the Software Reference.
Setting Routes
The process of routing packets consists of selectively forwarding data packets
from one network to another. Your router 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 router maintains a table of routes which holds information about routes to
destinations. The route table tells the router 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 routers or hosts.
You can also add static routes to the route table to define default routes to
external routers 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]