(WIP)
概要
Ciscoのルーターとスイッチを購入したので、電源つけたりケーブルを接続したり...などなどもろもろやってみたことをまとめてみました
機器
- Cisco 1821J/K9 1台
- WS-C3560V2-24TS-E 3台
- コンソールケーブル
- シリアル・インターフェース変換アダプタ
- 電源の3Pから2Pに変換するプラグ
やったこと
ルーターを電源に接続
★写真を後で追加
ルーターにTeraTermで接続
TereTermにこんな文字が・・・!
--- System Configuration Dialog ---
Enable secret warning
----------------------------------
In order to access the device manager, an enable secret is required
If you enter the initial configuration dialog, you will be prompted for the enable secret
If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret,
please set an enable secret using the following CLI in configuration mode-
enable secret 0 <cleartext password>
----------------------------------
Would you like to enter the initial configuration dialog? [yes/no]:
おそらくなんかの初期設定をしろといっている模様・・・?
ルーターの諸々設定
Would you like to enter the initial configuration dialog? [yes/no]:
でyesを選択したため初期設定がはじまる模様・・・
実際にyesと答えると、
```
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 '[]'.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system
Would you like to enter basic management setup? [yes/no]:
と表示された。
Would you like to enter basic management setup? [yes/no]:
yes
ときかれているので、と答えると
Would you like to enter basic management setup? [yes/no]: yes
Configuring global parameters:
Enter host name [Switch]:
```
ホスト名の設定がはじまるっぽい!
ホスト名の設定
Enter host name [Switch]: switch-1
今回はswitch-1にする
シークレット(?パスワード)設定
The enable secret is a password used to protect access to
privileged EXEC and configuration modes. This password, after
entered, becomes encrypted in the configuration.
Enter enable secret:
Enter enable secret:に*****を入力する
パスワード設定
The enable password is used when you do not specify an
enable secret password, with some older software versions, and
some boot images.
Enter enable password:
Enter enable password: に*****を入力する
仮想端末パスワード
The virtual terminal password is used to protect
access to the router over a network interface.
Enter virtual terminal password:
Enter virtual terminal password:に*****を入力する
SNMPの設定
Configure SNMP Network Management? [no]:
SNMPの設定はとりあえず後回しでも良いかな・・・?多分・・・なのでnoにしておく
接続先インターフェースの設定?
Current interface summary
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES unset up down
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
Enter interface name used to connect to the
c```
よくわからん・・・よくわからんからVlan1とか入力してみる(どうせ後から変えられるだろう)
management network from the above interface summary:Vlan1
```
Vlan1の設定
Configuring interface Vlan1:
Configure IP on this interface? [no]:
Vlan1の設定しますかっていってるっぽいので設定変更してみる
IP address for this interface:
IPアドレスを入力しろとのことなので入力する:192.168.1.2
Subnet mask for this interface [255.255.255.0] :
サブネットマスクを入力しろとのことなので入力する:255.255.255.0
Class C network is 192.168.1.0, 24 subnet bits; mask is /24
できたっぽい
Would you like to enable as a cluster command switch? [yes/no]:
クラスタコマンドが動とか言っているがよくわからんのでnoにする(どうせ後で・・・)
```
hostname switch-1
enable secret 4 cz0gPoEqpyNpSYuN/6Mdblcrqtcht4rmZzge7D9dpRU
enable password *****
line vty 0 15
password *****
no snmp-server
!
no ip routing
!
interface Vlan1
no shutdown
ip address 192.168.1.2 255.255.255.0
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
Enter your selection [2]:
おっ!どうやら設定全部終わったのかな?
0で設定をやり直せて、2でIOSの操作とかできるっぽい・・・
個人的にインタラクティブに設定するのがすきでないので0を押す(笑)
Enter your selection [2]:1
そうすると、、、
% You can enter the setup, by typing setup at IOS command prompt
Switch>
```
おっ!IOSプロンプトに!