•
•
•
Example of commands, that allow you to create user 'fedor' with password '12345678' and privilege level 15
and create user 'ivan' with password 'password' and privilege level '1':
esr# configure
esr(config)# username fedor
esr(config-user)# password 12345678
esr(config-user)# privilege 15
esr(config-user)# exit
esr(config)# username ivan
esr(config-user)# password password
esr(config-user)# privilege 1
esr(config-user)# exit
Assigning device name
To assign the device name, use the following commands:
esr# configure
esr(config)# hostname <new-name>
When a new configuration is applied, command prompt will change to the value specified by <new-name>
parameter.
Configuration of public network parameters
To configure router network interface in the public network, you should assign parameters defined by the
network provider – default IP address, subnet mask and gateway address – to the device.
Example of static IP address configuration commands for Gigabit Ethernet1/0/2.150 sub-interface used for
obtaining access to the router via VLAN 150.
Interface parameters:
IP address: 192.168.16.144;
Subnet mask: 255.255.255.0;
Default gateway IP address: 192.168.16.1.
esr# configure
esr(config)# interface gigabitethernet 1/0/2.150
esr(config-subif)# ip address 192.168.16.144/24
esr(config-subif)# exit
esr(config)# ip route 0.0.0.0/0 192.168.16.1
To ensure the correct IP address assigning for the interface, enter the following command when the
configuration is applied:
esr# show ip interfaces
IP address Interface Type
------------------- --------------------------------- -------
192.168.16.144/24 gigabitethernet 1/0/2.150 static
Provider may use dynamically assigned addresses in their network. If the there is DHCP server in the network,
you can obtain the IP address via DHCP.