컴퓨터/Network2011. 8. 30. 15:28

vlan 실습3.pkt

기본


vlan 실습3_2.pkt

기본+아이피세팅



vlan 실습3_3.pkt








문제)
R1->R2

vlan 1 192.168.10.0
vlan 2 192.168.20.0
vlan 3 192.168.30.0
vlan 4 192.168.40.0
vlan 5 192.168.50.0


R1
vlan 1 DHCP 서버에서  ip 할당 받도록 설정
telnet 접속 가능하도록 설정

S/W1 -> 모드:서버 도메인 cisco
VLAN 1
VLAN 2
VLAN 3

S/W2 -> 모드:클라이언트

 


R2
vlan 1 192.168.40.0
vlan 2 192.168.50.0
포트 2개
서버 192.168.50.50
www.naver.vm
ftp 사이트 설정

S/W1 -> 모드:서버 도메인 cisco
VLAN 1
VLAN 2

S/W2 -> 모드:클라이언트

 

 

 








족보


라우터1
en
conf t
int fa0/0
no shutdown
exit

int se2/0
ip addr 192.168.100.1 255.255.255.0
clock rate 56000
no sh
exit

router rip
network 192.168.100.0
network 192.168.10.0
network 192.168.20.0
network 192.168.30.0
exit

int fa0/0.1
encapsulation dot1Q 1
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

int fa0/0.3
encapsulation dot1Q 3
ip addr 192.168.30.254 255.255.255.0
exit

ip dhcp pool ccna
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
exit
ip dhcp excluded-address 192.168.10.254
ip dhcp excluded-address 192.168.10.1 192.168.10.9   #dhcp 구간이 10~253 사이로 설정된다

-----ciy 개인적인 응용 추가구성
ip dhcp pool ccna2
network 192.168.20.0 255.255.255.0
default-router 192.168.20.254
exit
ip dhcp excluded-address 192.168.20.254
-----ciy 개인적인 응용 추가구성


do show ip interface brief

 

 

 

라우터2
en
conf t
int fa0/0
no shutdown
exit

int se2/0
ip addr 192.168.100.2 255.255.255.0
clock rate 56000
no sh
exit

router rip
network 192.168.100.0
network 192.168.40.0
network 192.168.50.0
exit

int fa0/0.1
encapsulation dot1Q 1
ip addr 192.168.40.254 255.255.255.0
exit

int fa0/0.2
encapsulation dot1Q 2
ip addr 192.168.50.254 255.255.255.0
exit

do show ip interface brief

 

 

 

라우터1 스위치1
en
conf t
hostname SW1

int vlan 1
ip addr 192.168.10.1 255.255.255.0
no sh
exit

line vty 0 4
login
password cisco
exit

vlan 2
name CCNA
exit

vlan 3
name CCNA2
exit

int fa3/1
switchport access vlan 2
exit

int fa6/1
switchport access vlan 3
exit

vtp domain cisco

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

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

do sh vlan
do sh int fa1/1 switchport

 

라우터1 스위치2
en
conf t
vtp mode client

do sh vtp status
do sh vlan

int fa2/1
switchport access vlan 2
exit

int fa3/1
switchport access vlan 3
exit

do sh vlan
do sh int fa0/1 switchport

 

 

라우터2 스위치1
en
conf t
hostname SW1

int vlan 1
ip addr 192.168.10.1 255.255.255.0
no sh
exit

line vty 0 4
login
password cisco
exit


vlan 2
name CCNA
exit

vlan 3
name CCNA2
exit

int fa3/1
switchport access vlan 2
exit

int fa6/1
switchport access vlan 2
exit

vtp domain cisco

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

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

do sh vlan
do sh int fa1/1 switchport

 

 

라우터2 스위치2
en
conf t
vtp mode client

do sh vtp status
do sh vlan

int fa2/1
switchport access vlan 2
exit

do sh vlan
do sh int fa0/1 switchport

 

Posted by CIY