๐ฃ️ 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
set protocols rip group RIP-GRP version 2
set protocols rip group RIP-GRP authentication-type md5 set protocols rip group RIP-GRP authentication-key "Juniper123"
๐ก️ ๅปบ่ญฐๅจไผๆฅญ็ฐๅขไธญๅ็จ้ฉ่ญๆฉๅถ,ไปฅ้ฒๆญขๆกๆ่ทฏ็ฑๆดๆฐๆ้ฏ่ชคๅฎฃๅ。
๐ ไธ、ๅปถไผธ้ฑ่ฎ
- ๐ก Juniper DHCP ไผบๆๅจ่จญๅฎ(Junos OS ๅฏฆไฝ)
- ๐ Junos OS IRB ไป้ข่ VLAN ้่ทฏ็ฑๆๅญธ
- ๐งฑ Fortigate CLI ่จญๅฎ่ๅฐๅ ๅๆๆๅญธ
— WWFandy・็ถฒ่ทฏ่็ณป็ตฑ็ญ่จ
ๆฒๆ็่จ:
ๅผต่ฒผ็่จ