DynagenでCCIEを目指す
20100317 frame-relay ルータをフレームリレースイッチとして代用
最終更新:
it_certification
-
view
概要
ルータをフレームリレースイッチの代わりとして使う設定例
構成
- 構成図

- netファイル
ghostios = True sparsemem = True model = 3660 [localhost] [[3660]] image = C:\Program Files\Dynamips\images\C3660-I-Mz_20121-5_20T8.bin ram = 128 [[ROUTER R1]] s1/0 = SW s1/0 [[ROUTER R2]] s2/0 = SW s2/0 [[ROUTER SW]]
- 設定
- SWに投入した設定
SW(config)#int Serial 1/0 SW(config-if)#no ip address SW(config-if)#encapsulation frame-relay SW(config-if)#no shutdown SW(config-if)#frame-relay intf-type dce SW(config-if)#frame-relay route 100 interface Serial2/0 200 SW(config-if)#exit SW(config)#int Serial 2/0 SW(config-if)#no ip address SW(config-if)#encapsulation frame-relay SW(config-if)#no shutdown SW(config-if)#frame-relay intf-type dce SW(config-if)#frame-relay route 200 interface Serial1/0 100
- R1に投入した設定
R1(config)#int serial 1/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#frame-relay interface-dlci 100
- R2に投入した設定
R2(config)#int serial 2/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#encapsulation frame-relay R2(config-if)#frame-relay interface-dlci 200
ポイント
- frame-relay intf-type dce
ルータ側はDTEになるため、フレームリレースイッチをDCEと設定。
- frame-relay route
DLCIとIP addressのマッピングを定義。Inverse ARPが有効になっている場合、ルータ側で明示的にマッピングの定義をする必要はない
検証 DLCIとIP addressのマッピング
- SW s1/0をshutdown
SW s1/0をshutdown
R1(config)#int serial 1/0 R1(config-if)#shutdown
R1側のリンクアップを確認
R1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down FastEthernet0/1 unassigned YES unset administratively down down Serial1/0 192.168.1.1 YES manual up down <- L2でdownしている事を確認 Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down
R1側のDLCIとIP addressのマッピングを確認
LMIを介してDLCIとIP addressのマッピング情報を取得するため、何も表示されない。
LMIを介してDLCIとIP addressのマッピング情報を取得するため、何も表示されない。
R1#show frame-relay map R1#
R2側のリンクアップを確認
R2#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down FastEthernet0/1 unassigned YES unset administratively down down Serial2/0 192.168.1.2 YES manual up up <- R2側はupしている Serial2/1 unassigned YES unset administratively down down Serial2/2 unassigned YES unset administratively down down Serial2/3 unassigned YES unset administratively down down
R2側のDLCIとIP addressのマッピングを確認
R2側もR1側と同様に何も表示されない
R2側もR1側と同様に何も表示されない
R2#show frame-relay map R2#
- debugを有効にする
R1#debug frame-relay events Frame Relay events debugging is on R1#debug frame-relay packet Frame Relay packet debugging is on
- 再びSW s1/0をno shutdownする
R1 s1/0がリンクアップした直後に、R2宛てにpingを送信
DLCIとIP addressのマッピングがないため、pingの応答がない
また、DLCIのマッピング情報がない旨のデバッグメッセージが表示される
DLCIとIP addressのマッピングがないため、pingの応答がない
また、DLCIのマッピング情報がない旨のデバッグメッセージが表示される
00:56:50: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up R1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: 00:56:53: Serial1/0:Encaps failed--no map entry link 7(IP). 00:56:55: Serial1/0:Encaps failed--no map entry link 7(IP). 00:56:57: Serial1/0:Encaps failed--no map entry link 7(IP). 00:56:59: Serial1/0:Encaps failed--no map entry link 7(IP). 00:57:01: Serial1/0:Encaps failed--no map entry link 7(IP). Success rate is 0 percent (0/5)
しばらく待つと、Inverse ARPによるDLCIマッピングを取得した旨のデバッグメッセージが表示される
00:57:01: Serial1/0(i): dlci 100(0x1841), pkt encaps 0x0300 0x8000 0x0000 0x806 (ARP), datagramsize 34 00:57:01: Serial1/0: FR ARP input 00:57:01: datagramstart = 0x7801B0E, datagramsize = 34 00:57:01: FR encap = 0x18410300 00:57:01: 80 00 00 00 08 06 00 0F 08 00 02 04 00 08 00 00 00:57:01: C0 A8 01 02 30 81 00 00 00 00 01 02 00 00 00:57:01: 00:57:01: Serial1/0: frame relay INARP received 00:57:01: FR: Sending INARP Reply on interface Serial1/0 dlci 100 for link 7(IP).
再びpingを送信
R1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 52/73/100 ms
DLCIとIP addressのマッピングを再確認
R1#show frame-relay map Serial1/0 (up): ip 192.168.1.2 dlci 100(0x64,0x1840), dynamic, broadcast,, status defined, active R1#
添付ファイル