컴퓨터/Network

vlan(275p)

CIY 2011. 8. 29. 15:45

스위치
en
conf t
enable password cisco
int vlan 1
ip addr 192.168.10.1 255.255.255.0
no shutdown
exit
ip default-gateway 192.168.10.254

line vty 0 4
login
password cisco
exit

vtp mode transparent
vtp domain cisco

do show vtp status

vlan 2
name CCNA

int fa0/1
switchport mode trunk
switchport trunk allowed vlan all
exit

int fa0/1
switchport access vlan 2
exit

 

 

중생

 

 


라우터
en
conf t
int fa0/0
no shutdown
exit
int fa0/0.1
encapsulation dot1Q 1 native
ip addr 192.168.10.254 255.255.255.0
exit
int fa0/0.2
encapsulation dot1Q 2
ip addr 192.168.20.254 255.255.255.0
exit