IT Technology/Cisco

Cisco Network L2 Switch Config function

by빵수 2023. 5. 4. 17:16
728x90
반응형

Cisco Network L2 Switch Config function 대해서 알아보자.

 

Switch#
Switch#
Switch#sh run
Building configuration...

Current configuration : 9435 bytes
!
version 12.2
no service pad [과거X.25 프로토콜 사용시 사용하였던 기능으로, 현재는 불필요한 서비스로 보안 취약하여 서비스 중지]
service timestamps debug datetime localtime [디버깅 메시지에 타임스템프로 제공]
service timestamps log datetime localtime [로깅 메시지에 타임스템프로 제공]
no service password-encryption [패스워드 암호화 서비스 미사용 - secret 서비스보다 낮은 등급]
!
hostname Switch
!
boot-start-marker [부트 관련 설정시 시작점 알림 부분]
boot-end-marker [부트 관련 설정 시 끝점 알림 부분]
!
logging buffered 409600 [세션 로깅 버퍼 사이즈]
enable secret 5 $1$U7FE$HFBMgccY.dOMODrVjjZ13/ [enable secret - password 보다 높은 등급]
!
username nwadmin secret 5 $1$a4Ec$R4S/IbyMBIBZ76eDugtM60 [사용자 계정 정보}
!
!
no aaa new-model [외부 인증서버 계정 연동 설정]
clock timezone KST 9 [시간 설정]
system mtu routing 1500 [mtu 사이즈 기본 설정]
vtp mode transparent [VLAN 복제 기술 모드 설정]
!
!
!
! [SSH key 설정]
crypto pki trustpoint TP-self-signed-2639173504
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-2639173504
 revocation-check none
 rsakeypair TP-self-signed-2639173504
!
!
crypto pki certificate chain TP-self-signed-2639173504
 certificate self-signed 01
  30820242 308201AB A0030201 02020101 300D0609 2A864886 F70D0101 04050030
  31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
  69666963 6174652D 32363339 31373335 3034301E 170D3933 30333031 30303031
  30365A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
  4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 36333931
  37333530 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
  8100B4F8 DA7D6F4B 1FE9F548 B96320BF 03B39ACE D35D6AAA 97F6E612 F81CD27F
  AB5C5A61 43333295 E37C44B4 3ED23E81 B5F4688D 88C532C7 D10F8A20 BA04DB8B
  C6324737 15F9364E CA58386F C1B2E589 1732B2DF 594D4BF6 D60A4088 131FC496
  6E59BC66 A47AF7AD 2C7E8585 81DFDBB2 9F0B72E4 D80E07ED F0E0FEE7 BEBA52BB
  F9470203 010001A3 6A306830 0F060355 1D130101 FF040530 030101FF 30150603
  551D1104 0E300C82 0A434C54 5F522644 5F342E30 1F060355 1D230418 30168014
  7758FE06 671E01BE E70BBB28 A1742902 42209FD7 301D0603 551D0E04 16041477
  58FE0667 1E01BEE7 0BBB28A1 74290242 209FD730 0D06092A 864886F7 0D010104
  05000381 81004CF5 AED9A070 4CE7281F AA5C2781 BF2F0FC0 E2BBDD6A FE33027F
  E8F1B930 70D1CAAD 058FCE25 06BC8F76 591F84DE D58EA4AE 09FBA974 16C4580D
  5B9D9505 398FEE78 320373D0 DB1B5ADE 09799C62 A7F6980D 2881A796 835CC09A
  4A2BF3D2 9E31E4AA C4E6120E D1D2E2F6 876B4F9D B2509849 CCEC5CF2 C7A3A435
  786B94CB 5CED
  quit
!
!
!
spanning-tree mode pvst [VLAN간 루핑 방지 설정]
spanning-tree extend system-id [타벤더 장비와 pvst 연동을 위한 pvst 추가 옵션 설정]
!
vlan internal allocation policy ascending [vlan 내부 할당 정책-기본값(변경가능)]
!
vlan 100
!
!

interface FastEthernet0/1 [인터페이스 설정]
 switchport access vlan 100 [VLAN 설정]
 switchport mode access [포트 사용 모드 VLAN 설정]
 power inline consumption 6500 [PoE 사용량 설정]
 spanning-tree portfast [스패팅 트리 방식 설정]
!
interface FastEthernet0/2
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/3
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/4
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/5
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/6
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/7
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/8
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/9
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/10
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/11
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/12
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/13
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/14
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/15
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/16
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/17
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/18
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/19
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/20
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/21
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/22
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/23
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/24
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/25
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/26
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/27
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/28
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/29
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/30
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/31
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/32
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/33
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/34
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/35
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/36
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/37
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/38
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/39
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/40
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/41
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/42
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/43
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/44
 switchport access vlan 100
 switchport mode access
 spanning-tree portfast
!
interface FastEthernet0/45
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/46
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/47
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface FastEthernet0/48
 switchport access vlan 100
 switchport mode access
 power inline consumption 6500
 spanning-tree portfast
!
interface GigabitEthernet0/1
 switchport access vlan 100
 switchport mode access
!
interface GigabitEthernet0/2
 switchport access vlan 100
 switchport mode access
!
interface GigabitEthernet0/3
 switchport access vlan 100
 switchport mode access
!
interface GigabitEthernet0/4
 switchport access vlan 100
 switchport mode access
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan100
 ip address 192.168.100.300 255.255.255.0
!
ip classless [패킷의 목적지 ip 주소와 일치하는 최선의 경로를 찾아서 처리하는 기능]
ip http server [웹 설정 기반 기능 활성화]
ip http secure-server [웹 설정 기반 기능 설정 활성화]
!
snmp-server community hjs RO [SNMP 서버 설정]
!
!
line con 0 [콘솔 케이블 접근 설정]
line vty 0 4 [원격 접근 설정]
 password cltnet
 login local
line vty 5 15 [원격 접근 설정]
 login
!
ntp clock-period 36028835 [하드웨어 보정하는 장비별 자동 설정 값]
ntp server 2.2.2.2 [ntp 서버 설정]
end

Switch#$
Switch#
Switch#
Switch#

반응형