Presentation is loading. Please wait.

Presentation is loading. Please wait.

스위칭 실습. Switch 2950 MAC 0c0022222222 Default priority 32768 Switch 2950 MAC 0c0011111111 Default priority 32768 Fa0/1 Fa0/2 Fa0/1 Fa0/2 Switch 3750 Mac.

Similar presentations


Presentation on theme: "스위칭 실습. Switch 2950 MAC 0c0022222222 Default priority 32768 Switch 2950 MAC 0c0011111111 Default priority 32768 Fa0/1 Fa0/2 Fa0/1 Fa0/2 Switch 3750 Mac."— Presentation transcript:

1 스위칭 실습

2 Switch 2950 MAC 0c0022222222 Default priority 32768 Switch 2950 MAC 0c0011111111 Default priority 32768 Fa0/1 Fa0/2 Fa0/1 Fa0/2 Switch 3750 Mac 0c0011110000 Default priority 4096 Gig 1/0/1 Root port (F) Nondesignated port (BLK)Designated port (F) Root port (F) Gig1/0/2 Designated port (F) Spanning-tree Vlan 1 priority 4096 STP(Spanning-Tree Protocol)

3 Vlan30 :192.168.30.x 255.255.255.0 Sw 2 Sw 1 Vlan40 :192.168.40.x 255.255.255.0 Sw 1: sever Sw 2: client Vtp domain :cisco Vtp encapsulation : dot1q F 0/1F 0/7F 0/6F 0/5F 0/3F 0/2F 0/23F 0/24 F 0/1F 0/7F 0/6F 0/5F 0/3F 0/2F 0/23F 0/24 1.Hostname : Sw1,Sw2 3. telnet password :cisco 4. Vlan30 Vlan40 2.Enable Password: cisco VTP(Vlan Trunking Protocol) 5. Int f0/1 – 7: access port 6.Int f0/23 – 24: trunk port

4 VTP sw1 config vtp mode sever vtp domain cisco ! Vlan30 Vlan40 interface GigabitEthernet1/0/1 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/2 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/3 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/5 switchport access vlan 40 switchport mode access ! interface GigabitEthernet1/0/6 switchport access vlan 40 switchport mode access ! vtp mode sever vtp domain cisco ! Vlan30 Vlan40 interface GigabitEthernet1/0/1 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/2 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/3 switchport access vlan 30 switchport mode access ! interface GigabitEthernet1/0/5 switchport access vlan 40 switchport mode access ! interface GigabitEthernet1/0/6 switchport access vlan 40 switchport mode access ! interface GigabitEthernet1/0/7 switchport access vlan 40 switchport mode access interface GigabitEthernet1/0/23 switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet1/0/24 switchport trunk encapsulation dot1q switchport mode trunk interface Vlan30 ip address 192.168.30.1 255.255.255.0 ! interface Vlan40 ip address 192.168.40.1 255.255.255.0 ! line con 0 logging synchronous line vty 0 4 password cisco interface GigabitEthernet1/0/7 switchport access vlan 40 switchport mode access interface GigabitEthernet1/0/23 switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet1/0/24 switchport trunk encapsulation dot1q switchport mode trunk interface Vlan30 ip address 192.168.30.1 255.255.255.0 ! interface Vlan40 ip address 192.168.40.1 255.255.255.0 ! line con 0 logging synchronous line vty 0 4 password cisco

5 VTP sw2 config vtp mode client vtp domain cisco ! interface FastEthernet0/1 switchport access vlan 30 switchport mode access ! interface FastEthernet0/2 switchport access vlan 30 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/5 switchport access vlan 40 switchport mode access ! interface FastEthernet0/6 switchport access vlan 40 switchport mode access vtp mode client vtp domain cisco ! interface FastEthernet0/1 switchport access vlan 30 switchport mode access ! interface FastEthernet0/2 switchport access vlan 30 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/5 switchport access vlan 40 switchport mode access ! interface FastEthernet0/6 switchport access vlan 40 switchport mode access FastEthernet0/7 switchport access vlan 40 switchport mode access ! interface FastEthernet0/23 switchport mode trunk ! interface FastEthernet0/24 switchport mode trunk ! interface Vlan30 ip address 192.168.30.2 255.255.255.0 ! interface Vlan40 ip address 192.168.40.2 255.255.255.0 ! line con 0 logging synchronous line vty 0 4 password cisco login FastEthernet0/7 switchport access vlan 40 switchport mode access ! interface FastEthernet0/23 switchport mode trunk ! interface FastEthernet0/24 switchport mode trunk ! interface Vlan30 ip address 192.168.30.2 255.255.255.0 ! interface Vlan40 ip address 192.168.40.2 255.255.255.0 ! line con 0 logging synchronous line vty 0 4 password cisco login

6 [LAB] VLAN VLAN 10 VLAN 20 A F0/0 VLAN 10 (red) : 192.168.10.0 /24 VLAN 20 (blue) : 192.168.20.0 /24 Router : F0/0.1 : 192.168.10.254 /24 Router : F0/0.2 : 192.168.20.254 /24 Router=1720, Switch=2950 F0/1 F0/11 F0/3 F0/12 F0/3 F0/1 192.168.10.0 192.168.20.0 F0/2 F0/4 F0/2 VLAN 10 VLAN 20 SW1 VLAN 1 IP : 192.168.1.251 /24 SW2 VLAN 1 IP : 192.168.1.252 /24

7 [LAB] VLAN Conf 2 SW1#vlan database SW1(vlan)#vlan 10 name red SW1(vlan)#vlan 20 name blue SW1(vlan)#exit SW1(config)#int fa0/1 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#int fa0/2 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1#vlan database SW1(vlan)#vlan 10 name red SW1(vlan)#vlan 20 name blue SW1(vlan)#exit SW1(config)#int fa0/1 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#int fa0/2 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit

8 [LAB] VLAN Conf 3 SW1#conf t SW1(config)#int fa0/3 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#int fa0/4 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1#conf t SW1(config)#int fa0/3 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#int fa0/4 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit

9 [LAB] VLAN Conf 4 SW1(config)#int fa0/11 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#exit SW1(config)#int fa0/12 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#end SW1(config)#int fa0/11 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#exit SW1(config)#int fa0/12 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#end

10 [LAB] VLAN Conf 5 Router#conf t Router(config)#int f0/0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#int f0/0.1 Router(config-subif)#ip address 192.168.10.254 255.255.255.0 Router(config-subif)#encapsulation dot1q 10 Router(config-subif)#exit Router(config)#int f0/0.2 Router(config-subif)#ip address 192.168.20.254 255.255.255.0 Router(config-subif)#encapsulation dot1q 20 Router(config-subif)#end Router#conf t Router(config)#int f0/0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#int f0/0.1 Router(config-subif)#ip address 192.168.10.254 255.255.255.0 Router(config-subif)#encapsulation dot1q 10 Router(config-subif)#exit Router(config)#int f0/0.2 Router(config-subif)#ip address 192.168.20.254 255.255.255.0 Router(config-subif)#encapsulation dot1q 20 Router(config-subif)#end

11 [LAB] VLAN VLAN 10 VLAN 10 (red) : 192.168.10.0 /24 VLAN 20 (blue) : 192.168.20.0 /24 F0/1 F0/11 F0/3 192.168.10.0 192.168.20.0 F0/4 F0/2 VLAN 10 VLAN 20 SW1 VLAN 1 IP : 192.168.1.251 /24 Gig1/0/11.10.11.3

12 [LAB] VLAN Conf 2 SW1#vlan database SW1(vlan)#vlan 10 name red SW1(vlan)#vlan 20 name blue SW1(vlan)#exit SW1(config)#int fa0/1 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#int fa0/2 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1#vlan database SW1(vlan)#vlan 10 name red SW1(vlan)#vlan 20 name blue SW1(vlan)#exit SW1(config)#int fa0/1 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#int fa0/2 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit

13 [LAB] VLAN Conf 3 SW1#conf t SW1(config)#int fa0/3 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#int fa0/4 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1#conf t SW1(config)#int fa0/3 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#int fa0/4 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit

14 [LAB] VLAN Conf 4 SW1(config)#int fa0/11 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#exit SW1(config)#int fa0/11 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#exit

15 [LAB] C3750 vlan 10 interface Vlan10 ip address 192.168.10.3 255.255.255.0 vlan 20 interface Vlan20 ip address 192.168.20.3 255.255.255.0 interface GigabitEthernet1/0/11 switchport trunk encapsulation dot1q switchport mode trunk ip routing vlan 10 interface Vlan10 ip address 192.168.10.3 255.255.255.0 vlan 20 interface Vlan20 ip address 192.168.20.3 255.255.255.0 interface GigabitEthernet1/0/11 switchport trunk encapsulation dot1q switchport mode trunk ip routing


Download ppt "스위칭 실습. Switch 2950 MAC 0c0022222222 Default priority 32768 Switch 2950 MAC 0c0011111111 Default priority 32768 Fa0/1 Fa0/2 Fa0/1 Fa0/2 Switch 3750 Mac."

Similar presentations


Ads by Google