如果您喜歡這裡的內容,記得分享到您的Facebook和Twitter上面所有的朋友們吧!

2007年12月31日 星期一

2007年12月27日 星期四

Lab小技巧: Banner設定(三)

在各位貼上後, 先登出, 再重新登入, 就可以看到其中的三種 Banner, 如下圖所示:

Press RETURN to get started.

01 MOTD banner
02

01 LOGIN banner
02


User Access Verification

Password:
01 EXEC banner
02

RouterA>

Lab小技巧: Banner設定(二)

其實Banner有很多種類, 我們可以使用以下的例子, 剪貼到全域的設定區(Global Configuration Mode), 來作一一檢視(下載原始檔):

banner exec /
01 EXEC banner
02
/

banner incoming /
01 INCOMING banner
02
/

banner login /
01 LOGIN banner
02
/

banner motd /
01 MOTD banner
02
/

banner prompt-timeout /
01 Prompt-Timeout banner
02
/

Lab小技巧: Banner設定(一)

Banner是在登入IOS的操作介面時, 額外顯示出來的文字訊息, 可以用來提醒登入的操作員, 重要的注意事項.

以MOTD(Message of the Day) Banner為例, 我們可以用以下的方式去設定.

RouterA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#banner motd /
Enter TEXT message. End with the character '/'.
Message of the Day, Good Day!
Welcome to RouterA/
RouterA(config)#end
RouterA#

這時候再重新登入, 就可以看到剛才作的Banner設定文字了!

RouterA#logout

Press RETURN to get started.

Message of the Day, Good Day!
Welcome to RouterA
RouterA>

2007年12月20日 星期四

Lab小技巧: 避免拼錯字, 而卡在命令執行介面

使用命令執行介面操作IOS時, 常常因為拼錯字, 結果IOS自動試著解析這個拼錯的名稱, 浪費了不少時間, 又無法中斷, 像以下這樣:

Translating "pqr"...domain server (255.255.255.255)
(255.255.255.255)

其實只要 取消這個自動解析的功能 就可以了:

Router(config)# no ip domain-lookup

那如果已經 卡在裡面的話, 又要如何解救?

其實最好的辦法, 還是等他自己Timeout. 大約要30秒.
再不然, 用 "Ctrl-Shift-6 x", 穩穩地按, 不要按太快, 也不要按 Enter. 也許可以少個幾秒鐘!

2007年12月18日 星期二

使用乙太網路線, 何時用Straight ? 何時用Cross Over?

我們先將網路設備分成兩大陣營:
  1. 主機: 包括 路由器, PC, 伺服器. 上面安裝的網路卡, 都是給自己使用的.
  2. 基礎建設: 包括 集線器, 交換器, 核心交換器. 上面的安裝的網路卡, 都是給別人用的.
如果是 不同陣營 的設備互接, 就用 Straight;
如果是 相同陣營 的設備互接, 就用 Cross Over.

2007年12月13日 星期四

IPv6 可以定義多少位址?

精準一點說, 應該是以現在的65億人口來算, 每人可以分得到大約 5×1028 個IP位址. 這也算是天文數字了!
http://en.wikipedia.org/wiki/IPv6

另外在 Google 找到一則有趣的分析評論, 其中一段的大意是 "IPv6位址有地球本身的總質子數那麼多" 或是 "IPv6位址有全宇宙的分子數那麼多" 的宣稱的確是誇大了.
http://alumnus.caltech.edu/~copeland/work/23.html

Frame Relay 四個重要推動者

Frame Relay的"四個重要推動者"應該是 Cisco, Digital Equipment Corporation (DEC), Northern Telecom, and StrataCom. 隨後在 1991年 Frame Relay Forum就成立了.

....
A major development in Frame Relay's history occurred in 1990 when Cisco, Digital Equipment Corporation (DEC), Northern Telecom, and StrataCom formed a consortium to focus on Frame Relay technology development.
.....

參考的原文:
http://www.cisco.com/en/US/tech/tk1330/tsd_technology_support_technical_reference_chapter09186a0080759833.html

2007年12月5日 星期三

Lab小技巧: 取消 debugging 訊息

取消 debugging 訊息的最快辦法是:

RouterA# u all

這個命令是由 undebug all來的.

Lab小技巧: 取消重複的帳號密碼登入功能

可以將原始檔(如下圖) Copy/Paste 到CLI:


line con 0
no login
privilege level 15
line vty 0 15
no login
privilege level 15

ICND2 Lab 8-1, Task 1步驟說明

[從 Step 4 開始]

RouterA# conf t
RouterA(config)# int s 0/0/0
RouterA(config-if)# shutdown
RouterA(config-if)# encapsulation frame-relay
RouterA(config-if)# ip address 10.140.1.2 255.255.255.0
RouterA(config-if)# no shutdown
RouterA(config-if)# end
RouterA# show run int s 0/0/0
interface Serial 0/0/0
 ip address 10.140.1.2 255.255.255.0
 encapsulation frame-relay
.....
RouterA#

ICND2 Lab 7-2, Task 4步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# int loop 2
RouterA(config-if)# ip addr 10.123.123.1 255.255.255.0
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# ip addr 10.23.23.1 255.255.255.0
RouterA(config-if)# router eigrp 100
RouterA(config-router)# network 10.0.0.0
RouterA(config-router)# end
RouterA#

ICND2 Lab 7-2, Task 3步驟說明

[從 Step 1 開始]


RouterA# conf t
RouterA(config)# ipv6 router rip cisco
RouterA(config-router)# int s0/0/1
RouterA(config-if)# ipv6 rip cisco enable
RouterA(config-if)# int loop 2
RouterA(config-if)# ipv6 rip cisco enable
RouterA(config-if)# end
RouterA# show ipv6 rip



RouterA# show ipv6 route

ICND2 Lab 7-2, Task 2步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# int s0/0/0
RouterA(config-if)# shutdown
RouterA(config-if)# exit
RouterA(config)# ipv6 unicast-routing
RouterA(config)# int s0/0/1
RouterA(config-if)# ipv6 address 2001:0410:0001:10::/64 eui-64
RouterA(config-if)# int loopback 2
RouterA(config-if)# ipv6 address 2001:0410:0001:1::/64 eui-64
RouterA(config-if)# end
RouterA# show ipv6 int

ICND2 Lab 5-1, Task 4步驟說明

[從 Step 1 開始]

RouterA# debug eigrp neighbors



RouterA# conf t
RouterA(config)# int ser 0/0/0
RouterA(config-if)# shutdown

(等10秒)

RouterA(config-if)# no shutdown
RouterA(config-if)# end
RouterA#




RouterA# undebug all
RouterA#

ICND2 Lab 5-1, Task 3步驟說明

[從 Step 1 開始]

RouterA# show ip route



RouterA# show ip protocols



RouterA# show ip eigrp neighbor



RouterA#

ICND2 Lab 5-1, Task 2步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# key chain icndchain
RouterA(config-keychain)# key 1
RouterA(config-keychain-key)# key-string san-fran
RouterA(config-keychain-key)# int ser 0/0/0
RouterA(config-if)# ip authentication mode eigrp 100 md5
RouterA(config-if)# ip authentication key-chain eigrp 100 icndchain
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# ip authentication mode eigrp 100 md5
RouterA(config-if)# ip authentication key-chain eigrp 100 icndchain
RouterA(config-if)# end
RouterA#

ICND2 Lab 5-1, Task 1步驟說明

[從 Step 6 開始]

RouterA# conf t
RouterA(config)# router eigrp 100
RouterA(config-router)# network 10.0.0.0
RouterA(config-router)# network 192.168.1.0
RouterA(config-router)# int ser 0/0/0
RouterA(config-if)# bandwidth 64
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# bandwidth 64
RouterA(config-if)# end
RouterA#

ICND2 Lab 4-1, Task 5步驟說明

[從 Step 1 開始]

RouterA# show ip route



RouterA# show ip protocols



RouterA# show ip ospf neighbor



RouterA# ping 10.1.1.1



RouterA# debug ip ospf events



RouterA#

ICND2 Lab 4-1, Task 4步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# int ser 0/0/0
RouterA(config-if)# ip ospf authentication-key san-fran
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# ip ospf authentication-key san-fran
RouterA(config-if)# end
RouterA#

RouterA# conf t
RouterA(config)# int ser 0/0/0
RouterA(config-if)# ip ospf authentication
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# ip ospf authentication
RouterA(config-if)# end
RouterA#

ICND2 Lab 4-1, Task 3步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# int loopback 0
RouterA(config-if)# ip addr 192.168.1.65 255.255.255.240
RouterA(config-if)# router ospf 100
RouterA(config-router)# network 192.168.1.65 0.0.0.0 area 0
RouterA(config-router)# network 10.2.2.3 0.0.0.0 area 0
RouterA(config-router)# network 10.140.1.2 0.0.0.0 area 0
RouterA(config-router)# network 10.23.23.1 0.0.0.0 area 0
RouterA(config-router)#int ser 0/0/0
RouterA(config-if)# bandwidth 64
RouterA(config-if)# int ser 0/0/1
RouterA(config-if)# bandwidth 64
RouterA(config-if)# end
RouterA#

2007年12月3日 星期一

ICND2 Lab 4-1, Task 2步驟說明

[從 Step 1 開始]

RouterA# conf t
RouterA(config)# no ip route 0.0.0.0 0.0.0.0 10.2.2.3
RouterA(config)# end
RouterA# show int serial 0/0/0


Description:
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters 4d03h
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/32 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 96 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down

RouterA# conf t
RouterA(config)# int ser 0/0/0
RouterA(config-if)# ip addr 10.140.1.2 255.255.255.0
RouterA(config-if)# no shutdown
RouterA(config-if)# end
RouterA# ping 10.140.1.1



RouterA# ping 10.1.1.3



RouterA# show ip route



RouterA# show controllers serial 0/0/0



RouterA# show controllers serial 0/0/1



RouterA# conf t
RouterA(config)# int ser 0/0/1
RouterA(config-if)# clock rate 64000
RouterA(config-if)# ip address 10.23.23.1 255.255.255.0
RouterA(config-if)# no shutdown
RouterA(config-if)# end
RouterA# ping 10.23.23.2



RouterA#

ICND2 Lab 4-1, Task 1步驟說明

[從 Step 4 開始]

SwitchA# conf t
SwitchA(config)# int fa 0/11
SwitchA(config-if)# shutdown
SwitchA(config-if)# int fa 0/12
SwitchA(config-if)# shutdown
SwitchA(config-if)# end
SwitchA#

SwitchA# conf t
SwitchA(config)# int vlan 1
SwitchA(config-if)# ip addr 10.2.2.11 255.255.255.0
SwitchA(config-if)# exit
SwitchA(config)# ip default-gateway 10.2.2.3
SwitchA(config)# int fa 0/2
SwitchA(config-if)# switchport access vlan 1
SwitchA(config-if)# end
SwitchA#

2007年12月1日 星期六

ICND2 Lab 2-1, Task 5步驟說明

[從 Step 1 開始]

SwitchA# conf t
SwitchA(config)# vlan 20
SwitchA(config-vlan)# vlan 30
SwitchA(config-vlan)# end
SwitchA# show vlan


VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gi0/1, Gi0/22
2 VLAN0002 active Fa0/2
20 VLAN0020 active
30 VLAN0030 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
.....


SwitchA# conf t
SwitchA(config)# spanning-tree vlan 20 root primary
SwitchA(config)# spanning-tree vlan 30 root secondary
SwitchA(config)# end
SwitchA# show spanning-tree vlan 20


SwithcA# show spanning-tree vlan 30

經典熱門文章