Introduction – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 626
![background image](/manuals/427254/626/background.png)
Internet Protocol (IP) Addressing and Protocols
Software Reference for x310 Series Switches
24.2
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
Introduction
This chapter describes how to configure IPv4 addressing and the protocols used to help IP
function on your network.
As well as the familiar Internet, with uppercase “I”, the term internet (with lowercase “i”)
can refer to any network (usually a wide area network) that uses the Internet Protocol. This
chapter concentrates on this definition—a generalized network that uses IP as its network
protocol.
Assigning an IP
Address
To configure your device to perform IP routing (for example, to access the Internet) you
need to configure IP. You also need to configure IP if you want to manage your device from
any IP-based management process (such as SSH, Telnet, or SNMP).
Add an IP address to each of the interfaces that you want to process IP traffic.
You can configure an interface on your device with a static IP address, or with a dynamic IP
address assigned using your device’s DHCP client.
Static IP addresses
To add a static IP address to an interface, enter interface mode for the interface that you
want to configure, then use the command:
where
that you cannot specify the mask in dotted decimal notation in this command.
For example, to give the interface vlan1 an address of 192.168.10.10, with a class C subnet
mask, use the command:
The secondary parameter allows you to add multiple IP addresses to an interface using
this command. Each interface must have a primary IP address before you can add a
secondary address. Your device treats secondary addresses the same as primary addresses
in most instances, such as responding for ARP requests for the IP address. However, the
only packets generated that have a secondary address as source address are routing
updates. You can define up to 32 secondary addresses on a single interface.
DHCP dynamic
addresses
When you use the DHCP client, it obtains the IP address and subnet mask for the interface,
and other IP configuration parameters, from a DHCP server. To configure an interface to
gain its IP configuration using the DHCP client, use the command:
If an IP interface is configured to get its IP address and subnet mask from DHCP, the
interface does not take part in IP routing until the IP address and subnet mask have been
set by DHCP.
If you need to make a static entry in your DHCP server for the device, you need your
device's MAC address, which you can display by using the command:
See
Chapter 63, Dynamic Host Configuration Protocol (DHCP) Introduction
for more
information about DHCP.
awplus(config-if)#
ip address
[secondary [label ]]
awplus(config-if)#
ip address 192.168.10.10/24
awplus(config-if)#
ip address dhcp [client-id
[hostname
awplus#
show interface