Ha Thanh Phong Ha
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Thực hành .1. Lab 5 - Configuring Network Devices - Giải thích bảng định tuyến của file Lab 5b,5c file task1.pka - Kiểm tra vấn đề đang xảy ra trong hệ thống khi PC1 không thể truy cập đến PC3 và SERVER trong hệ thống - Chỉnh sửa và cấu hình định tuyến tĩnh để giải quyết vấn đề trên. - Từ các PC ping nhau để kiểm tra cấu hình ## Giải thích bảng định tuyến Lab5b, 5c ### Lab5b ![image](https://hackmd.io/_uploads/r1wZJy8Mll.png) #### Bảng Định tuyến R1 (`show ip route`) ![image](https://hackmd.io/_uploads/S1vM11Lzee.png) * **Gateway of last resort is not set**: R1 không có default route. * **Các tuyến đường chính**: * `D 10.0.0.0/8 [90/2170112] via 209.165.200.226, Serial0/0/0`: R1 học được đường đi đến mạng lớn `10.0.0.0/8` (bao gồm các mạng LAN của R2) thông qua EIGRP. Next-hop là `209.165.200.226` (địa chỉ IP cổng Serial của R2), qua cổng `Serial0/0/0` của R1. * `C 192.168.10.0/24` và `L 192.168.10.1/32` trên `GigabitEthernet0/0`: Mạng LAN `192.168.10.0` kết nối trực tiếp và địa chỉ IP của cổng đó. * `C 192.168.11.0/24` và `L 192.168.11.1/32` trên `GigabitEthernet0/1`: Mạng LAN `192.168.11.0` kết nối trực tiếp và địa chỉ IP của cổng đó. * `D 209.165.200.0/24 is a summary, Null0`: Tuyến đường tóm tắt cho dải `209.165.200.0/24` trỏ ra `Null0` để tránh loop. * `C 209.165.200.224/30` và `L 209.165.200.225/32` trên `Serial0/0/0`: Mạng WAN kết nối trực tiếp giữa R1 và R2, và địa chỉ IP của cổng Serial R1. ----- #### Bảng Định tuyến R2 (`show ip route`) ![image](https://hackmd.io/_uploads/BJqX1JUfge.png) * **Gateway of last resort is not set**: R2 cũng không có default route. * **Các tuyến đường chính**: * `D 10.0.0.0/8 is a summary, Null0`: Tuyến đường tóm tắt cho dải `10.0.0.0/8` trỏ ra `Null0`. * `C 10.1.1.0/24` và `L 10.1.1.1/32` trên `GigabitEthernet0/0`: Mạng LAN `10.1.1.0` kết nối trực tiếp và địa chỉ IP của cổng đó. * `C 10.1.2.0/24` và `L 10.1.2.1/32` trên `GigabitEthernet0/1`: Mạng LAN `10.1.2.0` kết nối trực tiếp và địa chỉ IP của cổng đó. * `D 192.168.10.0/24 [90/2170112] via 209.165.200.225, Serial0/0/0`: R2 học được đường đi đến mạng `192.168.10.0/24` (LAN của R1) thông qua EIGRP. Next-hop là `209.165.200.225` (địa chỉ IP cổng Serial của R1), qua cổng `Serial0/0/0` của R2. * `D 192.168.11.0/24 [90/2170112] via 209.165.200.225, Serial0/0/0`: R2 học được đường đi đến mạng `192.168.11.0/24` (LAN khác của R1) thông qua EIGRP, cũng qua next-hop là R1. * `C 209.165.200.224/30` và `L 209.165.200.226/32` trên `Serial0/0/0`: Mạng WAN kết nối trực tiếp giữa R1 và R2, và địa chỉ IP của cổng Serial R2. ----- #### Tóm Tắt Chung và Kết Nối 🔗 * **Kết nối WAN**: R1 và R2 được kết nối với nhau qua cổng `Serial0/0/0` trên mỗi router, sử dụng mạng `209.165.200.224/30`. * R1 có IP `209.165.200.225` trên cổng Serial. * R2 có IP `209.165.200.226` trên cổng Serial. * **Định tuyến EIGRP**: Hai router đang chạy EIGRP (ký hiệu `D` trong bảng định tuyến) để trao đổi thông tin định tuyến: * R1 quảng bá các mạng LAN `192.168.10.0/24` và `192.168.11.0/24` của nó cho R2. * R2 quảng bá các mạng LAN `10.1.1.0/24` và `10.1.2.0/24` (nằm trong dải tóm tắt `10.0.0.0/8`) của nó cho R1. * **Không có Default Route**: Cả hai router đều không có tuyến đường mặc định, nghĩa là chúng chỉ có thể định tuyến đến các mạng mà chúng biết rõ (kết nối trực tiếp hoặc học qua EIGRP). * **LANs**: * R1 phục vụ hai mạng LAN: `192.168.10.0/24` và `192.168.11.0/24`. * R2 phục vụ hai mạng LAN: `10.1.1.0/24` và `10.1.2.0/24`. ### Lab5c ![image](https://hackmd.io/_uploads/S1wVRJLzle.png) #### Bảng Định tuyến R1 (`show ip route`) ![image](https://hackmd.io/_uploads/SJ6PJlLMlx.png) * **Gateway of last resort is not set**: R1 không có default route. * `192.168.100.0/24 is variably subnetted, 8 subnets, 2 masks`: Mạng `192.168.100.0/24` được chia thành nhiều mạng con. * **Các tuyến đường chính:** * `C 192.168.100.0/27` và `L 192.168.100.1/32` trên `GigabitEthernet0/0`: Mạng LAN `192.168.100.0/27` kết nối trực tiếp và IP `192.168.100.1` của cổng đó. * `C 192.168.100.32/27` và `L 192.168.100.33/32` trên `GigabitEthernet0/1`: Mạng LAN `192.168.100.32/27` kết nối trực tiếp và IP `192.168.100.33` của cổng đó. * `D 192.168.100.64/27` [90/2170112] via `192.168.100.158`, `Serial0/0/0`: R1 học đường đến mạng `192.168.100.64/27` qua EIGRP, next-hop là `192.168.100.158`. * `D 192.168.100.96/27` [90/2170112] via `192.168.100.158`, `Serial0/0/0`: R1 học đường đến mạng `192.168.100.96/27` qua EIGRP, next-hop là `192.168.100.158`. * `C 192.168.100.128/27` và `L 192.168.100.129/32` trên `Serial0/0/0`: Mạng WAN `192.168.100.128/27` kết nối trực tiếp (nơi có next-hop `192.168.100.158`), và IP `192.168.100.129` của cổng Serial R1. --- ## file task1.pka ![image](https://hackmd.io/_uploads/ryJqorrfel.png) ### 5 mạng con nội bộ, 1 máy chủ ngoài internet: #### I.`192.168.1.0/24` **(SWITCH S1)**:![image](https://hackmd.io/_uploads/BklfkIrMeg.png) + `192.168.1.10/24`: PC1💻![image](https://hackmd.io/_uploads/H1eHnrBGex.png) #### II.`192.168.2.0/24` **(Kết nối R1-R2)**:![image](https://hackmd.io/_uploads/Bk2Vy8rfle.png) #### III.`192.168.3.0/24` **(SWITCH S2)**:![image](https://hackmd.io/_uploads/ry6LyIBzle.png) + `192.168.3.10/24`: PC2💻![image](https://hackmd.io/_uploads/HyV32rBzgl.png) #### IV.`192.168.4.0/24` **(Kết nối R2-R3)**:![image](https://hackmd.io/_uploads/rk0OkIHzlx.png) #### V.`192.168.5.0/24` **(SWITCH S3)**:![image](https://hackmd.io/_uploads/By7xgLSMge.png) + `192.168.5.10/24`: PC3💻![image](https://hackmd.io/_uploads/HJ1GlIBMel.png) #### VI.Ngoài internet + `64.100.0.10/24`: Web Server🛜![image](https://hackmd.io/_uploads/SkvxVUrGeg.png) ### Router #### I.ROUTER R1 ![image](https://hackmd.io/_uploads/HkjOlISzel.png) + **Router R1** được kết nối trực tiếp với 2 mạng private, 1 mạng public + 192.168.1.0/24 + 192.168.2.0/24 + 209.165.200.0/24 #### II.ROUTER R2 ![image](https://hackmd.io/_uploads/HJUyf8Sfll.png) + **Router R2** được kết nối trực tiếp với 3 mạng private + 192.168.2.0/24 + 192.168.3.0/24 + 192.168.4.0/24 #### III.ROUTER R3 ![image](https://hackmd.io/_uploads/rJrdzLrMgx.png) + **Router R3** được kết nối trực tiếp với 2 mạng private + 192.168.4.0/24 + 192.168.5.0/24 ==$\Rightarrow$ Các mạng 1.0, 3.0, 5.0 và cả mạng public chưa được kết nối với nhau thông qua việc định tuyến các router== ==$\Rightarrow$ Do đó ở PC1, PC2, PC3 ta không thể ping tới nhau và cũng như ping ra Web Server== ### Định tuyến tĩnh #### I.ROUTER R1 + **Kết nối với mạng `192.168.3.0`, `192.168.4.0`, `192.168.5.0` thông qua cổng `Serial 0/0/0 (192.168.2.2)` ở `R2`**: ![image](https://hackmd.io/_uploads/r1DMrLSGll.png) + **Kết nối với mạng khác (ip khác) ta định tuyến mặc định ra cổng `Serial 0/0/1` ở `R1` vì ở cổng này kết nối trực tiếp mạng internet ngoài:** ![image](https://hackmd.io/_uploads/B1wG8ISflx.png) + **Kết quả**: ![image](https://hackmd.io/_uploads/H1vuU8BMee.png) #### II.ROUTER R2 + **Kết nối với mạng `192.168.1.0` và mạng ngoài thông qua cổng `Serial 0/0/0 (192.168.2.1)` ở `R1`**: ![image](https://hackmd.io/_uploads/ByuDDLHzgx.png) ![image](https://hackmd.io/_uploads/Hy8OwUSMxx.png) + **Kết nối với mạng `192.168.5.0` thông qua cổng `Serial 0/0/1 (192.168.4.1)` ở `R3`**: ![image](https://hackmd.io/_uploads/r1YavLBMxl.png) + **Kết quả**: ![image](https://hackmd.io/_uploads/BkJxOLBzel.png) #### III.Router R3 + **Ở `R3`, ta dễ thấy muốn đi ra mạng khác, ngoài mạng đã kết nối là `5.0` và `4.0`, ta đều cần đi qua `R2` với cổng `Serial 0/0/1 (192.168.4.2)` ở `R2`:** **$\Rightarrow$ Nên ta chỉ cần để route mặc định là đi qua đó**. ![image](https://hackmd.io/_uploads/S1gzYISzlx.png) + **Kết quả**: ![image](https://hackmd.io/_uploads/ryamK8Szgl.png) ### Kết quả ping #### PC1 ![image](https://hackmd.io/_uploads/rJXycLrfex.png) #### PC2 ![image](https://hackmd.io/_uploads/S1cbqIBfle.png) #### PC3 ![image](https://hackmd.io/_uploads/S15r98Szex.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully