5.2.5 Lab - Configure Administrative Roles
5.2.5 Lab - Configure Administrative Roles
5.2.5 Lab - Configure Administrative Roles
Topology
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway Switch Port
R2
G0/0/1 10.2.2.2 255.255.255.252 N/A N/A
R3 G0/0/0 10.2.2.1 255.255.255.252 N/A N/A
R3
G0/0/1 192.168.3.1 255.255.255.0 N/A S3 F0/5
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 1 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
Objectives
Part 1: Configure Basic Device Settings
Cable the network as shown in the topology.
Configure basic IP addressing for routers and PCs.
Configure OSPF routing.
Configure PC hosts.
Verify connectivity between hosts and routers.
Part 2: Configure Administrative Roles
Create multiple role views and grant varying privileges.
Verify and contrast views.
Background / Scenario
The router is a critical component in any network. It controls the movement of data into and out of the network
and between devices within the network. It is particularly important to protect network routers because the
failure of a routing device could make sections of the network, or the entire network, inaccessible. Controlling
access to routers and enabling reporting on routers is critical to network security and should be part of a
comprehensive security policy.
In this lab, you will build a multi-router network and configure the routers and hosts. You will configure
administrative roles with different privilege levels.
Note: The routers used with hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.6 (universalk9
image). The switches used in the labs are Cisco Catalyst 2960+ with Cisco IOS Release 15.2(7) (lanbasek9
image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco
IOS version, the commands available and the output produced might vary from what is shown in the labs.
Refer to the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Before you begin, ensure that the routers and the switches have been erased and have no startup
configurations.
Required Resources
3 Routers (Cisco 4221 with Cisco XE Release 16.9.6 universal image or comparable with a Security
Technology Package license)
2 Switches (Cisco 2960+ with Cisco IOS Release 15.2(7) lanbasek9 image or comparable)
2 PCs (Windows OS with a terminal emulation program, such as PuTTY or Tera Term installed)
Console cables to configure Cisco networking devices
Ethernet cables as shown in the topology
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 2 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
Instructions
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 3 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
b. Issue the show ip route command to verify that all networks display in the routing table on all routers.
R1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 4 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
show run, show ip ospf neighbor, and show ip route commands to help identify routing protocol-related
problems.
Step 4: Create the admin1 view, establish a password, and assign privileges.
a. The admin1 user is the top-level user below root that is allowed to access this router. It has the most
authority. The admin1 user can use all show, config, and debug commands. Use the following
command to create the admin1 view while in the root view.
R1# configure terminal
R1(config)# parser view admin1
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 5 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
R1(config-view)#
Note: To delete a view, use the command no parser view viewname.
b. Associate the admin1 view with an encrypted password.
R1(config-view)# secret admin1pass
R1(config-view)#
c. Review the commands that can be configured in the admin1 view. Use the commands ? command to
see available commands. The following is a partial listing of the available commands.
R1(config-view)# commands ?
RITE-profile Router IP traffic export profile command mode
RMI Node Config Resource Policy Node Config mode
RMI Resource Group Resource Group Config mode
RMI Resource Manager Resource Manager Config mode
RMI Resource Policy Resource Policy Config mode
SASL-profile SASL profile configuration mode
aaa-attr-list AAA attribute list config mode
aaa-user AAA user definition
accept-dialin VPDN group accept dialin configuration mode
accept-dialout VPDN group accept dialout configuration mode
address-family Address Family configuration mode
<output omitted>
d. Add all config, show, and debug commands to the admin1 view and then exit from view configuration
mode.
R1(config-view)# commands exec include all show
R1(config-view)# commands exec include all config terminal
R1(config-view)# commands exec include all debug
R1(config-view)# end
e. Verify the admin1 view.
R1# enable view admin1
Password: admin1pass
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 6 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
Step 5: Create the admin2 view, establish a password, and assign privileges.
a. The admin2 user is a junior administrator in training who is allowed to view all configurations but is not
allowed to configure the routers or use debug commands.
b. Use the enable view command to enable the root view, and enter the enable secret password
cisco12345.
R1# enable view
Password: cisco12345
c. Use the following command to create the admin2 view.
R1# configure terminal
R1(config)# parser view admin2
d. Associate the admin2 view with a password.
R1(config-view)# secret admin2pass
e. Add all show commands to the view, and then exit from view configuration mode.
R1(config-view)# commands exec include all show
R1(config-view)# end
f. Verify the admin2 view.
R1# enable view admin2
Password: admin2pass
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 7 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
Note: There may be more EXEC commands available than are displayed. This depends on your device
and the IOS image used.
Question:
What is missing from the list of admin2 commands that is present in the admin1 commands?
Type your answers here.
Step 6: Create the tech view, establish a password, and assign privileges.
a. The tech user typically installs end-user devices and cabling. Tech users are only allowed to use selected
show commands.
b. Use the enable view command to enable the root view, and enter the enable secret password
cisco12345.
R1# enable view
Password: cisco12345
c. Use the following command to create the tech view.
R1(config)# parser view tech
d. Associate the tech view with a password.
R1(config-view)# secret techpasswd
e. Add the following show commands to the view and then exit from view configuration mode.
R1(config-view)# commands exec include show version
R1(config-view)# commands exec include show interfaces
R1(config-view)# commands exec include show ip interface brief
R1(config-view)# commands exec include show parser view
R1(config-view)# end
f. Verify the tech view.
R1# enable view tech
Password: techpasswd
Note: There may be more EXEC commands available than are displayed. This depends on your device
and the IOS image used.
h. Examine the show commands available in the tech view.
R1# show ?
banner Display banner information
flash0: display information about flash0: file system
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 8 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
Note: There may be more EXEC commands available than are displayed. This depends on your device
and the IOS image used.
i. Issue the show ip interface brief command.
Question:
For tech view, why are the show and show ip commands listed as well as show ip interface and show
ip interface brief?
Type your answers here.
m. Configure the same administrative roles on router R3.
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 9 of 10 www.netacad.com
Lab - Securing the Router for Administrative Access
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
end of document
© 2015 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public. Page 10 of 10 www.netacad.com