Catalyst 2960Lの初期設定
ファンレス Ciscoスイッチの Catalyst 2960L 8Portをゲットしたので
初期設定
Would you like to enter the initial configuration dialog? [yes/no]: no Would you like to terminate autoinstall? [yes]:
対話形式での初期設定なんぞしないので no で抜ける
ホスト名の設定
Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname Cat2960L Cat2960L(config)#
管理インターフェース (vlan1)の設定と起動
Cat2960L(config)# Cat2960L(config)#interface vlan 1 Cat2960L(config-if)#ip address 192.168.10.254 255.255.255.0 Cat2960L(config-if)#no shutdown Cat2960L(config-if)#
各インターフェースの状態確認
Cat2960L(config-if)#do show ip int brief Interface IP-Address OK? Method Status Protocol Vlan1 192.168.10.254 YES manual up down GigabitEthernet0/1 unassigned YES unset down down GigabitEthernet0/2 unassigned YES unset down down GigabitEthernet0/3 unassigned YES unset down down GigabitEthernet0/4 unassigned YES unset down down GigabitEthernet0/5 unassigned YES unset down down GigabitEthernet0/6 unassigned YES unset down down GigabitEthernet0/7 unassigned YES unset down down GigabitEthernet0/8 unassigned YES unset down down GigabitEthernet0/9 unassigned YES unset down down GigabitEthernet0/10 unassigned YES unset down down Cat2960L(config-if)#
取り敢えず面倒臭いので一旦全I/Fを起動
Cat2960L(config)# Cat2960L(config)#interface range gigabitEthernet 0/1-10 Cat2960L(config-if-range)#no shutdown Cat2960L(config-if-range)#
時刻及び時刻同期設定
Cat2960L# Cat2960L#show clock 09:23:14.911 UTC Sun Feb 24 2019 Cat2960L#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Cat2960L(config)# Cat2960L(config)#clock timezone JST 9 Cat2960L(config)# Cat2960L(config)#ntp server 210.173.160.27 Cat2960L(config)#do show clock detail 18:25:44.551 JST Sun Feb 24 2019 Time source is NTP Cat2960L(config)#
enableにパスワード入力するように設定
passwordで設定するとconfig見るとモロ見えになってしまうので注意
cat2960(config)#enable secret <password> cat2960(config)#
FiemwareのUpgradeは過去にあるのでそっち参照
telnet / http / https の禁止と、ssh の設定は後程