Notes - Computer Network
  • 計算機網路
  • 期中
    • 20200916 Introduction
    • 20200923 Introduction Routing
    • 20200930 Introduction Router Setting
    • 20201007 Introduction DHCP
    • 20201014 Introduction IPV6
    • 20201021 cisco RIP
    • 20201104 cisco EIGRP (一)
    • 20201111 期中週
  • 期末
    • 20201118 cisco EIGRP (二)
    • 20201125 cisco EIGRP (三)
    • 20201202 cisco KDLinux
    • 20201209 cisco VRF & OSPF
    • 20201216 cisco VLAN
    • 20201223 cisco 單臂路由
    • 20201230 cisco STP
    • 20210106 cisco GRE
  • 參考資料
Powered by GitBook
On this page
  • 課堂資料
  • 課堂練習
  • 設定Router ( R2 與 R1 設定相同 )

Was this helpful?

  1. 期中

20200930 Introduction Router Setting

Previous20200923 Introduction RoutingNext20201007 Introduction DHCP

Last updated 4 years ago

Was this helpful?

課堂資料

Cisco router 基本設定:

Administrative Distance (AD) 管理距離:

  • User Mode:一般使用者模式

  • Priviledged Mode:特權模式

  • Config Mode:設定模式

課堂練習

設定Router ( R2 與 R1 設定相同 )

進入特權模式

enable

進入設定模式

conf t

設定路由名稱

hostname R1
hostname R2

離開超級模式

^Z

^Z:ctrl + z

寫入快取

writ

// write memory

進入介面進行設定

int e0/0

避免進行關機作業

no shutdown

設定 R1

ip addr 12.1.1.1 255.255.255.0

取消 R1 IP

no ip addr 12.1.1.1 255.255.255.0

IP 前面加個 no 同等取消 IP

顯示每一個路由器的 IP 位置資訊

show ip int brief

R1 ping R2

ping 12.1.1.2

設定 R2

ip addr 12.1.1.2 255.255.255.0

取消R2 IP

no ip addr 12.1.1.2 255.255.255.0

IP 前面加個 no 同等取消 IP

顯示每一個路由器的 IP 位置資訊

show ip int brief

R2 ping R1

ping 12.1.1.1

設定enable 密碼

設定密碼

enable password [密碼]

登入enable

在離開特權模式並重新登入後,需輸入enable 密碼進行登入

設定輔助密碼(aux)

允許使用Console線以Telnet方式登入

line aux 0

設定密碼

password [密碼]

登入

login

transport input telnet

show run

VPC

新增VPC節點

進入 e0/1 介面

int e0/1

新增 e0/1 IP

ip addr 192.168.1.1 255.255.255.0

no shutdown

查詢已設置IP

do sh ip int brief

設定模式下若要查詢 IP,在 show 之前加上 do 即可

新增 VPC IP

ip dhcp

查詢

sh ip

ping

ping 192.168.1.1

ping 12.1.1.2

ping 12.1.1.1

R1、R2

特權模式下 debug ip

debug ip icmp

查詢路由IP

ip route ?

ip route 2.2.2.2 255.255.255.255 12.1.1.2

ip route 3.3.3.3 255.255.255.255 12.1.1.2

ip route 192.168.1.0 255.255.255.0 12.1.1.2

do ping 2.2.2.2
Cisco router基本設定 @ 小網管筆記 :: 痞客邦 ::小網管筆記
Logo
AD 管理距離 - Jan Ho 的網絡世界Jan Ho 的網絡世界
Logo
模式切換
新增 R1 IP
取消 R1 IP