다음과 같이 네트워크를 구성해서 VLAN 끼리 통신이 가능하도록 하시오. ------------------------------------------------------------------------------------------------------------------ Switch 0 설정 Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#vlan 10 name VLAN1 Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fa 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface fa 0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit Switch(config)#interface range fa 0/4 - 5 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 30 Switch(config-if-range)#exit Switch(config)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan br Switch# Switch 1 설정 Switch#vlan database Switch(vlan)#vlan 10 name VLAN1 Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fa 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan1 ^ % Invalid input detected at '^' marker. Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface fa 0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit Switch(config)#interface range fa 0/4 - 5 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 30 Switch(config-if-range)#exit Switch(config)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan br Switch# ------------------------------------------------------------------------ 트렁크 설정 Switch#conf t --------------------------------------------------------------------------- 설정 확인 Pinging 10.1.1.6 with 32 bytes of data: Reply from 10.1.1.6: bytes=32 time=156ms TTL=128 Ping statistics for 10.1.1.6: --------------------------------------------------------------------------- Pinging 10.1.1.7 with 32 bytes of data: Request timed out. Ping statistics for 10.1.1.7: 공유하기 게시글 관리 구독하기bban2's Tistory'CCNA 기초' 카테고리의 다른 글IP Routing - Static routing & router0, 1, 2 (0)2008.12.01IP Routing - Static routing & router0, 1 (0)2008.12.01VTP 설정하기 (0)2008.12.01CCNA 기초 - L2 이더 채널 설정 및 확인 (0)2008.11.30CCNA 기초 - VLAN (Virtual LAN) (0)2008.11.30CCNA 기초 - Switch 기본설정 (0)2008.11.28 |