CDP 3 Switchsh cdp neighbors detail 1 Device
CDP 와 네트워크 구성도(3) Switch#sh cdp neighbors detail 1) 이웃 디바이스에 대한 정보 Device ID: Switch 2) 3계층 주소 정보 Entry address(es): IP address : 192. 168. 1. 2 Platform: cisco 2950, Capabilities: Switch Interface: Fast. Ethernet 0/1, Port ID (outgoing port): Fast. Ethernet 0/2 Holdtime: 168 Version : Cisco Internetwork Operating System Software IOS (tm) C 2950 Software (C 2950 -I 6 Q 4 L 2 -M), Version 12. 1(22)EA 4, RELEASE SOFTWARE(fc 1) Copyright (c) 1986 -2005 by cisco Systems, Inc. Compiled Wed 18 -May-05 22: 31 by jharirba advertisement version: 2 Duplex: full
CDP 와 네트워크 구성도(4) Switch#sh cdp entry * protocol : 인접한 장비의 3단계 주소만 을 확인 할 수 있다. Protocol information for Switch : IP Address: 192. 168. 1. 2 -------------Protocol information for Switch : IP Address: 192. 168. 1. 4
액세스 링크와 트렁크 링크(3) [스위치 구성] VLAN번호 1 2 3 4 서브넷 1. 1. 1. 0/24 2. 2. 2. 0/24 3. 3. 3. 0/24 4. 4. 4. 0/24 디폴트 게이트웨이 1. 1 2. 2. 2. 1 3. 3. 3. 1 4. 4. 4. 1 [라우터 구성] Router>en Router#conf t Router(config)#interface fa 0/0 Router(config-if)#no ip address Router(config-if)#exit Router(config)#interface fa 0/0. 1 Router(config-subif)#encapsulation dot 1 Q 1 Router(config-subif)#ip address 1. 1 255. 0 Router(config-subif)#exit
Switch>en Switch#conf t Switch(config)#vlan 11 Switch(config-vlan)#exit Switch(config)#vlan 12 Switch(config-vlan)#exit Switch(config)#interface fa 0/1 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#interface fa 0/2 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#interface fa 0/3 Switch(config-if)#switchport access vlan 12 Switch(config-if)#exit Switch(config)#interface fa 0/4 Switch(config-if)#switchport access vlan 12 Switch(config-if)#exit Switch(config)# VLAN 실습
VLAN 구성하기(PC 1 -PC 4) IP, Subnet Mast, Gateway, DNS 구성 IP 구성 192. 168. 10. 3 192. 168. 10. 4 192. 168. 10. 5 192. 168. 10. 6 G/W : 192. 168. 10. 1 DNS : 192. 168. 10. 2
VLAN 구성하기(스위치 2) [포트별로 VLAN 구현하기] Switch(config)#interface Fast. Ethernet 0/1 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#interface Fast. Ethernet 0/3 Switch(config-if)#switchport access vlan 12
VLAN 실습 (Trunk) ( Switch(config)#interface fa 0/1 Switch(config-if)# switchport trunk encapsulation dot 1 q Switch(config-if)#switchport mode trunk
Switch>en Switch#conf t Switch(config)#vlan 11 Switch(config-vlan)#exit Switch(config)#vlan 12 Switch(config-vlan)#exit [Switch 16 화면] Switch(config)#interface fa 0/2 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#interface fa 0/3 Switch(config-if)#switchport access vlan 12 Switch(config-if)#exit Switch(config)#interface fa 0/1 Switch(config-if)# switchport trunk encapsulation dot 1 q Switch(config-if)#switchport mode trunk
인캡슐레이션 이 표시 때문에 VLAN 1 에 속하는 브로드캐스트를 VLAN 1 포트로만 보낼 수 있다. A 스위치 Vlan 1 B 스위치 [인캡슐레이션] [시스코 전용방식] Switch(config-if)# switchport trunk encapsulation isl [IEEE 802. 1 Q Standard ] Switch(config-if)# switchport trunk encapsulation dot 1 q
스위치 (CLI 모드 1. ) : VLAN 의 이름과 번호 부여 하기 Switch>enable Switch#configure terminal Switch(config)#vlan 11 Switch(config-vlan)#name Vlan_1 Switch(config-vlan)#exit Switch(config)#vlan 12 Switch(config-vlan)#name Vlan_2 Switch(config-vlan)#exit Switch(config)#vlan 13 Switch(config-vlan)#name Vlan_3 Switch(config-vlan)#exit
스위치 (CLI 모드 2. ) : 포트에 VLAN 구성하기 Switch(config)#interface Fast. Ethernet 0/1 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#interface Fast. Ethernet 0/2 Switch(config-if)#switchport access vlan 12 Switch(config-if)#exit Switch(config)#interface Fast. Ethernet 0/3 Switch(config-if)#switchport access vlan 13 Switch(config-if)#exit
스위치 (CLI 모드 3. ) Switch(config)#interface Fast. Ethernet 0/24 Switch(config-if)# switchport trunk encapsulation dot 1 q Switch(config-if)#switchport mode trunk Switch(config-if)# : 스위치 끼리는 trunk 포트를 설정한다.
VLAN 구성하기(3 -2) pc들 마다 ip와 서브넷, 게이트웨이, DNS 주소를 입력한다. 192. 168. 1. 11 192. 168. 1. 12 1번 192. 168. 1. 13 스위치 192. 168. 1. 21 192. 168. 1. 22 192. 168. 1. 23 2번 스위치 192. 168. 1. 31 192. 168. 1. 32 192. 168. 1. 33 3번 스위치
- Slides: 42