vlan
=================
1. conf)#vlan 10
2. #vlan database
-vlan)#vlan 10
=================
interface fa0/1
switchport mode access
swtichport access vlan 10
=================
확인
show vlan
show vlan-switch
=================
trunk
=================
1. 802.1Q (TAG) IEEE
2. ISL (Encapsulation) CISCO
=================
interface fa0/1
switchport trunk encapsulation [dot1q, isl]
switchport mode trunk
=================
확인
show interface trunk
=================
(DTP,Native vlan(802.1Q), allowed vlan)
switchport mode access
switchport mode trunk (DTP)
switchport mode dynamic desirable (DTP)
switchport mode dynamic auto (Default)
-------------------------------------------
2일차
VTP (VLAN TRUNK PROTOCOL) CISCO
1. trunk
2. VTP domain name
3. (option)vtp password
==================
1. config)#vtp domain BCMSN
config)#vtp mode [server, client, transparent]
config)#vtp pruning ===> no vtp pruning
cnofig)#vtp password cisco ===> no vtp password
2. #vlan database
-vlan)#vtp domain BCMSN
-vlan)#vtp [server, client, transparent]
-vlan)#vtp pruning
-vlan)#vtp password cisco
==================
확인
show vtp status
show vtp counters
==================
------------------------------------------
실습2
sw1(config)#interface fa1/1
sw1(config-if)#switchport mode trunk
sw1(config-if)#no shut
sw1(config-if)#exit
sw1(config)#interface fa1/3
sw1(config-if)#switchport mode trunk
sw1(config-if)#no shut
sw1(config-if)#exit
sw2(config)#interface fa1/1
sw2(config-if)#switchport mode trunk
sw2(config-if)#no shut
sw2(config-if)#exit
sw2(config)#interface fa1/5
sw2(config-if)#switchport mode trunk
sw2(config-if)#no shut
sw2(config-if)#exit
sw3(config)#interface fa1/5
sw3(config-if)#switchport mode trunk
sw3(config-if)#no shut
sw3(config-if)#exit
sw3(config)#interface fa1/3
sw3(config-if)#switchport mode trunk
sw3(config-if)#no shut
sw3(config-if)#exit
---------
확인
show interface trunk
sw1(config)#interface vlan 1
sw1(config-if)#ip address 192.168.1.1 255.255.255.0
sw1(config-if)#no shut
sw2(config)#interface vlan 1
sw2(config-if)#ip address 192.168.1.2 255.255.255.0
sw2(config-if)#no shut
sw3(config)#interface vlan 1
sw3(config-if)#ip address 192.168.1.3 255.255.255.0
sw3(config-if)#no shut
--------
sw1#vlan database
sw1(vlan)#vtp domain BCMSN
Domain name already set to BCMSN .
sw1(vlan)#vtp server
Device mode already VTP SERVER.
sw1(vlan)#
sw2#vlan database
sw2(vlan)#vtp domain BCMSN
Domain name already set to BCMSN .
sw2(vlan)#vtp client
Setting device to VTP CLIENT mode.
% not enough space on flash to store vlan database. trying squeeze...First create squeeze log by erasing the entire device
% error squeezing flash - (Missing or corrupted log)
sw2(vlan)#
sw3#vlan database
sw3(vlan)#vtp domain BCMSN
Domain name already set to BCMSN .
sw3(vlan)#vtp client
Setting device to VTP CLIENT mode.
% not enough space on flash to store vlan database. trying squeeze...First create squeeze log by erasing the entire device
% error squeezing flash - (Missing or corrupted log)
sw3(vlan)#
-------
vlan 생성
sw1#vlan database
sw1(vlan)#vlan 10
VLAN 10 modified:
sw1(vlan)#vlan 20
VLAN 20 modified:
sw1(vlan)#vlan 30
VLAN 30 modified:
sw1(vlan)#vlan 40
VLAN 40 modified:
sw1(vlan)#vlan 50
VLAN 50 modified:
sw1(vlan)#vlan 60
VLAN 60 modified:
--------
2,3번에서 vlan 생성 확인
show vlan-switch
show vtp status
--------
sw2, sw3에서는 vlan 생성 안됨
--------
sw1#vlan database
sw1(vlan)#vtp password cisco
Setting device VLAN database password to cisco.
sw1(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
sw1(vlan)#exit
APPLY completed.
Exiting....
sw1#
암호때문에 sw2,sw3 vlan 10 생성 X
sw2#vlan database
sw2(vlan)#vtp password cisco
Setting device VLAN database password to cisco.
sw2(vlan)#exit
In CLIENT state, no apply attempted.
Exiting....
sw2#
sw3#vlan database
sw3(vlan)#vtp password cisco
Setting device VLAN database password to cisco.
sw3(vlan)#exit
In CLIENT state, no apply attempted.
Exiting....
sw1#vlan database
sw1(vlan)#vlan 70
VLAN 70 added:
Name: VLAN0070
sw1(vlan)#exit
APPLY completed.
Exiting....
sw1#
확인하면 이제 생성 O
----------------
transparent mode
sw2# vlan database
sw2(vlan)#vtp transparent ==>> revision num 0
Setting device to VTP TRANSPARENT mode.
sw2(vlan)#exit
APPLY completed.
Exiting....
sw2#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 12
VTP Operating Mode : Transparent
VTP Domain Name : BCMSN
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xB9 0x0D 0xD8 0x07 0x70 0x8D 0xF7 0x88
Configuration last modified by 192.168.1.1 at 3-1-93 00:11:15
sw1(vlan)#vlan 80
VLAN 80 added:
Name: VLAN0080
--> sw3에만 80 생성
--------------
pruning
sw1#vlan database
sw1(vlan)#vtp pruning
Pruning switched ON
sw1(vlan)#exit
APPLY completed.
Exiting....
sw1#
VTP Pruning Mode : Enabled
----------------------------------------------
교재 5장.
native vlan (untag traffic) ===> vlan 1 (default) ===> vlan X
VLAN 1 ===> management traffic
----------------------------------------------
교재 6장.
STP(Spanning-tree protocol) 802.1D PVST
IEEE표준
1. 시간 - 해결 : RSTP(Rapid Spannnig-tree protocol) 802.1W
2. CPU - 해결 : MSTP(Multiple Spanning-tree protool) 802.1S
CISCO표준
1. 시간 - portfast, unlinkfast, backbonfast
----------------
실습2-5번문제
show spanning-tree vlan 1 brief
sw3#show spanning-tree vlan 1 brief
VLAN1
Spanning tree enabled protocol ieee
Root ID Priority 32768
Address c800.0c58.0000
Cost 19
Port 44 (FastEthernet1/3)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768
Address c802.0c58.0000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 0
Interface Designated
Name Port ID Prio Cost Sts Cost Bridge ID Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/3 128.44 128 19 FWD 0 32768 c800.0c58.0000 128.44
FastEthernet1/5 128.46 128 19 BLK 19 32768 c801.0c58.0000 128.46
--------------------------
port status
1. listen (STP) ==> loop방지 (15sec)
2. learn (MAC 학습) ==> broadcast 감소 (15sec)
3. forwarding
------------------
==STP 계산법==
1. Root bridge 선출 (VLAN 마다)
(Priority(32768) ==> MAC) 낮은값 우선
2. Root port 선출 (non-root bridge마다)
(cost ==> port-id(sender port-id, 자신의 포트 아이디가 아니라 상대방의 포트 아이디)) 낮은값 우선
(100M ==> 19, 10M ==> 100)
3. Designated port선출 (segment 마다)
(cost
sw3#show spanning-tree vlan 1 brief
로 확인
-----------------
port role
1. designated port (BPDU 송신)
2. root port (BPDU 수신)
3. blocking port (BPDU 수신) traffic 차단
Root bridge 조정 (SW1 ROOT Bridge ===> SW3)
sw3
config)#spanning-tree vlan 1 priority 32767
config)#spanning-tree vlan 1 root primary
config)#spanning-tree vlan 1 root secondary
결과
sw2#show spanning-tree vlan 1 brief
FastEthernet1/1 128.42 128 19 BLK 19 32768 c800.0c58.0000 128.42
blocking 되어있음
------------------
sw2
spanning-tree vlan 1 root primary
결과
sw1 > FastEthernet1/3 128.44 128 19 BLK 19 32767 c802.0c58.0000 128.44
------------------
BPDU 의 타입 두가지
1. configuration BPDU
2. TCN BPDU
Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다
Trackback RSS : http://dhappy.net/rss/trackback/77
Trackback ATOM : http://dhappy.net/atom/trackback/77



