2010年5月22日 星期六

Lab 2-4ab EIGRP Frame Relay Hub and Spoke: Router Used As Frame Switch

Topology

image 

GNS檔案

FRSW
!
!Step 0: Basic Setting
conf
hostname FRS
no ip domain-lookup
!
!Step 2: Configuring the Frame Relay Switch
!啟用Frame-Realy Switch功能
frame-relay switching
!
!設定HQ to East Frame-Rleay route
!設定HQ to West Frame-Rleay route
interface Serial 1/1
description FR to HQ
no ip address
encapsulation frame-relay
clock rate 128000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 interface Serial 1/2 201
frame-relay route 103 interface Serial 1/3 301
no shutdown
!
!設定East to HQ Frame-Rleay route
interface Serial 1/2
description FR to East
no ip address
encapsulation frame-relay
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial 1/1 102
no shutdown
!
!設定West to HQ Frame-Rleay route
interface Serial 1/3
description FR to West
no ip address
encapsulation frame-relay
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface Serial 1/1 103
no shutdown 

HQ 
!
!Step 0: Basic Setting
conf terminal
hostname HQ
no ip domain-lookup
!
!Step 1: Addressing
interface Loopback1
ip address 10.1.1.1 255.255.224.0
interface Loopback33
ip address 10.1.33.1 255.255.224.0
interface Loopback65
ip address 10.1.65.1 255.255.224.0
interface Loopback97
ip address 10.1.97.1 255.255.224.0
interface Loopback129
ip address 10.1.129.1 255.255.224.0
interface Loopback161
ip address 10.1.161.1 255.255.224.0
!
!Step 3: Configuring the Frame Relay Endpoints
!設定介面IP/Frame-Relay Map
int s 0/0 
ip add 172.16.124.1 255.255.255.248 
encapsulation frame-relay ietf
!
!關閉dlci自動識別(需手動指令frame-relay map) 
no frame-relay inverse-arp
!
!Broadcast環境(自動識別鄰居)
frame-relay map ip 172.16.124.1 102 broadcast
frame-relay map ip 172.16.124.2 102 broadcast
frame-relay map ip 172.16.124.3 103 broadcast
!
!NonBroadcast環境(需手動指定鄰居)
frame-relay map ip 172.16.124.1 102
frame-relay map ip 172.16.124.2 102
frame-relay map ip 172.16.124.3 103

!
!Step 4: Setting Interface-Level Bandwidth
conf t
int s 0/0
bandwidth 128
end
!
!設定Frame-Relay介面上EIGRP最大允許使用頻寬百分比(40%)
int s 0/0
ip bandwidth-percent eigrp 1 40
end
!
!Step 5: Configuring EIGRP
router eigrp 1
network 172.16.0.0
network 10.0.0.0
no auto-summary
!
!關閉split-horizon機制讓East與West可以學到對方的路由
no ip split-horizon eigrp 1
end
!
!Step 6: Using Non-broadcast EIGRP Mode
!NonBroadcast環境下需手動指定eigrp鄰居
neighbor 172.16.124.2 Serial0/0
neighbor 172.16.124.3 Serial0/0

end
!
!Step 7: Implementing EIGRP Manual Summarization
!手動摘要eigrp要送出的路由資訊
ip summary-address eigrp 1 10.1.0.0 255.255.0.0 5
end


EAST
!
!Step 0: Basic Setting
conf terminal
hostname East
no ip domain-lookup
!
!Step 1: Addressing
interface Loopback1
ip address 10.2.1.1 255.255.224.0
interface Loopback33
ip address 10.2.33.1 255.255.224.0
interface Loopback65
ip address 10.2.65.1 255.255.224.0
interface Loopback97
ip address 10.2.97.1 255.255.224.0
interface Loopback129
ip address 10.2.129.1 255.255.224.0
interface Loopback161
ip address 10.2.161.1 255.255.224.0
!
!Step 3: Configuring the Frame Relay Endpoints
!設定介面IP/Frame-Relay Map
int s 0/0
ip add 172.16.124.2 255.255.255.248
encapsulation frame-relay ietf
!
!關閉dlci自動識別(需手動指令frame-relay map)  
no frame-relay inverse-arp
!
!Broadcast環境(自動識別鄰居)
frame-relay map ip 172.16.124.1 201 broadcast
frame-relay map ip 172.16.124.2 201 broadcast
frame-relay map ip 172.16.124.3 201 broadcast
!
!NonBroadcast環境(需手動指定鄰居)
frame-relay map ip 172.16.124.1 201
frame-relay map ip 172.16.124.2 201
frame-relay map ip 172.16.124.3 201

!
!Step 4: Setting Interface-Level Bandwidth
conf t
int s 0/0
bandwidth 128
end
!
!設定Frame-Relay介面上EIGRP最大允許使用頻寬百分比(40%)
int s 0/0
ip bandwidth-percent eigrp 1 40
end
!
!Step 5: Configuring EIGRP
router eigrp 1
network 172.16.0.0
network 10.0.0.0
no auto-summary
!
!Step 6: Using Non-broadcast EIGRP Mode
!NonBroadcast環境下需手動指定eigrp鄰居
neighbor 172.16.124.1 Serial0/0

end 
!
!Step 7: Implementing EIGRP Manual Summarization
!手動摘要eigrp要送出的路由資訊
ip summary-address eigrp 1 10.2.0.0 255.255.0.0 5
end

WEST
!
!Step 0: Basic Setting
conf terminal
hostname West
no ip domain-lookup
!
!Step 1: Addressing
interface Loopback1
ip address 10.3.1.1 255.255.224.0
interface Loopback33
ip address 10.3.33.1 255.255.224.0
interface Loopback65
ip address 10.3.65.1 255.255.224.0
interface Loopback97
ip address 10.3.97.1 255.255.224.0
interface Loopback129
ip address 10.3.129.1 255.255.224.0
interface Loopback161
ip address 10.3.161.1 255.255.224.0
!
!Step 3: Configuring the Frame Relay Endpoints
!設定介面IP/Frame-Relay Map(採用Broadcast方式自動識別鄰居)
int s 0/0
ip add 172.16.124.3 255.255.255.248
encapsulation frame-relay ietf
!
!關閉dlci自動識別(需手動指令frame-relay map) 
no frame-relay inverse-arp
!
!Broadcast環境(自動識別鄰居)
frame-relay map ip 172.16.124.1 301 broadcast
frame-relay map ip 172.16.124.2 301 broadcast
frame-relay map ip 172.16.124.3 301 broadcast

!
!NonBroadcast環境(需手動指定鄰居)
frame-relay map ip 172.16.124.1 301
frame-relay map ip 172.16.124.2 301
frame-relay map ip 172.16.124.3 301
!
!Step 4: Setting Interface-Level Bandwidth
conf t
int s 0/0
bandwidth 128
end
!
!設定Frame-Relay介面上EIGRP最大允許使用頻寬百分比(40%)
int s 0/0
ip bandwidth-percent eigrp 1 40
end
!
!Step 5: Configuring EIGRP
router eigrp 1
network 172.16.0.0
network 10.0.0.0
no auto-summary
end
!
!Step 6: Using Non-broadcast EIGRP Mode
!NonBroadcast環境下需手動指定eigrp鄰居
neighbor 172.16.124.1 Serial0/0

end
!
!Step 7: Implementing EIGRP Manual Summarization
!手動摘要eigrp要送出的路由資訊
ip summary-address eigrp 1 10.3.0.0 255.255.0.0 5 
end

Show指令
show frame-relay route
show frame-relay map
show ip route
show interface (介面 代號)
show ip protocol
show ip eigrp neighbors
show ip eigrp interface 
show ip eigrp topology

參考文件
Configuring Frame Relay Switching

Configuring Basic Frame Relay

Configuring Hub and Spoke Frame Relay

Configuration Notes for the Implementation of EIGRP over Frame Relay and Low Speed Links

Comprehensive Guide to Configuring and Troubleshooting Frame Relay

2010年5月15日 星期六

IP Precedence & DSCP 比較圖

IP Precedence & DSCP

Port Mirror/SPAN

 image   

使用Port Monitor的方式
1. 將fa0/1介面的流量轉送一份至fa0/23介面上
(conf)#int fa 0/23
(conf-int)#port monitor int fa 0/1

2. 將vlan1的流量轉送一份至 fa0/23介面上
(conf)#int fa 0/23
(conf)#port monitor vlan 1

驗證與除錯指令
show port monitor

使用Monitor Session的方式
1. 將fa0/1介面的流量轉送一份至fa0/23介面上
(conf)#monitor session 1 source interface fastethernet 0/1
(conf)#monitor session 1 destination interface fastethernet 0/23

2. 將vlan1的流量轉送一份至fa0/23介面上
(conf)#monitor session 1 source vlan 1
(conf)#monitor session 1 destination interface fastethernet 0/23

驗證與除錯指令
show monitor session 1

image  

使用Monitor Session to VLAN的方式
1. 設定SW1為VTP Server
(conf)#vtp domain cisco
(conf)#vtp version 2
(conf)#vtp mode server
(conf)#vtp password cisco
(conf)#vlan 1
(conf-vlan)#name Management-VLAN
(conf-vlan)#exit
(conf)#vlan 88
(conf-vlan)#name Monitor-VLAN
(conf-vlan)#exit
(conf)#int fa 0/22
(conf-int)#switchport mode trunk
(conf-int)#exit

2. 設定SW2為VTP Clinet
(conf)#vtp domain cisco
(conf)#vtp version 2
(conf)#vtp mode client
(conf)#vtp password cisco
(conf)#int fa 0/22
(conf-int)#switchport mode trunk
(conf-int)#exit


3. 將SW2上vlan1的流量轉送到vlan88上
(conf)#monitor session 1 source vlan 1
(conf)#monitor session 1 destination remote vlan 88

4.將SW1上vlan88的流量轉送到fa0/23介面上
(conf)#vlan 88
(conf-vlan)#remote-span 
(conf)#monitor session 1 source remote vlan 88
(conf)#monitor session 1 destination interface fastethernet 0/23

驗證與除錯指令
show monitor session 1

參考文件
http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a008015c612.shtml

2010年5月14日 星期五

查詢Router/Switch的型號/序號/模組

1. 查詢一般Router/Switch設備的型號與序號
#show inventory

(這邊會顯示設備的機型跟序號)
NAME: "2811 chassis", DESCR: "2811 chassis"
PID: CISCO2811         , VID: V07, SN: FTX1226A1WN

(這邊會顯示安裝的模組名稱/安裝位置/型號/序號)
NAME: "WAN Interface Card - Serial 2T on Slot 0 SubSlot 0", DESCR: "WAN Interface Card - Serial 2T"
PID: WIC-2T=           , VID: 1.0, SN: 17253347  

2. 查詢模組類型Router/Switch設備的型號與序號,如7200,4500,6500
#show module

(這邊會顯示安裝的 "主" 模組名稱/型號/序號)
Mod  Ports         Card Type                                         Model                     Serial No.
--- ----- -------------------------------------- ------------------ -----------
  3   48  CEF720 48 port 1000mb SFP                     WS-X6748-SFP         SAL10421C0W
  5    2   Supervisor Engine 720 (Active)                 WS-SUP720-3B         SAL10330NGA
  7   48  48-port 10/100/1000 RJ45 EtherModule    WS-X6148A-GE-TX    SAL51392UH6

(這邊會顯示模組的MAC位址範圍/硬體版本/韌體版本/軟體版本/狀態)
Mod      MAC addresses                          Hw    Fw              Sw                  Status
--- ---------------------------------- ------ ------------ ------------ -------
  3  0018.b98c.c514 to 0018.b98c.c543   1.8   12.2(14r)S5  12.2(18)SXF5   Ok
  5  0017.9441.b3c4 to 0017.9441.b3c7   5.2   8.4(2)          12.2(18)SXF5   Ok
  7  0019.55b4.2140 to 0019.55b4.216f   1.5   8.4(1)          8.5(0.46)RFW  Ok

(這邊會顯示主模組上的 "次" 模組名稱/型號/序號/硬體版本/狀態)
Mod     Sub-Module                         Model              Serial              Hw    Status
---- --------------------------- ------------------ ----------- ------- -------
  3  Centralized Forwarding Card   WS-F6700-CFC   SAL52457H6F  3.0     Ok
  5  Policy Feature Card 3             WS-F6K-PFC3B    SAL12860MU2  2.3    Ok
  5  MSFC3 Daughterboard            WS-SUP720         SAL14460L8Y  2.5     Ok

(這邊會顯示主模組的狀態)
Mod  Online Diag Status
---- -------------------
  3  Pass
  5  Pass
  7  Pass