Cisco Networking Academy セメスタ 2 ラボ実習 5

はじめに

  • 目的
    • 初期導入時のルータコンフィグレーション(setupモード)
      setupモードによって、いくつかの質問に答えることで簡単にコンフィグファイルを作成することができる。
  • setupモードに入る場合
    • 起動時にスタートアップコンフィグが見つからない場合
    • 「setup」コマンドが入力されたとき

現時点でのコンフィグファイルを確認する

スタートアップコンフィグの削除

  • 入力コマンド
LAB_A# erase startup-config
  • 出力例
[OK]

スタートアップコンフィグ

  • 記憶場所
    • NVRAM
  • 入力コマンド
LAB_A# show startup-config
  • 出力例
%% Non-volatile configuration memory has not been set up or has bad checksum

ランニングコンフィグ

  • 記憶場所
    • RAM
  • 入力コマンド
LAB_A# show running-config
  • 出力例
Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname LAB_A
!
!
!
interface Ethernet0
 no ip address
 no logging event subif-link-status
 shutdown
!
interface Serial0
 no ip address
 no logging event subif-link-status
 shutdown
!
no ip classless
!
line con 0
line vty 0 4
 login
!
end

setupモードに入るための操作

コマンドからsetupモードに入る方法も有るが、今回はスタートアップコンフィグを削除してからルータを再起動し、
setupモードに入る方法を取る。

  • 入力コマンド
    LAB_A# erase startup-config
    LAB_A# reload

セットアップモード

  • 入出力例
         --- System Configuration Dialog ---

At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.

Continue with configuration dialog? [yes/no]: yes

First, would you like to see the current interface summary? [yes]:

Interface              IP-Address      OK? Method Status                Protocol
Ethernet0              192.168.250.253 YES NVRAM  up                    up
Serial0                unassigned      YES unset  administratively down down

Configuring global parameters:

  Enter host name [lab-gw]: LAB_A

The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.

  Enter enable secret [<Use current secret>]:

The enable password is used when there is no enable secret
and when using older software and some boot images.

  Enter enable password [0505091B2945400E]:
  Enter virtual terminal password [083B495E1918021C4A1E0D]:
  Configure SNMP Network Management? [no]:
  Configure IP? [yes]:
    Configure IGRP routing? [no]:
    Configure RIP routing? [yes]:

Configuring interface parameters:

Configuring interface Ethernet0:
  Is this interface in use? [yes]:
  Configure IP on this interface? [yes]:
    IP address for this interface [192.168.250.253]:
    Number of bits in subnet field [0]:
    Class C network is 192.168.250.0, 0 subnet bits; mask is /24

Configuring interface Serial0:
  Is this interface in use? [no]:

The following configuration command script was created:

hostname LAB_A
enable secret 5 $1$Gdbo$ixkioAXngTz5KxgBjWhkk/
enable password 7 0505091B2945400E
service password-encryption
line vty 0 4
password 7 083B495E1918021C4A1E0D
no snmp-server
!
ip routing
!
interface Ethernet0
ip address 192.168.250.253 255.255.255.0
!
interface Serial0
shutdown
no ip address
!
router rip
redistribute connected
network 192.168.250.0
!
end