network/ccna

[CCNA] Section 4 lab-exercise

xudegloss 2024. 3. 18. 23:46

1) User Exec Mode

## reboot ##
Router#reload
Proceed with reload? [confirm]
System Bootstrap, Version 15.1(4)M4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2010 by cisco Systems, Inc.
Total memory size = 512 MB - On-board = 512 MB, DIMM0 = 0 MB
CISCO2911/K9 platform with 524288 Kbytes of main memory
Main memory is configured to 72/-1(On-board/DIMM0) bit mode with ECC disabled

Readonly ROMMON initialized

program load complete, entry point: 0x80803000, size: 0x1b340
program load complete, entry point: 0x80803000, size: 0x1b340

IOS Image Load Test
___________________
Digitally Signed Release Software
program load complete, entry point: 0x81000000, size: 0x3bcd3d8
Self decompressing the image :
########################################################################## [OK]
Smart Init is enabled
smart init is sizing iomem
                  TYPE      MEMORY_REQ
     Onboard devices &
          buffer pools      0x022F6000
-----------------------------------------------
                TOTAL:      0x022F6000
Rounded IOMEM up to: 36Mb.
Using 6 percent iomem. [36Mb/512Mb]

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M5, RELEASE SOFTWARE (fc2)Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
Image text-base: 0x2100F918, data-base: 0x24729040

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco CISCO2911/K9 (revision 1.0) with 491520K/32768K bytes of memory.
Processor board ID FTX152400KS
3 Gigabit Ethernet interfaces
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
249856K bytes of ATA System CompactFlash 0 (Read/Write)


         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]:no
## ? 이용하여 사용할 수 있는 명령어 확인 가능 ##
Router>?
Exec commands:
  <1-99>      Session number to resume
  connect     Open a terminal connection
  disable     Turn off privileged commands
  disconnect  Disconnect an existing network connection
  enable      Turn on privileged commands
  exit        Exit from the EXEC
  logout      Exit from the EXEC
  ping        Send echo messages
  resume      Resume an active network connection
  show        Show running system information
  ssh         Open a secure shell client connection
  telnet      Open a telnet connection
  terminal    Set terminal line parameters
  traceroute  Trace route to destination

 

2) Privilleged Exec Mode (Enable)

Router>enable # user exec mode에서 previleged exec mode
Router#disable # previleged exec mode에서 user exec mode
## sh로 시작하는 모든 명령어 ##
Router#sh?
show  

## show 명령어의 모든 옵션 ##
Router#sh ?
  aaa                Show AAA values
  access-lists       List access lists
  arp                Arp table
  cdp                CDP information
  class-map          Show QoS Class Map
  clock              Display the system clock
  controllers        Interface controllers status
  crypto             Encryption module
  debugging          State of each debugging option
  dhcp               Dynamic Host Configuration Protocol status
  dot11              IEEE 802.11 show information
  file               Show filesystem information
  flash:             display information about flash: file system
  flow               Flow information
  frame-relay        Frame-Relay information
  history            Display the session command history
  hosts              IP domain-name, lookup style, nameservers, and host table
  interfaces         Interface status and configuration
  ip                 IP information
  ipv6               IPv6 information
  license            Show license information
  line               TTY line information
  lldp               LLDP information
  logging            Show the contents of logging buffers
  login              Display Secure Login Configurations and State
  mac-address-table  MAC forwarding table
  ntp                Network time protocol
  parser             Show parser commands
  policy-map         Show QoS Policy Map
  pppoe              PPPoE information
  privilege          Show current privilege level
  processes          Active process statistics
  protocols          Active network routing protocols
  queue              Show queue contents
  queueing           Show queueing configuration
  running-config     Current operating configuration
  secure             Show secure image and configuration archive
  sessions           Information about Telnet connections
  snmp               snmp statistics
  spanning-tree      Spanning tree topology
  ssh                Status of SSH server connections
  standby            standby configuration
  startup-config     Contents of startup configuration
  storm-control      Show storm control configuration
  tcp                Status of TCP connections
  tech-support       Show system information for Tech-Support
  terminal           Display terminal configuration parameters
  users              Display information about terminal lines
  version            System hardware and software status
  vlan-switch        VTP VLAN status
  vtp                Configure VLAN database
  zone               Zone Information
  zone-pair          Zone pair information
## mode에 맞지 않는 명령어를 입력한 경우 혹은 명령어를 잘못 입력한 경우 (오타) ##
% Invalid input detected at '^' marker.

 

3) Global Configuration Mode

hostname host table
시스템 호스트 이름 각각의 Cisco 장비가 네트워크에서 IP 찾기 어려움
라우터와 연결하고자 하는 장비와 IP 설정하여 장비로 기억할 수 있도록 설정

 

1) 호스트 테이블 추가

Router(config)#ip ?
  access-list       Named access-list
  cef               Cisco Express Forwarding
  default-gateway   Specify default gateway (if not routing IP)
  default-network   Flags networks as candidates for default routes
  dhcp              Configure DHCP server and relay parameters
  domain            IP DNS Resolver
  domain-lookup     Enable IP Domain Name System hostname translation
  domain-name       Define the default domain name
  flow-export       Specify host/port to send flow statistics
  forward-protocol  Controls forwarding of physical and directed IP broadcasts
  ftp               FTP configuration commands
  host              Add an entry to the ip hostname table
  local             Specify local options
  name-server       Specify address of name server to use
  nat               NAT configuration commands
  route             Establish static routes
  routing           Enable IP routing
  scp               Scp commands
  ssh               Configure ssh options
  tcp               Global TCP parameters
Router(config)#ip 
% Incomplete command.
Router(config)#ip host ?
  WORD  Name of host
Router(config)#ip host 
% Incomplete command.
Router(config)#ip host Server1 ?
  <0-65535>   Default telnet port number
  A.B.C.D     Host IP address
  X:X:X:X::X  Host IPv6 Address
Router(config)#ip host Server1 1.1.1.1
Router(config)#ip host Server2 2.2.2.2

 

2) 호스트 네임 변경

Router(config)#hostname ?
  WORD  This system's network name
Router(config)#hostname R1

R1(config)#do show run
Building configuration...

Current configuration : 737 bytes
...

 

3) 인터페이스 요약 정보 확인

R1#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES NVRAM  administratively down down 
GigabitEthernet0/1     unassigned      YES NVRAM  administratively down down 
GigabitEthernet0/2     unassigned      YES NVRAM  administratively down down 
Vlan1                  unassigned      YES NVRAM  administratively down down

 

4) 인터페이스 접속 방법

R1(config)#interface GigabitEthernet ?
  <0-9>  GigabitEthernet interface number
R1(config)#interface GigabitEthernet 0/0 
R1(config-if)#

 

5) 백업

R1#copy ?
  flash:          Copy from flash: file system
  ftp:            Copy from ftp: file system
  running-config  Copy from current system configuration
  scp:            Copy from scp: file system
  startup-config  Copy from startup configuration
  tftp:           Copy from tftp: file system

R1#
R1#copy run ?
  flash:          Copy to flash file
  ftp:            Copy to current system configuration
  scp:            Copy to scp: file system
  startup-config  Copy to startup configuration
  tftp:           Copy to current system configuration