--- tags: Network Management 2023 Spring --- # CCNA Network Visualizer Lab 01 <!-- {%hackmd hackmd-dark-theme %} --> > 國立成功大學 網路管理 [IM7021E] 2023 Spring 筆記整理 課程使用的是CCNA Network Visualizer 5.0.09 Lab 02:https://hackmd.io/@cpt/HJofgfCXn ## Introduction ### 3 Modes ```cisco! Router> // 這是在user mode // 進入Privileged Mode, aka Superuser mode Router> enable Router# // 這樣就是在privileged mode Router# show run // 可以看到目前router的四個interface的設定 // Global Configuration // can do machine setting Router# config terminal Router(config)# // 這樣就進入global configuration mode ```  ### Interface Setting ```cisco! Router(config)# interface fastethernet 0/0 // 設定F0/0 interface Router(config-if)# ip address 192.168.0.1 255.255.255.0 // 設定port F0/0的IP address和mask ```   ## Router Setting ### Layout:   ### 先對兩台電腦Host A和Host B做設定   ### 設定Router A和B的IP 設定Router A ```cisco! Router>en // 進入privileged mode Router#config t // 進入configuration mode Router(config)#hostname 2600A // 設定hostname // 接下來要設定Router A的F0/0的IP和mask // Router A的F0/0的IP其實就是gateway 2600A(config)#interface f0/0 2600A(config-if)#ip address 192.168.10.1 255.255.255.0 2600A(config-if)#no shutdown // 接下來要設定Router A的S0/0的IP和mask // 由於Router A在這裡被設定為DCE,所以要設定clock rate // Router B是DTE,就不用設定clock rate 2600A(config-if)#interface serial 0/0 2600A(config-if)#ip address 192.168.20.1 255.255.255.0 2600A(config-if)#clock rate 64000 2600A(config-if)#no shutdown ``` 查看Router A目前IP的設定 ```cisco! 2600A>en // 秀出此router目前所有的configuration 2600A#show running-config // 秀出此router的routing table 2600A#show ip route // 目前只會秀出directly connected network ```  設定Router B ```cisco! Router>en // 進入privileged mode Router#config t // 進入configuration mode Router(config)#hostname 2600B // 設定hostname // 接下來要設定Router B的F0/0的IP和mask // Router B的F0/0的IP其實就是gateway 2600B(config)#interface f0/0 2600B(config-if)#ip address 192.168.30.1 255.255.255.0 2600B(config-if)#no shutdown // 接下來要設定Router B的S0/0的IP和mask 2600B(config-if)#interface serial 0/0 2600B(config-if)#ip address 192.168.20.2 255.255.255.0 2600B(config-if)#no shutdown ``` 查看Router B目前IP的設定 ```cisco! 2600B>en 2600B#show running-config 2600B#show ip route ```  ### 設定RIP Routing 若設定RIP routing,要用`router rip`指令去設定RIP,然後告訴router哪個networks are advertised with RIP 設定2600A router: ```cisco! 2600A#config t 2600A(config)#router rip 2600A(config-router)#network 192.168.10.0 2600A(config-router)#network 192.168.20.0 2600A(config-router)#^z ``` 設定2600B router: ```cisco! 2600B#config t 2600B(config)#router rip 2600B(config-router)#network 192.168.30.0 2600A(config-router)#network 192.168.20.0 2600B(config-router)#^z ``` ### 確認RIP Routing ```cisco! // 查看routing table 2600A#show ip route // to see RIP updates being sent and received on the router 2600A#degub ip rip // to turn off debugging,以下兩個指令都可以 2600A#no debug ip rip 2600A#undebug all // to see the routing protocol timers 2600A#show ip protocols // to see the routed protocol configuration of each interface 2600A#show protocols ```  - R: means it is a RIP found route - C: a directly connected network ### Configuring and Verifying the Hosts Host A和B可以互相連通了  
×
Sign in
Email
Password
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