DynagenでCCIEを目指す
20100316 frame-relay 基本設定
最終更新:
it_certification
-
view
概要
ルータ同士をframe-relayで直接つなぐ場合の設定例
構成
- 構成図

- 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 = R2 s1/0 [[ROUTER R2]]
- 設定
- R1に投入した設定
R1(config)#interface serial 1/0 R1(config-if)#no ip address R1(config-if)#encapsulation frame-relay R1(config-if)#no shutdown R1(config-if)#no keepalive R1(config-if)#exit R1(config)#interface serial 1/0.1 point-to-point R1(config-subif)#ip address 192.168.1.1 255.255.255.0 R1(config-subif)#frame-relay interface-dlci 101 R1(config-subif)#no shutdown
- R2に投入した設定
R1(config)#interface serial 1/0 R1(config-if)#no ip address R1(config-if)#encapsulation frame-relay R1(config-if)#no shutdown R1(config-if)#no keepalive R1(config-if)#exit R1(config)#interface serial 1/0.1 point-to-point R1(config-subif)#ip address 192.168.1.2 255.255.255.0 R1(config-subif)#frame-relay interface-dlci 101 R1(config-subif)#no shutdown
ポイント
- no keepalive
no keepaliveを指定する事でLMI messageを交換しなくなります。LMI messageはルータとframe-relayスイッチの間で交換されるメッセージです。このシナリオの場合、ルータ同士はLMI messageを交換しませんので、no keepaliveの指定がないとserial1/0はdown状態になってしまいます。
検証 keepalive有効の場合の確認
- リンクアップの有無を確認
keepalive無効の場合、serial1/0はup状態になっている
R1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES NVRAM administratively down down FastEthernet0/1 unassigned YES NVRAM administratively down down Serial1/0 unassigned YES manual up up Serial1/0.1 192.168.1.1 YES manual up up Serial1/1 unassigned YES NVRAM administratively down down Serial1/2 unassigned YES NVRAM administratively down down Serial1/3 unassigned YES NVRAM administratively down down
- keepalive 有効
keepaliveを有効する
R1(config)#int serial 1/0 R1(config-if)#keepalive
その後、間髪いれずR2宛てにpingを送信すると、ping応答がある
R1(config-if)#^Z 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 = 32/32/36 ms R1#
- serial 1/0のリンクダウン
しばらくすると、serial1/0がリンクダウンした旨のメッセージが表示される
00:49:41: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
リンクダウン後にpingを送信すると、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 0 percent (0/5)
- リンクアップの有無を確認
keepalive無効の場合、serial1/0はdown状態になっている
R1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES NVRAM administratively down down FastEthernet0/1 unassigned YES NVRAM administratively down down Serial1/0 unassigned YES manual up down Serial1/0.1 192.168.1.1 YES manual down down Serial1/1 unassigned YES NVRAM administratively down down Serial1/2 unassigned YES NVRAM administratively down down Serial1/3 unassigned YES NVRAM administratively down down R1#
添付ファイル