Initial Configuration
20G101-00 E2
2015-09-29
Page 22
2.2.3
Setting a password for the admin user
In order to set the administrator password, carry out the following steps:
»
At the ’
my-device#
’ prompt type "
configure terminal
" and press <Enter>
»
Then type "
username admin privilege 15 password unencrypted very-secret
" and
press <Enter>
»
Finally type "
exit
" and press <Enter>
The password for the admin user is now set to ’very-secret’. Repeat this process for every
additional user.
Table 4.
Sequence for setting the admin password
2.2.4
Setting the VLAN 1 IP address
The objective is to assign an IP address to the device on VLAN 1. This is often sufficient
for small local area networks that use Dynamic Host Configuration Protocol, DHCP, or
static IP address allocation.
The system implements a DHCP client that, once enabled, will send out requests for IP
address configuration. Those requests are received by a DHCP server on the network (if
present and appropriately configured). The server will then search through its pool of
available IP addresses, allocate one and return it to the DHCP client. The returned
information typically includes IP address, netmask and default gateway, but may also
contain other information such as Domain Name Service server addresses.
The configuration proceeds in the same manner as setting the hostname:
»
Enter configuration mode,
»
Input and execute configuration commands,
»
Leave configuration mode.
Table 5.
Commands to configure the IP address
The prompt will change as the
interface vlan 1
command enters a configuration sub-
mode that allows, among other things, the configuration of the IP address.
After configuration is complete, the resulting IP address can be inspected. The DHCP
negotiation has succeeded and the device has obtained an address if the following is
displayed:
my-device# configure terminal
my-device(config)# username admin privilege 15 password unencrypted very-secret
my-device(config)# exit
my-device#
my-device# configure terminal
my-device(config)# interface vlan 1
my-device(config-if-vlan)# ip address dhcp fallback 172.16.1.2 255.255.0.0
my-device(config-if-vlan)# exit
my-device(config)#
Also note that IP addresses can only be assigned to VLAN interfaces.