config) vlan [이름 or 숫자]
config) int fa[숫자]
→ host가 있는 faswitchport mode access
sw ac vlan [숫자]
do show vlan
config) int fa[숫자]
← 스위치끼리의 fasw mode trunk
int vlan 1
ip add [ip] [subnet]
no sh
show vlan
: vlan 정보 확인)show interface trunk
: 트렁크 정보 확인)int fa0/0.10
encapsulation dotq 10 (인코딩 방식) dotq 10 -> vlan 정보
ip add 192.168.1.254 255.255.255.0
exit
int fa0/0.30
encapsulation dotq 30
ip add 10.10.10.254 255.0.0.0
exit
int fa0/0
no sh
no int fa0/0.30
no sh
packet tracer
GNS
int ran fa1/0 -15
→ 전체 닫기: sh
-switch0 show run
-switch1 show run
-router 0 show run
-R1
en
conf t
vlan 20
exit
int ran fa1/0 -15
sh
exit
int fa1/1
sw mo ac
sw ac vlan 20
no sh
int fa1/3
sw tr en dot
sw mo tr
no sh
end
copy run sta