Skip to content
Class Notes

Notes CCNA

Set boot file and recover from crash on Cisco switches. Use boot system commands, mode button, and boot loader steps to restore functionality after power loss or software issues.

Preview 6 of 20 pages

See the first 6 pages exactly as they appear in the document.

  1. Page 1
    Read page 1 as text

    q#### Settup the boot file #### Sl(config)# boot system flash:/c2960-lanbasek9-mz.l 50-2.SE/c2960- lanbasek9-mz.I50-2.SE.bin #### Recovery from a crash ### Step 1. Connect a PC by console cable to the switch console port. Configure terminal emulation software to connect to the switch. Step 2. Unplug the switch power cord. Step 3. Reconnect the power cord to the switch and, within 15 seconds, press and hold down the Mode button while the System LED is still flashing green. Step 4. Continue pressing the Mode button until the System LED turns briefly amber and then solid green; then release the Mode button. Step 5. The boot loader switch: prompt appears in the terminal emulation software on the PC. switch: set BOOT=flash:/c2960-lanbasek9-mz.122-55.SE7/c2960-lanbasek9-mz.122- 55.SE7.bin (output omitted) switch: flash_init Initializing Flash... flashfs[0]: 2 files, 1 directories flashfsfO]: 0 orphaned files, 0 orphaned directories flashfsfO]: Total bytes: 32514048 flashfs[0]: Bytes used: 11838464 flashfsfO]: Bytes available: 20675584 flashfsfO]: flashfs fsck took 10 seconds. ...done Initializing Flash. switch: dir flash: Directoiy of flash:/ 2 -rwx 11834846 c2960-lanbasek9-mz,150- 2.SE8.bin 3 -rwx 2072 multiple-fs switch: BOOT=flash:c2960-lanbasek9-mz.150-2.SE8.bin switch: set BOOTMlash:c2960-lanbasek9-mz.150-2.SE8.bin (output omitted) switch: boot ###Configure Basic Router Settings## Switch(config)#host SI

  2. Page 2
    Read page 2 as text

    Sl(config)#no ip domain-lookup S1(config)#lin con 0 S l(config-line)#logging synchronous S1(config-line)#exec-timeout 0 0 Router# configure terminal Router(config)# hostname R1 R1 (config)# enable secret class - (password for enable command) R1(config)# line console 0 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)# line vty 0 4 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)# service password-encryption R1(config)# [Configure interfaces] R1(config)# interface gigabitethernet 0/0/0 Rl(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:l::1/64 R1(config-if)# description Link to LAN 1 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface gigabitethernet 0/0/1 R1(config-if)# ip address 192.168.11.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:2::1/64 R1(config-if)# description Link to LAN 2 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface serial 0/0/0 R1(config-if)# ip address 209.165.200.225 255.255.255.252 R1(config-if)# ipv6 address 2001:db8:acad:3::225/64 R1(config-if)# description Link to R2 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# [Loopback interface] R1(config)# interface loopback 0 R1(config-if)# ip address 10.0.0.1 255.255.255.0 ####Configure switch ports #### [Enable duplex modes] SI# configure terminal SI (config)# interface FastEthernet 0/1 SI (config-if)# duplex full

  3. Page 3
    Read page 3 as text

    Sl(config-if)# speed 100 Sl(config-if)# end [auto-MDX (Media Dependent crossover)] S1(config-if)#mdix auto Sl(config-if)#duplex auto [should be used with mdix auto] Sl#show controllers ethemet-controller faO/1 phy | include Auto-MDIX [Switch Verification Commands] SI# show interfaces [interface-id] SI# show startup-config SI# show running-config SI# show flash SI# show version SI# show history S1 # show ip interface SI# show mac-address-table SI# show ipv6 route SI# show ip route #### SSH Remote configure ### [Change Vian] [Setup vlan for management] S3(config)#vlan 99 [SVI L3] S3(config-vlan)#name S3 S3(config-vlan)#exit S3(config-if)#interface vlan99 [set up for L2] S1(config-if)#ip address 172.17.99.11 255.255.255.0 S1(config-if)#ipv6 address 2001:db8:acad:99::11/64 Sl(config-if)#no shutdown S1(config-if)#exit Sl(config)#ip default-gateway 172.17.99.1 S3(config)#vtp mode client S3(config)#Interface range faO/O - faO/24 S3(config-if-range)#switchport access vlan 99 [SSH setup R and S] SI (config)# hostname R1 Sl(config)#ip domain name span.com Sl(config)# security passwords min-length 12 Sl(config)#crypto key generate rsa general-keys modulus 1024 [crypto key zeroize rsa = » Disable] Sl(config)#usemame Huu secret cisco Sl(config)#ip ssh version 2 SI (config)# line vty 0 4

  4. Page 4
    Read page 4 as text

    SI (config-line)# login local [Use local login for username and password ] SI (config-line)# transport input ssh S l(config-line)#exec-timeout 40 Sl(config-line)#login block-for 120 attempts 3 within 60 S1(config-line)# exit SI (config)# #### DHCP### Step 1 . Exclude IPv4 addresses. Step 2 . Define a DHCPv4 pool name. Step 3 . Configure the DHCPv4 pool. SW2(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.2 SW2(config)#ip dhcp pool workdhcp SW2(dhcp-config)#network 192.168.3.0 255.255.255.0 SW2(dhcp-config)#default-router 192.168.3.1 SW2(dhcp-config)#dns-server 8.8.8.8 SW2(dhcp-config)#exit SW2#sh ip dhcp binding SW2#sh ip dhcp pool SW2#show running-config | section dhcp SW2#show ip dhcp server statistics [Disable and enable] R1(config)# no service dhcp R1(config)# service dhcp R1(config)# [DHCP relay] R1(config)# interface g0/0/0 Rl(config-if)# ip helper-address 192.168.11.6 Relay DHCP broadcast to DHCP server at 192.168.11.6 Port 37: Time Port 49: TACACS Port 53: DNS Port 67: DHCP/BOOTP server Port 68: DHCP/BOOTP client Port 69: TFTP Port 137: NetBIOS name service

  5. Page 5
    Read page 5 as text

    Port 138: NetBIOS datagram service Stateless DHCPv6 is enabled on a router interface using the ipv6 nd other-config-flag interface configuration command. This sets the O flag to 1. Stateful DHCPv6 is enabled on a router interface using the ipv6 nd managed-config-flag interface configuration command. This sets the M flag to 1. The ipv6 nd prefix default no- autoconfig interface command disables SLAAC by setting the A flag to 0 SLAAC 1. Assign GUA, LINk local 2. Enable ipv6 routing R1(config)# ipv6 unicast-routing Configure a Stateless DHCPv6 Server Step 1 . Enable IPv6 routing. R1(config)# ipv6 unicast-routing Step 2. Define a DHCPv6 pool name. R1(config)# ipv6 dhcp pool IPV6-STATELESS Step 3. Configure the DHCPv6 pool. Rl(config-dhcpv6)# dns-server 2001:db8:acad:l::254 Rl(config-dhcpv6)# domain-name example.com Rl(config-dhcpv6)# exit Step 4. Bind the DHCPv6 pool to an interface. R1(config)# interface GigabitEthemetO/O/1 Rl(config-if)# description Link to LAN Rl(config-if)# ipv6 address fe80::l link-local Rl(config-if)# ipv6 address 2001:db8:acad: 1::1/64 Rl(config-if)# ipv6 nd other-config-flag Rl(config-if)# ipv6 dhcp server IPV6-STATELESS Rl(config-if)# no shut Rl(config-if)# end Step 5. Verify that the hosts have received IPv6 addressing information. Configure a Stateless DHCPv6 Client Step 1. Enable IPv6 routing. R3(config)# ipv6 unicast-routing Step 2. Configure the client router to create an LLA. R3(config)# interface gO/O/1 R3(config-if)# ipv6 enable R3(config-if) Step 3. Configure the client router to use SLAAC. R3(config-if)# ipv6 address autoconfig R3(config-if)# end Step 4. Verify that the client router is assigned a GUA. R3# show ipv6 interface brief Step 5. Verify that the client router received other necessary DHCPv6 information R3# show ipv6 dhcp interface gO/O/1

  6. Page 6
    Read page 6 as text

    Configure a Stateful DHCPv6 Server Step 1. Enable IPv6 routing. Rl (config)# ipv6 unicast-routing Step 2. Define a DHCPv6 pool name. Rl (config)# ipv6 dhcp pool IPV6-STATEFUL Step 3. Configure the DHCPv6 pool. Rl(config-dhcpv6)# address prefix 2001:db8:acad:l::/64 Rl(config-dhcpv6)# dns-server 2001:4860:4860::8888 Rl(config-dhcpv6)# domain-name example.com R1(config-dhcpv6)# Step 4. Bind the DHCPv6 pool to an interface. R1(config)# interface GigabitEthemetO/O/1 Rl(config-if)# description Link to LAN Rl(config-if)# ipv6 address fe80::l link-local Rl(config-if)# ipv6 address 2001:db8:acad:l::1/64 Rl(config-if)# ipv6 nd managed-config-flag Rl(config-if)# ipv6 nd prefix default no-autoconfig Rl(config-if)# ipv6 dhcp server IPV6-STATEFUL Rl(config-if)# no shut Rl(config-if)# end Step 5. Verify that the hosts have received IPv6 addressing information. Configure a Statelful DHCPv6 Client Step 1. Enable IPv6 routing. R3(config)# ipv6 unicast-routing Step 2. Configure the client router to create an LLA. R3(config)# interface gO/O/1 R3(config-if)# ipv6 enable R3(config-if) Step 3. Configure the client router to use DHCPv6. R3(config-if)# ipv6 address dhcp R3(config-if)# end Step 4. Verify that the client router is assigned a GUA. R3# show ipv6 interface brief Step 5. Verify that the client router received other necessary DHCPv6 information R3# show ipv6 dhcp interface gO/O/1 DHCPv6 Server Verification Commands Rl# show ipv6 dhcp pool Rl# show ipv6 dhcp binding Configure a DHCPv6 Relay Agent 1(config)# interface gigabitethemet 0/0/1

14 more pages in the full document

Unlock it once and it stays in your library, ready to chat with or turn into flashcards.

Unlock the full document
See all

Study this document with CramX

Once it is in your library, every tool can work from it.