click below
click below
Normal Size Small Size show me how
ADV - CLI
| Question | Answer |
|---|---|
| Assign or change a device name to Brand | Switch/Router(config)# Hostname Brand |
| Assign class as the privileged EXEC password Note: The enable secret password overrides the enable password. If both are configured on the switch, you must enter the enable secret password to enter privileged EXEC mode. | Switch/Router(config)# enable secret class |
| Switch/Router(config)# banner motd #Authorized Users Only!# | Switch/Router(config)# banner motd #Authorized Users Only!# |
| Display the current configuration. | Router/Switch# show running-config |
| Display the status of the connected interfaces on the switch/router. Verify that the interfaces are configured with the correct IP address and active. | Router/Switch# show ip interface brief |
| Set the enable password to c1$c0. This password protects access to privileged mode. | Router/Switch(config)# enable password c1$c0 |
| Enter privileged EXEC mode | Router/Switch> enable |
| Router/Switch# | |
| Enter configuration mode | Router/Switch# configure terminal |
| Display the current contents of NVRAM. | Router/Switch# show startup-config |
| Save the startup configuration file to flash | Router# copy startup-config flash |
| Displays statistics for all interfaces on the device. However, this command will only display the IPv4 addressing information. | Router# show interface brief |
| Configure IPv4 address and activate the GigabitEthernet 0/0 interface on Router | Router(config)# interface gigabitethernet 0/0 |
| Router(config-if)# ip address 192.168.10.1 255.255.255.0 | |
| Router(config-if)# no shutdown | |
| Configure G0/1 and G0/2 interfaces on Switch for trunking and use VLAN 99 as the native VLAN for G0/1 and G0/2 interfaces on Switch. | Switch(config)# interface range gig1/0/1-24 |
| Switch(config-if-range)# switchport access vlan 99 | |
| Switch(config-if-range)# exit | |
| Verify that the VLANs are assigned to the correct interfaces | Switch# show vlan brief |
| Create and name VLANs on Switch | Switch#(config)# vlan 10 |
| Switch#(config-vlan)# name Staff | |
| Assign PC port to the VLAN on Switch | Switch(config)# interface f0/11 |
| Switch(config-if)# switchport mode access | |
| Switch(config-if)# switchport access vlan 10 | |
| Configure G0/1 and G0/2 interfaces on Switch for trunking and use VLAN 99 as the native VLAN for G0/1 and G0/2 interfaces on Switch. | Switch(config)# interface range g0/1 - 2 |
| Switch(config-if)# switchport mode trunk | |
| Switch(config-if)# switchport trunk native vlan 99 | |
| Verify trunking is enabled on Switch | Switch# show interface trunk |
| Verify that the native VLAN is now 99 | Switch# show interface g0/1 switchport |
| Remove the management IP address on VLAN 1 | Switch(config)# interface vlan 1 |
| Switch(config-if)# no ip address | |
| Create the new VLAN 99 on the switch and assign all user ports to VLAN 99 | Switch(config)# vlan 99 |
| Switch(config-vlan)# exit | |
| Switch(config)# interface range gig1/0/1-24 | |
| Switch(config-if-range)# switchport access vlan 99 | |
| Switch(config-if-range)# exit |