็†ฑ้–€ๅˆ†้กž
 ่ผ‰ๅ…ฅไธญ…
็›ฎ้Œ„

๐Ÿ›ฃ️ Juniper RIP ่จญๅฎš็ฏ„ไพ‹ๆ•™ๅญธ(Junos OS ๅ‹•ๆ…‹่ทฏ็”ฑๅ…ฅ้–€)

    ๐Ÿ›ฃ️ Juniper RIP ่จญๅฎš็ฏ„ไพ‹ๆ•™ๅญธ(Junos OS ๅ‹•ๆ…‹่ทฏ็”ฑๅ…ฅ้–€)

    ๆ›ดๆ–ฐๆ—ฅๆœŸ:2025 ๅนด 10 ๆœˆ 22 ๆ—ฅ | ไฝœ่€…:WWFandy


    ๐Ÿ’ก ไธ€、RIP ๆ˜ฏไป€้บผ?

    RIP(Routing Information Protocol) ๆ˜ฏไธ€็จฎ่ท้›ขๅ‘้‡(Distance Vector)ๅ‹•ๆ…‹่ทฏ็”ฑๅ”ๅฎš, ๅธธ็”จๆ–ผไธญๅฐๅž‹็ถฒ่ทฏ็š„่‡ชๅ‹•่ทฏ็”ฑๅญธ็ฟ’。ๅฎƒ้€้Ž「่ทณๆ•ธ(Hop Count)」ๅˆคๆ–ทๆœ€ไฝณ่ทฏๅพ‘,ๆœ€ๅคง่ทณๆ•ธ็‚บ 15。 ๅœจ Juniper Junos OS ไธญ,ๆ”ฏๆด RIP v1 ่ˆ‡ v2,ไธฆ่ƒฝ้€้Ž้ฉ—่ญ‰่ˆ‡็‰ˆๆœฌๆŽงๅˆถๅผทๅŒ–ๅฎ‰ๅ…จๆ€ง。

    • ๐Ÿ“ก ็‰ˆๆœฌ 1: ไธๆ”ฏๆดๅญ็ถฒ้ฎ็ฝฉ่ˆ‡้ฉ—่ญ‰。
    • ๐Ÿ” ็‰ˆๆœฌ 2: ๆ”ฏๆด VLSM、MD5 ้ฉ—่ญ‰่ˆ‡ๅคšๆ’ญๅ‚ณ่ผธ。
    • ⚙️ ๅธธ่ฆ‹ๆ‡‰็”จ: ๅฏฆ้ฉ—ๅฎคๆธฌ่ฉฆ、ๅฐ่ฆๆจกๅ…ง้ƒจ่ทฏ็”ฑ。

    ๐Ÿ“˜ ไบŒ、็ฏ„ไพ‹็ถฒ่ทฏๆžถๆง‹

    ๅ‡่จญๆœ‰ๅ…ฉๅฐ Juniper ่ทฏ็”ฑๅ™จ:

    R1 (Juniper)
      Interface em1: 192.168.10.1/24
      Interface em2: 10.0.0.1/30 → ้€ฃ่‡ณ R2
    
    R2 (Juniper)
      Interface em1: 192.168.20.1/24
      Interface em2: 10.0.0.2/30 → ้€ฃ่‡ณ R1
    

    ๐ŸŽฏ ็›ฎๆจ™:่ฎ“ R1 ๅญธๅˆฐ 192.168.20.0/24,R2 ๅญธๅˆฐ 192.168.10.0/24。


    ⚙️ ไธ‰、R1 ่จญๅฎšๆญฅ้ฉŸ(192.168.10.1 ↔ 10.0.0.1)

    configure
    
    set interfaces em1 unit 0 family inet address 192.168.10.1/24
    set interfaces em2 unit 0 family inet address 10.0.0.1/30
    
    set protocols rip group RIP-GRP neighbor 10.0.0.2
    set protocols rip group RIP-GRP export direct
    set protocols rip group RIP-GRP import all
    commit
    

    ⚙️ ๅ››、R2 ่จญๅฎšๆญฅ้ฉŸ(192.168.20.1 ↔ 10.0.0.2)

    configure
    
    set interfaces em1 unit 0 family inet address 192.168.20.1/24
    set interfaces em2 unit 0 family inet address 10.0.0.2/30
    
    set protocols rip group RIP-GRP neighbor 10.0.0.1
    set protocols rip group RIP-GRP export direct
    set protocols rip group RIP-GRP import all
    commit
    
    ๐Ÿ’ก ่ชชๆ˜Ž: export direct → ็™ผๅธƒๆœฌๆฉŸ็›ด้€ฃ็ถฒๆฎต。 import all → ๆŽฅๆ”ถๆ‰€ๆœ‰ RIP ๅปฃๆ’ญ็š„่ทฏ็”ฑ。

    ๐Ÿงญ ไบ”、้ฉ—่ญ‰่ˆ‡้™ค้Œฏ

    • ๆŸฅ็œ‹ RIP ้„ฐๅฑ…็‹€ๆ…‹:
    • show rip neighbor
    • ๆŸฅ็œ‹ๅญธ็ฟ’ๅˆฐ็š„่ทฏ็”ฑ:
    • show route protocol rip
    • ็ขบ่ช่ทฏ็”ฑ่กจๅ…งๅฎน:
    • show route

    ่‹ฅ่จญๅฎšๆญฃ็ขบ,R1 ๆ‡‰่ฉฒๆœƒ็œ‹ๅˆฐ:

    192.168.20.0/24 *[RIP/100] 00:00:18
    > via 10.0.0.2, em2.0
    

    ่€Œ R2 ๅ‰‡ๆœƒ็œ‹ๅˆฐ:

    192.168.10.0/24 *[RIP/100] 00:00:20
    > via 10.0.0.1, em2.0
    

    ๐Ÿงฉ ๅ…ญ、้€ฒ้šŽ่จญๅฎš้ธ้ …

    • ๐Ÿ“ ้™ๅˆถ RIP ๅปฃๆ’ญ็š„ไป‹้ข:
    • set protocols rip group RIP-GRP interface em2
      
    • ๐Ÿงพ ่จญๅฎš็‰ˆๆœฌ็‚บ RIP v2:
    • set protocols rip group RIP-GRP version 2
      
    • ๐Ÿ” ๅ•Ÿ็”จ MD5 ้ฉ—่ญ‰:
    • set protocols rip group RIP-GRP authentication-type md5
      set protocols rip group RIP-GRP authentication-key "Juniper123"
      
    ๐Ÿ›ก️ ๅปบ่ญฐๅœจไผๆฅญ็’ฐๅขƒไธญๅ•Ÿ็”จ้ฉ—่ญ‰ๆฉŸๅˆถ,ไปฅ้˜ฒๆญขๆƒกๆ„่ทฏ็”ฑๆ›ดๆ–ฐๆˆ–้Œฏ่ชคๅฎฃๅ‘Š。

    ๐Ÿ”— ไธƒ、ๅปถไผธ้–ฑ่ฎ€

    — WWFandy・็ถฒ่ทฏ่ˆ‡็ณป็ตฑ็ญ†่จ˜

    ๐Ÿ”— ๅˆ†ไบซ้€™็ฏ‡ LINE Facebook X

    ๆฒ’ๆœ‰็•™่จ€:

    ๅผต่ฒผ็•™่จ€

    ๅญ—็ดš