HES7000 ICLI User’s Guide A01583 Rev. A
Page
3
of 37
To set the admin password perform the following:
myDevice#
configure terminal
myDevice(config)#
username admin privilege 15 password unencrypted very-secret
myDevice(config)#
exit
myDevice#
The user, admin, now has the password
“very-secret”. Other users can be added in similar
fashion.
2.3. Set 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.
A DHCP client function has been implemented in the device 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 DHCP server will then search
through its pool of available IP addresses, allocate one and return it to the DHCP client. The
returned information 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. The following
commands instruct the device to use DHCP to obtain an IP address but if DHCP fails, use a
static
“fallback” IP address. Inclusion of a fallback IP is optional and may be omitted.
myDevice#
configure terminal
myDevice(config)#
interface vlan 1
myDevice(config-if-vlan)#
ip address dhcp fallback 172.16.1.2 255.255.0.0
myDevice(config-if-vlan)#
exit
myDevice(config)#
Notice how the prompt changes; the
interface vlan 1
command enters a configuration
sub-
mode
that allows, among other things, configuration of IP address.
NOTE that IP addresses can only be assigned to
VLAN interfaces
.
After configuration is complete the resulting IP address can be inspected. As seen below,
the DHCP negotiation succeeded and the device obtained an IP address:
myDevice#
show ip interface brief
Vlan Address
Method
Status
---- -------------------- --------
------
1
172.16.1.17/16
DHCP UP
myDevice#
show ip interface brief
displays all configured and active IP interfaces. The status should
be UP.
If it isn’t then the reason could be that there is no link on any port.
If DHCP negotiation had failed then the fallback IP of 172.16.1.2/255.255.0.0 would be
assigned.
Содержание HES7000
Страница 1: ...HES7000 ICLI USER S GUIDE A01583 Rev A ...
Страница 3: ...HES7000 ICLI User s Guide A01583 Rev A ...
Страница 4: ......