๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Welcome.
:: Network ๐Ÿšฉ/Cisco Packet Tracer

[CISCO1]_#13_[inter vlan, ์Šค์œ„์น˜ ์šด์˜ ๋ชจ๋“œ, Server mode, Client mode, Transparent mode, VTP ์ •๋ณด ๊ตํ™˜ ์กฐ๊ฑด]

by EunBird 2021. 7. 31.

no sw mo acc   // ์‚ญ์ œ
no sw acc vl 100   // ์‚ญ์ œ

ใ…กใ…กใ…กใ…กใ…ก
do sh history  // ์ณค๋˜ ๋ช…๋ น์–ด ๋ณด๊ธฐ.

 

ใ…กใ…กใ…กใ…กใ…ก

 


<inter vlan> 

- ๋‹ค๋ฅธ vlan๋ผ๋ฆฌ๋„ ํ†ต์‹ ๊ฐ€๋Šฅํ•˜๋„๋ก Router์—์„œ ์„ค์ •ํ•ด์ฃผ๋Š” ๊ฒƒ.

 

Router(config)#interface fastEthernet 0/0

Router(config-if)#no shutdown 

Router(config-if)#ip address 192.168.10.1 255.255.255.0   // Router์˜ ๋ฌผ๋ฆฌ์  ๊ฒŒ์ดํŠธ์›จ์ด ์„ค์ •.

 

 

Router(config-if)#int fa0/0.100   // vlan100 ์„ค์ •๋ชจ๋“œ๋กœ ์ ‘์†.
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.100, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.100, changed state to up
Router(config-subif)#encapsulation dot1Q 100   // ํ—ค๋”๋ฅผ ๋ถ™์ด๋Š” ๊ณผ์ •.
Router(config-subif)#ip address 192.168.20.1 255.255.255.0   

 

ใ…กใ…กใ…กใ…กใ…ก ์œ„์™€ ๊ฐ™์ด ์„ค์ •ํ•˜๋ฉด [do sh ru ๋ฅผ ํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ์ƒํƒœ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.]

!
!
interface FastEthernet0/0
 ip address 192.168.10.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/0.100
 encapsulation dot1Q 100
 ip address 192.168.20.1 255.255.255.0
!
interface FastEthernet0/0.200
 encapsulation dot1Q 200
 ip address 192.168.30.1 255.255.255.0
!

ใ…กใ…กใ…กใ…กใ…ก

 


์ด๋ ‡๊ฒŒ vlan ๊ทธ๋ฃน์„ ๋งŒ๋“ค๊ณ  Router๋ฅผ ํ†ตํ•ด vlan ๊ทธ๋ฃน๋ผ๋ฆฌ๋„ ํ†ต์‹ ์ด ๊ฐ€๋Šฅํ•˜๊ฒŒ ์„ค์ •ํ•˜์˜€๋‹ค.

 

๊ทธ๋Ÿฌ๋‚˜, ์ฃผ์˜ํ•  ์ ์€ ์˜ˆ๋ฅผ ๋“ค์ž๋ฉด,

vlan 300 ๊ทธ๋ฃน์—์„œ ์ถœ๋ฐœํ•˜์—ฌ ใ…ˆ๊ฐœ์˜ Switch๋ฅผ ํ†ต๊ณผํ•˜๊ณ  Router์— ๋„์ฐฉํ•˜๋ ค๋ฉด,

๊ทธ ํŒจํ‚ท์ด ์ง€๋‚˜๊ฐ€๋Š” ๋ชจ๋“  Switch ์—๋Š” vlan 300 ๊ทธ๋ฃน์ด ์กด์žฌํ•ด์•ผ ํ•œ๋‹ค.

์ฆ‰, ์ง€๋‚˜๊ฐ€๋Š” ๋ชจ๋“  ์Šค์œ„์น˜์— ํ•ด๋‹น vlan ๊ทธ๋ฃน์ด ์กด์žฌํ•ด์•ผ ํ•œ๋‹ค.

 

 


access port (ํ”„๋ ˆ์ž„ ํ•˜๋‚˜๋งŒ ์ง€๋‚˜๋‹ค๋‹˜.) : untagging port : ๋‚ด๋ณด๋‚ผ ๋•Œ ํ—ค๋”๋ฅผ ๋ถ™์˜€๋‹ค๊ฐ€ ๋–ผ์–ด์คŒ.
trunk port (ํ”„๋ ˆ์ž„ ์—ฌ๋Ÿฌ๊ฐœ๊ฐ€ ์ง€๋‚˜๋‹ค๋‹˜.) : tagging port : ํ—ค๋”๋ฅผ ๋ถ™์—ฌ์คŒ.

 


<์Šค์œ„์น˜ ์šด์˜ ๋ชจ๋“œ>

   (1) Server Mode (์„œ๋ฒ„ ๋ชจ๋“œ) (์ดˆ๊ธฐ Switch ์„ค์ •์ด ์„œ๋ฒ„ ๋ชจ๋“œ.) :

      - VLAN ์ •๋ณด ์ƒ์„ฑ/์ˆ˜์ •/์‚ญ์ œ ๊ฐ€๋Šฅ

      - VLAN ์ •๋ณด ์ œ๊ณตO

   

   (2) Client Mode (ํด๋ผ์ด์–ธํŠธ ๋ชจ๋“œ) :

      - VLAN ์ •๋ณด๋ฅผ ๋ฐ›์Œ (์„œ๋ฒ„๋กœ ๋ถ€ํ„ฐ)

      - VLAN ์ •๋ณด ์ƒ์„ฑ/์ˆ˜์ •/์‚ญ์ œ ๋ถˆ๊ฐ€๋Šฅ(Server ๋กœ๋ถ€ํ„ฐ ๋ฐ›์•„์„œ ์“ฐ๊ธฐ ๋•Œ๋ฌธ์—.)

 

   (3) Transparent Mode (ํˆฌ๋ช… ๋ชจ๋“œ) :

      - ์ž๊ธฐ ์ž์‹ ์˜ VLAN ์ •๋ณด ์ƒ์„ฑ/์ˆ˜์ •/์‚ญ์ œ ๊ฐ€๋Šฅ

      - VLAN ์ •๋ณด ์ œ๊ณตX (์ค‘๊ณ„๋งŒ ๊ฐ€๋Šฅ!)

      - Server์˜ VLAN ์ •๋ณด๋Š” ๋ณผ ์ˆ˜ ์—†์Œ.

 

ใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…ก

<! VTP ์ •๋ณด ๊ตํ™˜ ๊ฐ€๋Šฅ ์กฐ๊ฑด !>

   (1) VTP ํ”„๋กœํ† ์ฝœ ๋ฒ„์ „์ด ๊ฐ™์•„์•ผ ํ•จ.

   (2) Domain ์ด ์ผ์น˜ํ•ด์•ผ ํ•œ๋‹ค.

   (3) Password ๊ฐ€ ์ผ์น˜ํ•ด์•ผ ํ•œ๋‹ค.

 

ใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…กใ…ก

Switch(config)#do sh vtp st   // do show vtp status

version, operating mode, domain name ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

ใ…กใ…กใ…กใ…กใ…ก

//   ์ด ์Šค์œ„์น˜๋Š” ์ด๋ฏธ [Server ๋ชจ๋“œ]์ด๋ฏ€๋กœ domain name ๊ณผ password๋ฅผ ์ˆ˜์ •ํ•˜๊ฒ ๋‹ค.

 

Switch(config)#
Switch(config)#vtp domain cisco   // domain ์„ 'cisco'๋กœ ๋ณ€๊ฒฝ.
Changing VTP domain name from NULL to cisco
Switch(config)#
Switch(config)#vtp password 1234   // password๋ฅผ '1234'๋กœ ๋ณ€๊ฒฝ.
Setting device VLAN database password to 1234

domain, password ์„ค์ •.
domain์ด ๋ณ€๊ฒฝ๋˜์—ˆ์Œ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค.

๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ Client ๋ชจ๋“œ์ธ Switch๋„ ๋งŒ๋“ค๊ณ  ์—ฐ๊ฒฐํ•ด์ค€๋‹ค.

Client๋ชจ๋“œ๋กœ ์„ค์ •ํ•˜๊ณ , domain๋„ ์„ค์ •.

ใ…กใ…กใ…กใ…กใ…ก

๊ทธ ํ›„ vlan 100๊ณผ 200 ๊ทธ๋ฃน์„ ๋งŒ๋“ค๊ณ  trunk ์„ค์ •๊นŒ์ง€ ํ•œ๋‹ค.

-> Client๋Š” ๊ตณ์ด ๋˜‘๊ฐ—์ด ์„ค์ •์„ ํ•˜์ง€ ์•Š์•„๋„ ์ž๋™์œผ๋กœ Server์˜ ์„ค์ •์„ ๋”ฐ๋ผ์˜จ๋‹ค.

do sh vl
do sh vtp status

 


์ด์   Server, Client, Transport ์„ธ๊ฐœ ๋ชจ๋‘ ์‚ฌ์šฉํ•ด๋ณด๊ฒ ๋‹ค.

 

Server์—์„œ trunk ์„ค์ •์„ ํ•˜๊ณ , vlan 100, 200, 300. 700 ๊ทธ๋ฃน์„ ๋งŒ๋“ฆ.
transparent ์—์„œ๋Š” server์—์„œ ์„ค์ •ํ•œ vlan ๊ทธ๋ฃน๋“ค์ด ๋ณด์ด์ง€ ์•Š์Œ. ๊ทธ๋Ÿฌ๋‚˜ ์ค‘๊ณ„๋Š” ๋˜๋Š” ์ค‘.
transparent ์—์„œ 900,901,902 ๊ทธ๋ฃน์„ ๋งŒ๋“ฌ.
server ์—์„œ ๋งŒ๋“  vlan ๊ทธ๋ฃน๋“ค์€ ๋ณด์ด์ง€ ์•Š์ง€๋งŒ transparent์—์„œ ๋งŒ๋“  vlan ๊ทธ๋ฃน์€ ํ™•์ธ ๊ฐ€๋Šฅ.
์—ฐ๊ฒฐ๋˜ ์žˆ๋Š” Client ์—์„œ๋Š” Server์—์„œ ์„ค์ •ํ•œ vlan ๊ทธ๋ฃน๋“ค์„ ํ™•์ธ ๊ฐ€๋Šฅํ•˜๋‹ค.

 

 

 

728x90

':: Network ๐Ÿšฉ > Cisco Packet Tracer' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[CISCO1]_#15_[STP, spanning tree protocol, BPDU, loopin, ๋ฃจํ•€ํ˜„์ƒ, sh span, root ๋ธŒ๋ฆฟ์ง€, priority, Address, spanning-tree vlan 1 priority 4096, Desg, root, Ether channel, channel-group 1 mode on ]  (0) 2021.08.04
[CISCO1]_#14_[Serial ip ๋ถ€์—ฌ, ๋ผ์šฐํŒ…, ์ •์  ๋ผ์šฐํŒ…, ๋™์  ๋ผ์šฐํŒ…, show ip route, ip route]  (0) 2021.08.03
[CISCO1]_#12_[์ถฉ๋Œ ๋„๋ฉ”์ธ, ๋ธŒ๋กœ๋“œ์บ์ŠคํŠธ ๋„๋ฉ”์ธ, VLAN ์„ค์ •/๊ตฌ์ถ•, sh vlan, switchport mode access, switchport access vlan, sw mo trunk, fa0/0.100, fa0/0.200, encapsulation dot1Q]  (0) 2021.07.30
[CISCO1]_#11_[reload, ํŒจ์Šค์›Œ๋“œ ์„ค์ •, Console ํŒจ์Šค์›Œ๋“œ ์„ค์ •, ํŒจ์Šค์›Œ๋“œ ์•”ํ˜ธํ™” ์„ค์ •, mac-address-table, ์Šค์œ„์น˜์˜ 5๋Œ€ ๊ธฐ๋Šฅ, ์ถฉ๋Œ ๋„๋ฉ”์ธ, ๋ธŒ๋กœ๋“œ์บ์ŠคํŠธ ๋„๋ฉ”์ธ ]  (0) 2021.07.29
[CISCO1]_#10_[Switch ์žฅ๋น„์—ฐ๊ฒฐ, ํฌํŠธ ์‹œ๋ฆฌ์–ผ, Serial DCE, ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ๋ชจ๋“œ, ๊ด€๋ฆฌ์ž ๋ชจ๋“œ, ์ „์—ญ ์„ค์ • ๋ชจ๋“œ, ์ธํ„ฐํŽ˜์ด์Šค ๋ชจ๋“œ, enable, configure terminal, interface fastethernet0/1, show running-config, show startup-config]  (0) 2021.07.29

๋Œ“๊ธ€