2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ネットワーク機器の初期設定

Posted at

ネットワーク機器の初期設定

検証とやるときに毎回最低限入れたいな~と思うコマンドをコピペで入れられるように整理。もっと良い内容のものがググると説明付きでいっぱいありますが、自分が欲しいのをコピペで入れたいので。

仕様

  • cisco機器について
    • Cisco特有の機能は基本的に全てdisable。
    • IOSは15系
  • Juniper SRX用も書きたい。

Cisco製ネットワーク機器の初期設定

時刻、ホスト名、MntNWのIPは手動であわせる。Interfaceの設定も機器に合わせる。

L2

L2(IOS15系)
# conf t
clock timezone JST 9
do clock set HH:mm:ss DD MMM YYYY
service sequence-numbers
service timestamps debug datetime msec localtime show-timezone year
service timestamps log datetime msec localtime show-timezone year

hostname c2960-XX
#service password-encryption
enable password hoge

vtp mode off
no spanning-tree vlan 1-4094
no ip domain-lookup
no ip source-route
no ip http server
no ip http secure-server
no cdp run
no vstack
no service pad
no service password-encryption
no service dhcp
no service config
service tcp-keepalives-in
service tcp-keepalives-out
!
int range f0/1 - 24 , g0/1 - 2
# int range f0/1 - 48 , g0/1 - 2
# int range f1/0/1 - 48 , g1/0/1 - 2
 shutdown
 load-interval 30
exit
!
int vlan 1
 shutdown
exit
!
int vlan 10
 desc management
 ip address 192.168.255.2XX 255.255.255.0
 no shutdown
exit
!
line con 0
 password hoge
 logging synchronous
 login
 exec prompt timestamp
exit
!
line vty 0 15
 password hoge
 logging synchronous
 login
 exec prompt timestamp
exit
!
end

また思いついたら随時追加。

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?