2013年1月5日 星期六
Switch Trunk
題:
1:建立Vlan 10 跟 20,並讓全部的電腦可以ping 通
2.將 32.0 網段的電腦 IP 由 DHCP取得
Sw1>
Sw1>enable
Sw1#configure terminal
Sw1(config)#vlan 10
Sw1(config-vlan)#name VLAN10 (名稱自取)
Sw1(config-vlan)#exit
Sw1(config)#vlan 20
Sw1(config-vlan)#name VLAN20 (名稱自取)
Sw1(config-vlan)#exit
Sw1(config)#interface range fa0/1 - 5
Sw1(config-if-range)#switchport mode access
Sw1(config-if-range)#switch access vlan 10
Sw1(config-if-range)#exit
Sw1(config)#interface range fa0/6 - 10
Sw1(config-if-range)#switchport mode access
Sw1(config-if-range)#switch access vlan 20
Sw1(config-if-range)#exit
Sw1(config)#interface fa0/11
Sw1(config-if)#switchport mode trunk
[Sw2],SW2 與SW1 設定一樣
Sw2(config)#interface fa0/12 ( 接R1的 fa0/0 )
Sw2(config-if)#switchport mode trunk
[ R1 ]
R1>
R1>enable
R1#configure terminal
R1(config)#interface fa0/0 ( 接SW1 的 fa0/12 )
R1(config-if)#no shutdown
R1(config-if)#int fa0/0.1
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.192.32.1 255.255.255.0
R1(config-subif)#int fa0/0.2
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.192.33.1 255.255.255.0
R1(config-subif)#exit
R1(config)#int s0/0/0
R1(config-if)#ip address 192.192.34.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.192.32.0
R1(config-router)#network 192.192.33.0
R1(config-router)#network 192.192.34.0
R1(config-router)#exit
R1(config)#ip dhcp pool TEST (名稱自取)
R1(dhcp-config)#network 192.192.32.0 255.255.255.0
R1(dhcp-config)#default-router 192.192.32.1
[ R2 ]
R2>
R2>enable
R2#configure terminal
R2(config)#int s0/0/1
R2(config-if)#no shutdown
R2(config-if)#ip address 192.192.34.2 255.255.255.0
R2(config-if)#int fa0/0
R2(config-if)#ip address 192.192.35.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 192.192.34.0
Router(config-router)#network 192.192.35.0
[ 3560 Switch ]
Switch>
Switch>en
Switch#conf t
Switch(config)#ip routing (啟動 routing 功能)
Switch(config)#vlan 10
Switch(config-vlan)#name VLAN10 (名稱自取)
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name VLAN20 (名稱自取)
Switch(config-vlan)#exit
Switch(config)#int range fa0/1 - 5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#int range fa 0/6 - 10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#int vlan 10
Switch(config-if)#ip address 192.192.36.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#int vlan 20
Switch(config-if)#ip address 192.192.37.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config-if)#int fa0/11
Switch(config-if)#no switchport
Switch(config-if)#ip address 192.192.35.2 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#router rip
Switch(config-router)#version 2
Switch(config-router)#no auto-summary
Switch(config-router)#network 192.192.35.0
Switch(config-router)#network 192.192.36.0
Switch(config-router)#network 192.192.37.0
2012年12月29日 星期六
Switch port-security
題:
(1) 32.10、20、30 接在一台 HUB 上,當有其他電腦再接上時 Switch 會將該 Port 關閉。
(2) 設定遠端管理登入 Switch
Switch>
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/1 (將安全性規則設在 fa0/1)
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security maximum 3 (最多 3 台設備)
Switch(config-if)#switchport port-security mac-address 0030.A3A9.B8B2 (手動輸入MAC位置)
Switch(config-if)#switchport port-security mac-address 000B.BEC1.DB21
Switch(config-if)#switchport port-security mac-address 0002.4ADD.57A9
Switch(config-if)#switchport port-security violation shutdown
Switch(config-if)#exit
欲要讓 Switch 回復正常,需先將 Other 線拔除後 ,再將Port 輸入 shutdown ,再 no shutdown
補充: Switch(config-if)#switchport port-security mac-address sticky (可自動黏貼 MAC 位置,先上的先贏)
[ 設定管理位置 ] (可利用 telnet 到此Switch 做管理和設定)
Switch>
Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1 (Switch 預設 All port 為 vlan1)
Switch(config-if)#ip address 192.192.32.100 255.255.255.0 (自訂一個 IP 給Switch )
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.192.32.1 (預設匝道)
Switch(config)#line vty 15 (Switch 可同時登入的人數 15 )
Switch(config-line)#password cisco (密碼自訂)
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#enable secret 12345 (密碼自訂)
CCNA Switch Vlan
題: 設定32.10 跟 32.20 為Vlan 10 ( port 為 1 ~ 5 ),33.10 跟 33.20 為Vlan 20 ( port 為 6 ~ 10 )
但要能互通。須加台Router,因 Switch 是屬於 layer 2 的設備無法設定IP
設定指令如下
[Router 部分]
Router>
Router>enable
Router#configure terminal
Router(config)#interface fa0/0
Router(config-if)#ip address 192.192.33.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fa0/1
Router(config-if)#ip address 192.192.32.1 255.255.255.0
Router(config-if)#no shutdown
[Switch 部分]
Switch>
Switch>enable
Switch#conf terminal
Switch(config)#vlan 10
Switch(config-vlan)#name TEST1 (自取)
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name TEST2 (自取)
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1 - 5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switch access vlan 10
Switch(config-if-range)#exit
Switch(config)#interface range fastEthernet 0/6 - 10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switch access vlan 20
2012年12月13日 星期四
ACL 命名式、延伸式、反射式存取表單
格式 :
ACL 命名式存取表單
Router(config)#ip access-list standard NAME
(NAME 自取)
Router(config-std-nacl)#permit | deny {source [wildcard] | any}
ACL 延伸式存取表單
Router(config)#ip access-list extended NAME
(NAME 自取)
Router(config-ext-nacl)#permit | deny {protocol} (source [wildcard] | any) <eq>
ACL 反射式存取表單
Router(config)#ip access-list extended NAME
Router(config-ext-nacl)#permit ip any any reflect pass
(* reflect 在Packet Tracer裡打不出來)
ACL 命名式存取表單
Router(config)#ip access-list standard NAME
(NAME 自取)
Router(config-std-nacl)#permit | deny {source [wildcard] | any}
ACL 延伸式存取表單
Router(config)#ip access-list extended NAME
(NAME 自取)
Router(config-ext-nacl)#permit | deny {protocol} (source [wildcard] | any) <eq>
ACL 反射式存取表單
Router(config)#ip access-list extended NAME
Router(config-ext-nacl)#permit ip any any reflect pass
(* reflect 在Packet Tracer裡打不出來)
2012年12月8日 星期六
ACL Established
題 :
只有 32.0 網段的PC能對外(34.2 and 35.2) 存取網頁,其他(34,35)的PC不能存取 32.0 網段的任何服務。
R1>
R1>enable
R1#configure terminal
R1(config)#int fa0/0
R1(config-if)#ip address 192.192.32.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int s0/0/0
R1(config-if)#ip address 192.192.33.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.192.32.0
R1(config-router)#network 192.192.33.0
R1(config-router)#exit
(介面IP 與 路由設定)
R1(config)#access-list 100 permit tcp any 192.192.32.0 0.0.0.255 established
(允許 32.0 的網段到任何網段的 Tcp 行為)
R1(config)#access-list 100 permit udp any eq 520 any eq 520
(允許任何網段到任何網段的 RIP 路由協定)
R1(config)#access-list 100 permit icmp any 192.192.32.0 0.0.0.255 echo-reply
(允許 32.0 網段 Ping 到任何網段的回應 )
R1(config)#int s0/0/0
R1(config-if)#ip access-group 100 in
(將100號規則放到 s0/0/0 的"進入"方向)
------------------------------------------------------------------------------------------
R2>
R2>enable
R2#configure terminal
R2(config)#int fa0/0
R2(config-if)#ip address 192.192.34.1 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int s0/0/1
R2(config-if)#ip address 192.192.33.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int s0/0/0
R2(config-if)#ip address 192.192.35.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#clock rate 64000
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.192.33.0
R2(config-router)#network 192.192.34.0
R2(config-router)#network 192.192.35.0
(介面IP 與 路由設定)
2012年12月1日 星期六
ACL 筆記
題:
允許192.192.36.0 網段的主機到 192.192.32.2 的主機 網頁伺服器
允許192.192.34.0 網段的主機到 192.192.32.3 的主機 FTP伺服器
允許192.192.34.0 網段的主機 ping 到 192.192.32.0 的主機並回應
只允許192.192.32.10 的主機到 192.192.36.2 的主機 網頁伺服器
其他允許192.192.32.0 網段的主機到 任何網段的主機 任何IP訪問
R1>
R1>enable
R1#configure terminal
R1(config)#int fa0/0
R1(config-if)#ip address 192.192.32.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int s0/0/0
R1(config-if)#ip address 192.192.33.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.192.32.0
R1(config-router)#network 192.192.33.0
R1(config-router)#exit
(介面IP 與 路由設定)
------------------------------------------------------------------------------------------
R1(config)#access-list 100 permit tcp 192.192.36.0 0.0.0.255 host 192.192.32.2 eq 80
(允許192.192.36.0 網段的主機到 192.192.32.2 的主機 網頁伺服器)
R1(config)#access-list 100 permit tcp 192.192.34.0 0.0.0.255 host 192.192.32.3 eq 21
(允許192.192.34.0 網段的主機到 192.192.32.3 的主機 FTP伺服器)
R1(config)#access-list 100 permit icmp 192.192.34.0 0.0.0.255 192.192.32.0 0.0.0.255 echo
(允許192.192.34.0 網段的主機 ping 到 192.192.32.0 的主機並回應)
R1(config)#access-list 100 permit permit udp any any eq 520
(允許 任何網段的RIP路由協定 到 任何網段的RIP路由協定 的主機)
R1(config)#access-list 100 permit tcp host 192.192.36.2 eq 80 host 192.192.32.10
(允許192.192.36.2 的 網頁資料 傳送到 192.192.32.10 主機 )
R1(config)#access-list 101 permit tcp host 192.192.32.3 eq 20 192.92.24.0 0.0.0.255
(允許192.192.32.3 主機回傳 FTP資料 到 192.192.34.0 網段)
R1(config)#access-list 101 permit tcp host 192.192.32.10 host 192.192.36.2 eq 80
(允許192.192.32.10 的主機到 192.192.36.2 的主機 網頁伺服器)
R1(config)#access-list 101 deny tcp 192.192.32.0 0.0.0.255 host 192.192.36.2 eq 80
(拒絕192.192.32.0 網段的主機到 192.192.36.2 的主機 網頁伺服器)
R1(config)#access-list 101 permit ip any any
(允許192.192.32.0 網段的主機到 任何網段的主機 任何IP訪問)
R1(config)#int s0/0/0
R1(config-if)#ip access-group 100 in
將100號規則放到 s0/0/0 的"進入"方向
R1(config-if)#ip access-group 101 out
將101號規則放到 s0/0/0 的"出去"方向
(如果把介面放到Fa0/0,則進出方向亦相反)
------------------------------------------------------------------------------------------
R2>
R2>enable
R2#configure terminal
R2(config)#int fa0/0
R2(config-if)#ip address 192.192.34.1 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int s0/0/1
R2(config-if)#ip address 192.192.33.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int s0/0/0
R2(config-if)#ip address 192.192.35.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#clock rate 64000
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.192.33.0
R2(config-router)#network 192.192.34.0
R2(config-router)#network 192.192.35.0
(介面IP 與 路由設定)
------------------------------------------------------------------------------------------
R1>
R1>enable
R1#configure terminal
R1(config)#int fa0/0
R1(config-if)#ip address 192.192.36.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int s0/0/1
R1(config-if)#ip address 192.192.35.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.192.35.0
R1(config-router)#network 192.192.36.0
(介面IP 與 路由設定)
2012年11月5日 星期一
CISCO 指令管理
Cisco 指令管理筆記 。
Config# enable password "明碼"
Config# service password-encryption ← telnet 密碼加密
2.
Config# line console 0
Config-line# exec-timeout 0 0 ←保持console連線,注意有安全疑慮
Config-line# logging synchronous ←使游標還原到原來位置,重新顯示被覆蓋的命令
3.
# clock rate
DCE 設備的 interface 需設定 clock rate 64000 數字部分看狀況
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
2.
Config# line console 0
Config-line# exec-timeout 0 0 ←保持console連線,注意有安全疑慮
Config-line# logging synchronous ←使游標還原到原來位置,重新顯示被覆蓋的命令
3.
# clock rate
DCE 設備的 interface 需設定 clock rate 64000 數字部分看狀況
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
2.
Config# line console 0
Config-line# exec-timeout 0 0 ←保持console連線,注意有安全疑慮
Config-line# logging synchronous ←使游標還原到原來位置,重新顯示被覆蓋的命令
3.
# clock rate
DCE 設備的 interface 需設定 clock rate 64000 數字部分看狀況
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
3.
# clock rate
DCE 設備的 interface 需設定 clock rate 64000 數字部分看狀況
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
3.
# clock rate
DCE 設備的 interface 需設定 clock rate 64000 數字部分看狀況
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
4.
# sh process cpu ←查看 Process 的 CPU 使用狀態
# sh session ←看telnet的聯接
# clear line [號碼] ←清除telnet連接
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
5.關閉Debug
# no debug service ←關閉偵測除錯
# no debug all ←關閉所有偵測除錯
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
6.
# sh spanning-tree
檢查 switch 上每各 port 為 forwarding 還是 blocking,可在L2上使用
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
7.
Config# mac-address-table static 1111.1111.1111 fa0/9
設定靜態Mac對應來限制封包從哪些特定來源才能通過
# sh mac-address-table static
Config# mac-address-table secure 1111.1111.1111 fa0/9
設定具有安全性的 mac 是要確保只有特殊設備才能連上指定的 port
# sh mac-address-table secure
9.
# sh port security ←檢查有安全性設定的port
10. VTP (VLAN trunking Protocol)
*範圍相同的VTP領域(domain)名稱,而且互相連結在一起的switch
*VTP mode有三種,Server, Transparent, Client
*Server mode可建立、刪除、修改vlan,並進行資訊同步化
*Client mode只可接收被同步化
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
9.
# sh port security ←檢查有安全性設定的port
10. VTP (VLAN trunking Protocol)
*範圍相同的VTP領域(domain)名稱,而且互相連結在一起的switch
*VTP mode有三種,Server, Transparent, Client
*Server mode可建立、刪除、修改vlan,並進行資訊同步化
*Client mode只可接收被同步化
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
9.
# sh port security ←檢查有安全性設定的port
10. VTP (VLAN trunking Protocol)
*範圍相同的VTP領域(domain)名稱,而且互相連結在一起的switch
*VTP mode有三種,Server, Transparent, Client
*Server mode可建立、刪除、修改vlan,並進行資訊同步化
*Client mode只可接收被同步化
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
10. VTP (VLAN trunking Protocol)
*範圍相同的VTP領域(domain)名稱,而且互相連結在一起的switch
*VTP mode有三種,Server, Transparent, Client
*Server mode可建立、刪除、修改vlan,並進行資訊同步化
*Client mode只可接收被同步化
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
10. VTP (VLAN trunking Protocol)
*範圍相同的VTP領域(domain)名稱,而且互相連結在一起的switch
*VTP mode有三種,Server, Transparent, Client
*Server mode可建立、刪除、修改vlan,並進行資訊同步化
*Client mode只可接收被同步化
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*設定vlan domain與密碼
# vlan database
(vlan)# vtp domain magic password cisco
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*設定VTP模式
# vlan database
(vlan)# vtp client (or # vtp server)
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*顯示 VTP
# sh vtp status
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
*檢查 VLAN
# sh vlan
or
# sh vlan brief
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
11.在交換器上設定Vlan
Config-if# int fa0/2
Config-if# switchport access vlan 2
Config-if# int fa0/3
Config-if# switchport access vlan 3
Config-if# int fa0/4
Config-if# switchport access vlan 4
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
Config# vlan 2-10 ←同時建立 2-10 的vlan
Config-vlan# end
注意:只可以同時對一個vlan進行命名
12.
設定 trunk(2960)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
注意:只可以同時對一個vlan進行命名
12.
設定 trunk(2960)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
注意:只可以同時對一個vlan進行命名
12.
設定 trunk(2960)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
12.
設定 trunk(2960)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
12.
設定 trunk(2960)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
設定trunk(3750 or 6509)
Config# int fa0/2
Config-if# switchport mode trunk
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
設定trunk
Config-if# switchport trunk encapsulation dot1q
1.進入介面配置 Switch(config)
# interface fastethernet 5/8
2.關閉介面
Config-if# shutdown
3.選擇封裝類型
Config-if# switchport trunk encapsulation dot1q
4.配置介面允許通過 VLAN
Config-if# switchport trunk allowed vlan 1,5,11,1002-1005(add,all,except,none,remove)
5.配置界面為trunk
Config-if# switchport mode trunk
6.指定 trunking native vlan
Config-if# switchport trunk native vlan 99
7.Switch(config-if)# switchport nonegotiate
8.啟動介面
Config-if# no shutdown
9.檢查trunk配置
# show interfaces fastEthernet 5/8 switchport
fa5/8
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (trunk_only)
Trunking VLANs Enabled: 1,5,11,1002-1005
Pruning VLANs Enabled: 2-1001
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
13.Access Link 允許一個 Vlan 在線路上傳遞資料,Trunk Link 允許一個以上 Vlan 傳遞資料
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
14.CIDR指的是,192.168.1.1 和192.168.2.1 分別屬於兩各不同的 class C,若要整合進去同一筆,可向前借位,將原來要兩筆192.168.1.0/24,192.168.2.0/24 改成 192.168.1.0/23,打破原來class A, B, C的限制。
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
15.ip subnet-zero 告訴 Router 打破不能使用第一個與最後一個子網路的規則。
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
16.想在某一介面下新增第二筆IP,使用
Router(config-if)# ip address 172.16.20.2 255.255.255.0 secondary
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
17. # sh protocols ←可檢視每各介面的第一層與第二層狀態
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
18.static route:
# ip route [destination_network] [mask] [next-hop_address]
Ex:
(config)# ip route 172.16.3.0 255.255.255.0 192.168.2.4
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
*使用sh ip route,可看到S標記
# ip route 172.16.3.0(遠端,也就是要去哪個網段) 255.255.255.0 192.168.2.4(下個router ip)
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
19.
Jan 02 12:59:26 163.25.96.241 134: *Mar 1 01:49:23: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/network-confg) failed
Jan 02 13:00:04 163.25.96.241 135: *Mar 1 01:50:01: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/cisconet.cfg) failed
Jan 02 13:00:42 163.25.96.241 136: *Mar 1 01:50:39: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp://255.255.255.255/eng4f-confg) failed
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
解決方式:(config)# no service config
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
20.OSPF設定
# Config t
# router ospf 1 (1無意義,可隨意選數字)
# network 10.1.1.1 0.0.0.0 area 0 (0為區域碼,需相同才能互通)
# network 10.5.2.1 0.0.0.0 area 0
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
檢查設定指令
# sh ip route
# sh ip ospf
# sh ip ospf database
# sh ip ospf interface
# sh ip ospf neighbor
# sh ip protocols
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
OSPF debug
# debug ip ospf events
# debug ip ospf packet
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
21.default route
# ip route 0.0.0.0 0.0.0.0 192.168.1.9(下個router IP,或自身要離開的介面,如s0/0)
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
使用 default route,必須加上ip classless
另一種寫法
# ip default-network 217.124.6.0
Config# sh ip route ←檢查
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
22.設定 domain server
# ip domain-lookup ←預設即打開,如未使用建議可關閉
# ip name-server 163.25.114.1
# ip domain-name cgu.edu.tw
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
23.不讓日誌消息打擾你的配置過程
Cisco IOS中另一個我認為的小毛病就是在我配置路由器時,控制臺介面就不斷彈出日誌消息(可能是控制台端口,AUX端口或VTY端口)。要預防這一點,你可以這樣做。所以在每一條端口線路上,我使用日誌同步命令。舉例如下:
Router(config)# line con 0
Router(config-line)# logging synchronous
Router(config)# line aux 0
Router(config-line)# logging synchronous
Router(config)# line vty 0 4
Router(config-line)# logging synchronous
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
除此之外,你可以在端口上修改這些端口的執行超時時間。例如,我們假設你想禁用 VTY線路上默認的十分鐘超時時間。在線路配置模式下使用 exec-timeout 0 0 命令,使路由器永不退出。
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
24.備份IOS
Router(config)# copy flash tftp
25. 升級IOS
Router(config)# copy tftp flash
25. 升級IOS
Router(config)# copy tftp flash
25. 升級IOS
Router(config)# copy tftp flash
1.
Config# enable Secret "暗碼"
8.
Config# no vlan 2-10 ←同時刪除 2-10 的vlan
訂閱:
文章 (Atom)