bxm's IT Story
GNS VLAN10, VLAN20 예제 관련하여 Switch와 Router 활용하여 통신망 연결하기(2), 라우터가 SW2랑 연결되어 있을때 본문
GNS VLAN10, VLAN20 예제 관련하여 Switch와 Router 활용하여 통신망 연결하기(2), 라우터가 SW2랑 연결되어 있을때
bxmsta9ram 2021. 6. 9. 09:15## Router On a Stick
선생님 연습법 :
1) 장비 그림 그려놓기.
2) 명령어의 역할 이해하기
3) GNS3 같은 프로그램 말고, 연습장에 깜지로 연습하기.
*** 모든 장비들의 기본 설정 ***
ena
conf t
no ip domain lookup
line c 0
logg sy
exec-timeout 0
exit
line vty 0 4
password cisco
exit
hostname ㅇㅇ
① VLAN
SW1]
conf t
no ip routing
vlan 10
exit
vlan 20
exit
int f1/1
switchport mode access
switchport access vlan 10
exit
int f1/2
switchport mode access
switchport access vlan 20
exit
int f1/9
switchport trunk encapsulation dot1q
switchport mode trunk
SW2]
conf t
no ip routing
vlan 10
exit
vlan 20
exit
int f1/3
switchport mode access
switchport access vlan 10
exit
int f1/4
switchport mode access
switchport access vlan 20
exit
int range f1/9 , f1/15
switchport trunk encapsulation dot1q
switchport mode trunk
end
wr
R1]
conf t
int f0/0
no shutdown
exit
int f0/0.10
encapsulation dot1q 10
ip address 1.1.10.254 255.255.255.0
exit
int f0/0.20
encapsulation dot1q 20
ip address 1.1.20.254 255.255.255.0
exit
PC1~PC4]
conf t
no ip routing
ip default-gateway 1.1.x.x (PC1,3 ==> 10.254 / PC2,4 ==> 20.254)
!
int f0/0
no shutdown
ip address 1.1.x.x 255.255.255.0
end
wr
<통신 검증 방법>
show ip interface brief
show vlan-switch (sw vlan-sw)
show interface trunk
<선생님 메모장 순서대로>
## Router On a Stick
** 모든 장비 기본 설정
ena
conf t
no ip domain lookup
line c 0
logg sy
exec-timeout 0
exit
line vty 0 4
password cisco
exit
hostname XX
SW1]
conf t
no ip routing
vlan 10
exit
vlan 20
exit
int f1/3
switchport mode access
switchport access vlan 10
exit
int f1/4
switchport mode access
switchport access vlan 20
exit
SW2]
conf t
no ip routing
vlan 10
exit
vlan 20
exit
int f1/1
switchport mode access
switchport access vlan 10
exit
int f1/2
switchport mode access
switchport access vlan 20
exit
int range f1/9
switchport trunk encapsulation dot1q
switchport mode trunk
end
wr
R1]
conf t
int f0/0
no shutdown
exit
int f0/0.10
encapsulation dot1q 10
ip address 1.1.10.254 255.255.255.0
exit
int f0/0.20
encapsulation dot1q 20
ip address 1.1.20.254 255.255.255.0
exit
PC1~4]
conf t
no ip routing
ip default-gateway 1.1.x.x
// PC 1과 3의 gateway -> 1.1.10.254
PC 2와 4의 gateway -> 1.1.20.254
!
int f0/0
no shutdown
ip add 1.1.x.x 255.255.255.0
end
wr
- verify -
show ip interface brief
show vlan-switch
show interface trunk
'Network > Cisco (KEDU)' 카테고리의 다른 글
Native VLAN 구현. (0) | 2021.06.09 |
---|---|
어느 곳을 고쳐야할까? 라우터 스위치 문제. (0) | 2021.06.09 |
정보기기운용기능사 기출 1번 (0) | 2021.06.08 |
GNS VLAN10, VLAN20 예제 관련하여 Switch와 Router 활용하여 통신망 연결하기. (1) | 2021.06.08 |
ARP 방식 (MAC 주소 따오기) (0) | 2021.06.08 |