20200930 Introduction Router Setting

課堂資料

Cisco router 基本設定:

Administrative Distance (AD) 管理距離:

模式切換
  • User Mode:一般使用者模式

  • Priviledged Mode:特權模式

  • Config Mode:設定模式

課堂練習

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

進入特權模式

enable

進入設定模式

conf t

設定路由名稱

hostname R1

離開超級模式

^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 位置資訊

show ip int brief
新增 R1 IP
取消 R1 IP

R1 ping R2

ping 12.1.1.2

設定enable 密碼

設定密碼

enable password [密碼]

登入enable

設定輔助密碼(aux)

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

新增 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

Last updated

Was this helpful?