1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cisco設定

Last updated at Posted at 2024-10-03

2960シリーズの設定サンプル

Switch>en
Switch#conf t

! LLDP有効化
lldp run

! ホスト名の設定
Switch(config)#hostname RT1

! 未定義のコマンドをDNSサーバへ参照しに行かないようにする
RT1(config)#no ip domain-lookup

! 入力途中でログが割り込まないようにする
RT1(config)#line console 0
RT1(config-line)#logging synchronous
RT1(config-line)#exit

! sshの設定準備とログ割り込みしないように
RT1(config)#line vty 0 4
RT1(config-line)#login local
RT1(config-line)#logging synchronous
!sshのみ接続を許可
RT1(config-line)#transport input ssh
RT1(config-line)#exit

! ドメイン名を指定 ドメイン名は適宜変更してください
RT1(config)#ip domain-name cisco.com

! RSA鍵生成
RT1(config)#crypt key generate rsa

!
!
! ここで入力を求められます。を入力します。1024
!
!

! sshのVersion指定
RT1(config)#ip ssh version 2

! 特権モードへ入るためのPW
enable secret PASSWORD
! PWは暗号化されずに保存される
username USER1 password PASSWORD

! 最後にPW全般の暗号化
service password-encryption


spanning-tree mode mst
spanning-tree loopguard default
spanning-tree extend system-id
!
spanning-tree mst configuration
 name a_f_o_s
 instance 1 vlan 10
 instance 2 vlan 20
 instance 3 vlan 30
 instance 4 vlan 40
 instance 5 vlan 50
 instance 6 vlan 60
 instance 7 vlan 70
 instance 8 vlan 80
 instance 10 vlan 100
 instance 11 vlan 110
 instance 12 vlan 120
 instance 15 vlan 200
!
spanning-tree mst 0-200 priority 12288
  • 管理VLANのIP決めと
  • デフォルトゲートの設定
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?