Static Route Basic Configuration(Juniper vMX)

2025. 2. 8. 23:22·Network/Switching, Routing Basic

1. Static Route Basic Configuration 구성도

1) Static Route Basic Configuration 구성도

 

2) 테스트 장비

  • Emulator : EVE-NG
  • OS : Juniper vMX 18.2R1.9

 

 

2. Static Route Basic Configuration

1) Interface IP Address Configuration

더보기
< R1 : Interface IP 설정 >
set interfaces ge-0/0/0 unit 0 family inet address 1.1.3.1/24
set interfaces ge-0/0/1 unit 0 family inet address 1.1.2.1/24
set interfaces lo0 unit 0 family inet address 1.1.1.1/32
더보기
< R2 : Interface IP 설정 >
set interfaces ge-0/0/0 unit 0 family inet address 1.1.2.2/24
set interfaces ge-0/0/1 unit 0 family inet address 1.2.3.2/24
set interfaces lo0 unit 0 family inet address 2.2.2.2/32
더보기
< R3 : Interface IP 설정 >
set interfaces ge-0/0/0 unit 0 family inet address 1.2.3.3/24
set interfaces ge-0/0/1 unit 0 family inet address 1.1.3.3/24
set interfaces lo0 unit 0 family inet address 3.3.3.3/32

 

2) Static Route Configuration

< R1 : Static Route 설정 >
set routing-options static route 3.3.3.3/32 next-hop 1.1.2.2
set routing-options static route 3.3.3.3/32 next-hop 1.1.3.3

 

3) Routing Table and Forwarding Table

root@R1> show route table inet.0 

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[Direct/0] 00:23:56
                    > via lo0.0
1.1.2.0/24         *[Direct/0] 00:25:26
                    > via ge-0/0/1.0
1.1.2.1/32         *[Local/0] 00:25:26
                      Local via ge-0/0/1.0
1.1.3.0/24         *[Direct/0] 00:25:26
                    > via ge-0/0/0.0
1.1.3.1/32         *[Local/0] 00:25:26
                      Local via ge-0/0/0.0
3.3.3.3/32         *[Static/5] 00:14:37
                    > to 1.1.3.3 via ge-0/0/0.0
                      to 1.1.2.2 via ge-0/0/1.0
root@R1> show route protocol static table inet.0 

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

3.3.3.3/32         *[Static/5] 01:33:10
                    > to 1.1.3.3 via ge-0/0/0.0
                      to 1.1.2.2 via ge-0/0/1.0
  • 'show route' 명령으로 전체 라우팅 테이블 확인 가능
  • 위 show 명령으로 'inet.0' 테이블만 확인 가능
  • ECMP Enable이 안 되어있지만 Preference와 Metric 값이 동일한 3.3.3.3/32 Entry가 모두 라우팅 테이블에 표시
  • ECMP Enable이 안 되어있을 경우 ' > ' 표시가 있는 Entry만 Forwarding Table에 설치

 

root@R1> show route forwarding-table family inet table default 
Routing table: default.inet
Internet:
Enabled protocols: Bridging, 
Destination        Type RtRef Next hop           Type Index    NhRef Netif
default            perm     0                    rjct       36     1
0.0.0.0/32         perm     0                    dscd       34     1
1.1.1.1/32         intf     0 1.1.1.1            locl      584     1
1.1.2.0/24         intf     0                    rslv      583     1 ge-0/0/1.0
1.1.2.0/32         dest     0 1.1.2.0            recv      581     1 ge-0/0/1.0
1.1.2.1/32         intf     0 1.1.2.1            locl      582     2
1.1.2.1/32         dest     0 1.1.2.1            locl      582     2
1.1.2.2/32         dest     0 50:0:0:b:0:2       ucst      585     1 ge-0/0/1.0
1.1.2.255/32       dest     0 1.1.2.255          bcst      580     1 ge-0/0/1.0
1.1.3.0/24         intf     0                    rslv      579     1 ge-0/0/0.0
1.1.3.0/32         dest     0 1.1.3.0            recv      577     1 ge-0/0/0.0
1.1.3.1/32         intf     0 1.1.3.1            locl      578     2
1.1.3.1/32         dest     0 1.1.3.1            locl      578     2
1.1.3.3/32         dest     0 50:0:0:d:0:3       ucst      586     3 ge-0/0/0.0
1.1.3.255/32       dest     0 1.1.3.255          bcst      512     1 ge-0/0/0.0
3.3.3.3/32         user     0 1.1.3.3            ucst      586     3 ge-0/0/0.0
224.0.0.0/4        perm     0                    mdsc       35     1
224.0.0.1/32       perm     0 224.0.0.1          mcst       31     1
255.255.255.255/32 perm     0                    bcst       32     1
root@R1> show route forwarding-table matching 3.3.3.3/32 family inet table default    
Routing table: default.inet
Internet:
Enabled protocols: Bridging, 
Destination        Type RtRef Next hop           Type Index    NhRef Netif
3.3.3.3/32         user     0 1.1.3.3            ucst      586     3 ge-0/0/0.0
  • 'show route forwarding-table' 명령으로 전체 Forwarding Table 확인 가능
  • 위 show 명령으로 'default' 테이블만 확인 가능
  • 라우팅 테이블에서 Preference와 Metric이 동일한 Entry 중, ' > '표시가 있는 Entry만 설치되었음을 확인

 

4) R1 → R3 Lo0 Ping Test

root@R1> ping 3.3.3.3 count 2 
PING 3.3.3.3 (3.3.3.3): 56 data bytes
64 bytes from 3.3.3.3: icmp_seq=0 ttl=64 time=3.103 ms
64 bytes from 3.3.3.3: icmp_seq=1 ttl=64 time=3.379 ms

--- 3.3.3.3 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.103/3.241/3.379/0.138 ms

  • R1 → R3 Lo으로 ICMP Request 전송 시, R1의 Forwarding Table에 Active되어 있는 Entry를 참고하여 ge-0/0/0.0 인터페이스로 전송

 

  • R3는 ICMP Request 수신 시, D-MAC이 본인임을 확인하고 EtherType이 IP 임을 확인하고 D-IP가 ICMP Requset를 수신한 인터페이스가 아님을 확인하고 라우팅 테이블의 Entry 중에 Longest Match Rule에 의해 매칭되는 인터페이스가 Loopback 임을 알고 Protocol이 ICMP임을 확인하고 Type 및 Code를 확인하여 ICMP Request임을 확인하고 ICMP Request의 S-IP를 D-IP로, D-IP를 S-IP로 구성하여 ICMP Reply를 전송

 

저작자표시 비영리 변경금지 (새창열림)

'Network > Switching, Routing Basic' 카테고리의 다른 글

Static Route no-install Configuration(Juniper vMX)  (0) 2025.02.16
Static Route Reject and Discard Configuration(Juniper vMX)  (0) 2025.02.14
Static Route Metric and 'qualified-next-hop' Configuration(Juniper vMX)  (0) 2025.02.12
Static Route Preference and 'qualified-next-hop' Configuration(Juniper vMX)  (0) 2025.02.10
Static Route Next-Hop IP address vs Outgoing interface  (0) 2025.02.06
Routing Table Best-Path Selection  (0) 2025.02.04
IGP vs EGP  (0) 2025.02.02
Distance Vector vs Link State  (0) 2025.01.31
'Network/Switching, Routing Basic' 카테고리의 다른 글
  • Static Route Metric and 'qualified-next-hop' Configuration(Juniper vMX)
  • Static Route Preference and 'qualified-next-hop' Configuration(Juniper vMX)
  • Static Route Next-Hop IP address vs Outgoing interface
  • Routing Table Best-Path Selection
ant-choi의 네트워크
ant-choi의 네트워크
안녕하세요. 네트워크 엔지니어로 근무하고 있는 직장인 입니다. 2024.08.26부터 새로운 버전으로 블로그를 개설하였습니다. 제가 스터디한 내용이나 회사에서 업무 진행 시, 필요한 내용들을 정리하여 업로드 하는 것을 목표로 하고 있습니다. 오류가 있거나 피드백이 있으신 분들은 댓글 남겨주시면 감사하겟습니다.
  • ant-choi의 네트워크
    ant-choi의 네트워크
    ant-choi의 네트워크
  • 전체
    오늘
    어제
    • 분류 전체보기 (131) N
      • Network (114) N
        • Juniper Software (0)
        • Juniper Basic (7) N
        • Emulator (24)
        • Network Basic (11)
        • ARP, ICMP (14)
        • VLAN (22)
        • STP (0)
        • VRRP (11)
        • Link Aggregation (10)
        • MC-LAG (0)
        • Switching, Routing Basic (15)
        • DHCP (0)
        • OSPF (0)
        • BGP (0)
        • Issue (0)
      • Office (5)
        • Office 공통 (1)
        • Excel (1)
        • Power Point (1)
        • Word (2)
        • Outlook (0)
      • 기타 (12)
        • Windows (1)
        • Browser (4)
        • Tistory (7)
        • Notion (0)
        • Application (0)
  • 블로그 메뉴

    • hELLO· Designed By정상우.v4.10.3
    ant-choi의 네트워크
    Static Route Basic Configuration(Juniper vMX)
    상단으로

    티스토리툴바