안녕하세요
라우팅 테이블 룩업을 알아보겠습니다.
테스트 장비
Nexus v9K 1대
IOS 2대
CSR v1K 1대
NET(윈도우 10)
config
Nexus v9K -config
switch# sh run
ip route 10.10.12.10/32 1.1.1.2 100
vlan 1,8-9,12
interface Vlan9
no shutdown
ip address 10.10.9.1/24
interface Vlan12
no shutdown
ip address 10.10.12.1/24
interface Ethernet1/1
interface Ethernet1/2
no switchport
ip address 1.1.1.1/30
interface Ethernet1/3
switchport access vlan 12
interface Ethernet1/4
switchport access vlan 9
IOS-R4 -config
Switch#sh run
username admin privilege 15 password 0 Cisco123
interface Ethernet0/0
no switchport
ip address 10.10.12.10 255.255.255.0
ip http server
ip http authentication local
!
ip route 0.0.0.0 0.0.0.0 10.10.12.1
CSR v1K -config
Router#sh run
username admin privilege 15 password 0 Cisco123
interface Loopback0
ip address 10.10.12.10 255.255.255.252
!
interface GigabitEthernet1
ip address 1.1.1.2 255.255.255.252
negotiation auto
ip http server
ip http authentication local
ip route 0.0.0.0 0.0.0.0 1.1.1.1
10.10.12.10 IP는 10.10.12.0/24 다이렉트 커넥트로 통해서 접속
switch# sh ip route
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%' in via output denotes VRF
10.10.9.0/24, ubest/mbest: 1/0, attached
*via 10.10.9.1, Vlan9, [0/0], 00:47:36, direct
10.10.9.1/32, ubest/mbest: 1/0, attached
*via 10.10.9.1, Vlan9, [0/0], 00:47:36, local
10.10.12.0/24, ubest/mbest: 1/0, attached
*via 10.10.12.1, Vlan12, [0/0], 00:47:36, direct
10.10.12.1/32, ubest/mbest: 1/0, attached
*via 10.10.12.1, Vlan12, [0/0], 00:47:36, local
==================================================
10.10.12.10은 외부 라우팅 통해서 접속
switch# sh ip route
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%' in via output denotes VRF
1.1.1.0/30, ubest/mbest: 1/0, attached
*via 1.1.1.1, Eth1/2, [0/0], 00:01:05, direct
1.1.1.1/32, ubest/mbest: 1/0, attached
*via 1.1.1.1, Eth1/2, [0/0], 00:01:05, local
10.10.9.0/24, ubest/mbest: 1/0, attached
*via 10.10.9.1, Vlan9, [0/0], 00:50:26, direct
10.10.9.1/32, ubest/mbest: 1/0, attached
*via 10.10.9.1, Vlan9, [0/0], 00:50:26, local
10.10.12.0/24, ubest/mbest: 1/0, attached
*via 10.10.12.1, Vlan12, [0/0], 00:50:26, direct
10.10.12.1/32, ubest/mbest: 1/0, attached
*via 10.10.12.1, Vlan12, [0/0], 00:50:26, local
10.10.12.10/32, ubest/mbest: 1/0
*via 1.1.1.2, [100/0], 00:01:05, static
R4의 IP와 CSR의 Loopback IP를 10.10.12.10 으로 동일하게 setting 하였고,
라우팅 테이블에 10.10.12.0/24, 10.10.12.10/32가 생성되었고, 목적지로 향하는 IP가 라우팅테이블 longest match에 의해 10.10.12.10/32 참조하여 next-hop 1.1.1.2로 라우팅 되어 CSR1000v의 webpage가 open됨
'IT > Traditional Network' 카테고리의 다른 글
Lab 실습 (2) | 2020.02.09 |
---|---|
Cisco ACI simulator 4.2.3j 버전 설치 (8) | 2019.12.21 |
C3560CX-12PD-S License Active 방법 (0) | 2019.11.10 |
Cisco Switch에서 SSH Error 발생 (0) | 2019.10.29 |
사용자 계정별로 사용할수 있는 command 정의하기 (0) | 2019.10.23 |