2009年11月8日日曜日

GNS3 で Frame Relay Switch の設定


条件

■ 物理的な接続
R1-Se0/0 -- FRSW-Se0/0
R2-Se0/0 -- FRSW-Se0/1
R3-Se0/0 -- FRSW-Se0/2

■ Frame Relay Switch の設定
DLCI=102 -- DLCI=201
DLCI=103 -- DLCI=301
DLCI=203 -- DLCI=302

■ IP アドレス
R1-Lo0: 10.10.1.1/24
R2-Lo0: 10.10.2.2/24
R3-Lo0: 10.10.3.3/24

R1-Se0/0.102: DLCI=102: 192.168.12.1/24
R1-Se0/0.103 DLCI=103: 192.168.13.1/24
R2-Se0/0.201: DLCI=201: 192.168.12.2/24
R2-Se0/0.203: DLCI=203: 192.168.23.2/24
R3-Se0/0.301: DLCI=301: 192.168.13.3/24
R3-Se0/0.302: DLCI=302: 192.168.23.3/24

■ ルーティング
R1, R2, R3: EIGRP 10


設定

■ FRSW
frame-relay switching
!
interface Serial0/0
description to R1
no ip address
encapsulation frame-relay
clock rate 2000000 !--- Dynamips では自動で入る。
frame-relay intf-type dce
frame-relay route 102 interface Serial0/1 201
frame-relay route 103 interface Serial0/2 301
!
interface Serial0/1
description to R2
no ip address
encapsulation frame-relay
clock rate 2000000 !--- Dynamips では自動で入る。
frame-relay intf-type dce
frame-relay route 201 interface Serial0/0 102
frame-relay route 203 interface Serial0/2 302
!
interface Serial0/2
description to R3
no ip address
encapsulation frame-relay
clock rate 2000000 !--- Dynamips では自動で入る。
frame-relay intf-type dce
frame-relay route 301 interface Serial0/0 103
frame-relay route 302 interface Serial0/1 203

■ R1
interface Loopback0
ip address 10.10.1.1 255.255.255.0
!
interface Serial0/0
no ip address
encapsulation frame-relay
clock rate 2000000 !--- Dynamips では自動で入る。
!
interface Serial0/0.102 point-to-point
description to R2
ip address 192.168.12.1 255.255.255.0
frame-relay interface-dlci 102
!
interface Serial0/0.103 point-to-point
description to R3
ip address 192.168.13.1 255.255.255.0
frame-relay interface-dlci 103
!
router eigrp 10
network 0.0.0.0
no auto-summary

■ R2
(略)

■ R3
(略)


出力
■ FRSW
FRSW#sh frame-relay route
Input Intf Input Dlci Output Intf Output Dlci Status
Serial0/0 102 Serial0/1 201 active
Serial0/0 103 Serial0/2 301 active
Serial0/1 201 Serial0/0 102 active
Serial0/1 203 Serial0/2 302 active
Serial0/2 301 Serial0/0 103 active
Serial0/2 302 Serial0/1 203 active

■ R1
R1#sh frame-relay map
Serial0/0.102 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast
status defined, active
Serial0/0.103 (up): point-to-point dlci, dlci 103(0x67,0x1870), broadcast
status defined, active

R1#sh ip ro | b ^Gate
Gateway of last resort is not set
C 192.168.12.0/24 is directly connected, Serial0/0.102
C 192.168.13.0/24 is directly connected, Serial0/0.103
10.0.0.0/24 is subnetted, 3 subnets
C 10.10.1.0 is directly connected, Loopback0
D 10.10.2.0 [90/2297856] via 192.168.12.2, 00:12:26, Serial0/0.102
D 10.10.3.0 [90/2297856] via 192.168.13.3, 00:12:21, Serial0/0.103
D 192.168.23.0/24 [90/2681856] via 192.168.13.3, 00:12:26, Serial0/0.103
[90/2681856] via 192.168.12.2, 00:12:26, Serial0/0.102

R1#p 10.10.2.2 so lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.2.2, timeout is 2 seconds:
Packet sent with a source address of 10.10.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/48/76 ms

R1#p 10.10.3.3 so lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.3.3, timeout is 2 seconds:
Packet sent with a source address of 10.10.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/36/48 ms


注意
  • GNS3 (Dyanmips) では、"clock rate" の設定を明示的に入れる必要はありません。実機では、シリアルケーブルの DCE 側で、必ず "clock rate" の設定を入れる必要があります。
  • ルータの物理インタフェース (Serial) で "no shut" が必要です。

0 件のコメント: