Yoshiki217
    • 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
    # 構築会 2023 12 / 8 <a id="top"></a> | Router Name | 担当 | | -------- | -------- | | [TKY](#1) | 林 | | [OSK](#2) | 木村 | | [ISP](#3) | 明日 | | [D1](#4) | Text | | [D2](#5) | 柳田 | | [core](#6) | Text | ## 担当 log # TKY <a id="1"></a> ``` hostname TKY ip route 0.0.0.0 0.0.0.0 Dialer 1 crypto isakmp key cisco address 192.168.2.2 ! interface gigabitEthernet 0/1 no ip add pppoe enable pppoe-client dial-pool-number 1 ip mtu 1454 ! # pppoe client 設定 interface Dialer 1 ip add negotiated dialer-group 1 dialer pool 1 crypto map TKY ! crypto isakmp policy 1 encryption 3des hash md5 authentication pre-share group 2 ! crypto map TKY 1 ipsec-isakmp set peer 192.168.2.2 match address A-ipsec ! ip access-list extended A-ipsec permit ip 192.168.2.0 0.0.0.255 192.168.1.0 ! dialer-list 1 protocol ip permit ``` # OSK <a id="2"></a> ホストネーム設定 ```php hostname OSK ``` g0/4 コア ```php int g0/0 ip address 172.16.0.2 255.255.255.0 no shutdown ``` g0/5 インターネット  ```php int g0/0 ip address 192.168.2.2 255.255.255.0 no shutdown ``` ospf ```php router ospf 1 network 172.16.0.2 0.0.0.255 area 0 ``` pppoe ```php interface GigabitEthernet0/5 no ip address duplex auto speed auto pppoe enable pppoe-client dial-pool-number 1 ``` ```php interface Dialer1 ip address negotiated ip mtu 1415 encapsulation ppp dialer pool 1 dialer-group 1 ``` ### 12月12日 ```php no ip domain-lookup hostname OSK ``` ### pppoeクライアント [PPPoEクライアント参考設定](https://www.bfoip.net/jirei-PPPoE01.html) [PPPoEクライアント参考設定2](https://www.infraexpert.com/study/wan14.html#google_vignette) [PPPoEクライアント参考設定3](https://www.infraexpert.com/study/wan10.html) [PPPoEクライアント参考設定4](https://www.infraexpert.com/study/wan17.html) username 設定 ```php username OSK password 0 kimura ``` int g0/4のpppoeの設定 ```php int g0/4 pppoe enable pppoe-client dial-pool-number 1 ``` interface Dialer1の設定 ```php interface Dialer1 ip address negotiated encapsulation ppp dialer pool 1 dialer-group 1 # mtu 1492は不要だと思ったので入れない #PPPのCHAP認証で「callin」を指定することでプロバイダ側でのみ認証を行うようになります。 ppp authentication chap callin ppp chap hostname OSK ppp chap password kimura ``` dialer-groupが入らないので下のやつを参考 [packertracerでした設定らしい](https://ipcisco.com/lesson/pppoe-configuration-with-packet-tracer/) - 確認 ```php interface Dialer1 dialer pool 1 ip address negotiated encapsulation ppp ! ``` dialer 1 ```php dialer-list 1 protocol ip permit ``` ルーティングを全てdialerに流す ```php ip route 0.0.0.0 0.0.0.0 dialer 1 ``` ## ipsec # ISP <a id="3"></a> ``` username akehi@ecc.ac.jp password akehi loopback 0 10.1.1.1/32 →大阪につながっている方 loopback 1 10.1.1.2/32 →東京につながっている方 ip local pool pool1 30.1.1.1(大阪) ip local pool pool2 30.1.1.2(大阪) interface Virtual-Template1 (大阪) mtu 1454 ip unnumbered Loopback1 peer default ip address pool pool0 ppp authentication chap interface Virtual-Template2 (東京) mtu 1454 ip unnumbered Loopback2 peer default ip address pool pool1 ppp authentication chap bba-group pppoe PPPOE-GROUP1 (大阪) virtual-template 1 bba-group pppoe PPPOE-GROUP2 (東京) virtual-template 2 ``` interface 0/0(大阪) pppoeをenable group1を指定 interface 0/1(東京) 大阪と同じこと group2を指定 ``` Building configuration... Current configuration : 1660 bytes ! ! Last configuration change at 09:54:44 UTC Tue Dec 12 2023 version 15.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname ISP ! boot-start-marker boot-end-marker ! ! ! no aaa new-model memory-size iomem 15 ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef multilink bundle-name authenticated ! ! ! license udi pid CISCO1921/K9 sn FGL191120HM ! ! username TKY password 0 hayashi username OSK password 0 kimura ! redundancy ! ! ! ! ! bba-group pppoe TKY-user virtual-template 1 ! bba-group pppoe OSK-user virtual-template 2 ! ! interface Loopback1 ip address 192.168.1.1 255.255.255.255 ! interface Loopback2 ip address 192.168.2.1 255.255.255.255 ! interface Embedded-Service-Engine0/0 no ip address shutdown ! interface GigabitEthernet0/0 no ip address duplex auto speed auto pppoe enable group TKY-user ! interface GigabitEthernet0/1 no ip address duplex auto speed auto pppoe enable group OSK-user ! interface Virtual-Template1 mtu 1454 ip unnumbered Loopback1 peer default ip address pool TKY-pool ppp authentication chap ! interface Virtual-Template2 mtu 1454 ip unnumbered Loopback2 peer default ip address pool OSK-pool ppp authentication chap ! ip local pool TKY-pool 192.168.1.2 ip local pool OSK-pool 192.168.2.2 ip forward-protocol nd ! no ip http server no ip http secure-server ! ! ! ! ! control-plane ! ! ! line con 0 line aux 0 line 2 no activation-character no exec transport preferred none transport output pad telnet rlogin lapb-ta mop udptn v120 ssh stopbits 1 line vty 0 4 login transport input all ! scheduler allocate 20000 1000 ! end ISP(config)# ISP(config)# ISP(config)#do show ppp all Interface/ID OPEN+ Nego* Fail- Stage Peer Address Peer Name ------------ --------------------- -------- --------------- -------------------- Vi2.1 LCP+ CHAP+ IPCP+ LocalT 192.168.2.2 OSK ``` ## 12月12日 ```php no ip domain-lookup hostname ISP ``` ### PPPoE --- ```php no ip domain-lookup hostname ISP ``` ### PPPoE PPPoEでIPが振られるので削除 [PPPoEの参考設定](https://www.bfoip.net/jirei-PPPoE03.html) [ip unnumberedについて](https://milestone-of-se.nesuke.com/nw-basic/ip/ip-unnumbered/) - ip unumbered についてのまとめ **『2 台のルータ同士を 1 台とみなす技術』言う説明は間違い!!!!!!!** point-to-point インタフェースにおいて、別のインタフェースから IP を借用することで、IP 空間を節約する技術である。 #### userを作成 ! ### PPPoEアカウント , パスワードを入力 ## ```php username TKY password 0 hayashi username OSK password 0 kimura ``` #### 払い出しのipを作成 ! ### PPPoEクライアントに払い出すIPアドレスを定義 ### ```php ip local pool TKY-pool 192.168.1.2 ip local pool OSK-pool 192.168.2.2 ``` #### Loopbackを設定 loopback1(TKY) ```php int Loopback 1 ip address 192.168.1.1 255.255.255.255 ``` loopback2(OSK) ```php int Loopback 2 ip address 192.168.2.1 255.255.255.255 ``` #### Virtual-Template1(OKY)設定 PPPoEサーバの仮想インタフェースと払い出しIPアドレス設定を対応づけ ```php int Virtual-Template 1 ip unnumbered Loopback1 peer default ip address pool TKY-pool ppp authentication chap ``` Virtual-Template2(OSK) ```php int Virtual-Template 2 ip unnumbered Loopback2 peer default ip address pool OSK-pool ppp authentication chap ``` #### bba-group を定義し、PPPoEサーバの仮想インタフェースと対応づけ ### ! *** bba-group は仮想インタフェースと物理インタフェースをつなぐ役割 *** bba-group pppoe TKY-user ```php bba-group pppoe TKY-user virtual-template 1 ``` bba-group pppoe OSK-user ```php bba-group pppoe OSK-user virtual-template 2 ``` g0/0/1にTKY-userを紐付け ```php int g0/0 pppoe enable group TKY-user no shut ``` g0/0/0にOSK-userを紐付け ```php int g0/1 pppoe enable group OSK-user no shut ``` ## # D1 <a id="4"></a> ipアドレスの設定 ``` interface gigabitEthernet 0/0 ip address 10.0.1.254 255.255.255.0 no shutdown interface gigabitEthernet 0/1 ip address 172.16.1.2 255.255.255.0 no shutdown ``` ospfの設定 ``` router ospf 1 network 172.16.1.2 0.0.0.0 area 0 network 10.0.1.254 0.0.0.0 area 1 ``` 確認 ``` interface GigabitEthernet0/0 ip address 10.0.1.254 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet0/1 ip address 172.16.1.2 255.255.255.0 duplex auto speed auto ~~~~~~~~~~~~ ! router ospf 1 network 10.0.1.254 0.0.0.0 area 1 network 172.16.1.2 0.0.0.0 area 0 ``` # D2 <a id="5"></a> ホストネームの設定 ``` hostname D2 ``` ipアドレスの設定 ``` interface gigabitEthernet 0/0 ip address 10.0.2.254 255.255.255.0 no shutdown interface gigabitEthernet 0/1 ip address 172.16.2.2 255.255.255.0 no shutdown ``` ospfの設定 ``` router ospf 1 network 172.16.2.2 0.0.0.0 area 0 network 10.0.2.254 0.0.0.0 area 2 ``` 確認 ``` interface GigabitEthernet0/0 ip address 10.0.2.254 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet0/1 ip address 172.16.2.2 255.255.255.0 duplex auto speed auto ~~~~~~~~~~~~ ! router ospf 1 network 10.0.2.254 0.0.0.0 area 2 network 172.16.2.2 0.0.0.0 area 0 ``` # core <a id="6"></a> IPアドレスを各インターフェースに設定していく ``` int GigaEthernet0.0 Router(config-GigaEthernet1.0)# ip address 172.16.0.1/24 Router(config-GigaEthernet1.0)# no sh int GigaEthernet1.0 Router(config-GigaEthernet1.0)# ip address 172.16.2.1/24 Router(config-GigaEthernet1.0)# no sh int GigaEthernet2.0 Router(config-GigaEthernet1.0)# ip address 172.16.1.1/24 Router(config-GigaEthernet1.0)# no sh ``` 設定ができたか確認 ``` interface GigaEthernet0.0 ip address 172.16.0.1/24 no shutdown ! interface GigaEthernet1.0 ip address 172.16.2.1/24 no shutdown ! interface GigaEthernet2.0 ip address 172.16.1.1/24 no shutdown ! interface GigaEthernet3.0 no ip address shutdown ! interface Loopback0.0 no ip address ! interface Null0.0 no ip address ``` ip address の設定は出来てそう OSPFの設定をしていく ``` Router(config)# ip router ospf 1 Router(config-ospfv2-1)# network 172.16.0.1/24 area 0 Router(config-ospfv2-1)# network 172.16.1.1/24 area 0 Router(config-ospfv2-1)# network 172.16.2.1/24 area 0 ``` # 12/12 TKY mitarai ``` interface Ethernet0/0 pppoe enable pppoe-client dial-pool-number 1 interface Dialer1 ip address negotiated ip mtu 1492 encapsulation ppp dialer pool 1 dialer-group 1 ppp authentication chap callin ppp chap hostname TKY ppp chap password hayashi exit dialer-list 1 protocol ip permit ip route 0.0.0.0 0.0.0.0 Dialer1 ``` ``` TKY(config)#do sh ppp all Interface/ID OPEN+ Nego* Fail- Stage Peer Address Peer Name ------------ --------------------- -------- --------------- -------------------- Vi2 LCP+ IPCP+ CDPCP- LocalT 192.168.1.1 ISP ``` ``` router ospf 1 network 10.0.3.0 0.0.0.255 area 0 ```

    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