본문 바로가기

IT/network

시스코 스위치 초기 설정

1. 스위치 호스트 네임 설정

   - Switch#conf t

   - Switch(config)#hostname Seoul_L2_SW1 

 

2. 패스워드 설정 및 cisco 계정 사용 중지
   - Seoul_L2_SW1(config)#username admin secret ******** 
   - Seoul_L2_SW1(config)#enable secret ******** 
   - Seoul_L2_SW1(config)#no username cisco

 

3. 관리용 IP 설정

   - Seoul_L2_SW1(config)#int vlan 1 
   - Seoul_L2_SW1(config-if)#no shut 
   - Seoul_L2_SW1(config-if)#ip address 192.168.0.11 255.255.255.0 

4. 기본 게이트웨이 설정
   - Seoul_L2_SW1(config)#ip default-gateway 192.168.0.1

5. 텔넷 설정

   - Seoul_L2_SW1(config)#line vty 0 4 
   - Seoul_L2_SW1(config-line)#password ********

6. 저장

   - Seoul_L2_SW1(config)#wr

 

7. VLAN 생성하기

   - Seoul_L2_SW1_PoE#conf t
   - Seoul_L2_SW1_PoE(config)#vlan 10

   - Seoul_L2_SW1_PoE(config-vlan)#name DEVICE

 

8. VLAN 할당하기

   - Seoul_L2_SW1_PoE#conf t
   - Seoul_L2_SW1_PoE(config)#int range fa 0/1 - 20
   - Seoul_L2_SW1_PoE(config-if-range)#switchport mode access
   - Seoul_L2_SW1_PoE(config-if-range)#switchport access vlan 20

9. TRUNK 할당하기

   - Seoul_L2_SW1_PoE#conf t 

   - Seoul_L2_SW1_PoE(config)#interface range fa 0/21 - 24

   - Seoul_L2_SW1_PoE(config-if-range)#switchport mode trunk
   - Seoul_L2_SW1_PoE(config-if-range)#description ##Access_Point##

 

   - Seoul_L2_SW1_PoE(config)#int range gi 0/1 - 2
   - Seoul_L2_SW1_PoE(config-if-range)#switch mode trunk
   - Seoul_L2_SW1_PoE(config-if-range)#description ##L3_UpLink##

   - Seoul_L2_SW1_PoE(config-if-range)#switchport trunk allowed vlan add 1,10,20,254



 

'IT > network' 카테고리의 다른 글

시스코 스위치 초기화 - C2960  (0) 2019.08.05
시스코 스위치 초기화 - C3750  (0) 2019.08.05
시스코 스위치 콘솔 접속  (0) 2019.08.05