Cisco IOS フレームリレー – Back To Back 接続 02

スポンサーリンク

Frame RelayにおけるBack to Back接続についてまとめます。Back to Backとはフレームリレースイッチを使わない接続方法です。このページではLMIを有効にした接続方法について説明します。

概要

Back to Backには以下2通りの接続方法があります。このページでは後者のhybird methodについて説明します。

  • LMIを無効にした接続方法 (no keepalive)
  • LMIを有効にした接続方法 (hybird method)

構成図

以下の環境で動作確認を行います。

        s0/0      s0/0
  +------+.1      .2+------+
  |  R1  +----------+  R2  |
  +------+          +------+
     DLCI_102     DLCI_201
       192.168.12.0/24
 [R1]
ipv6 unicast-routing
!
interface Serial0/0
 ip address 192.168.12.1 255.255.255.0
 encapsulation frame-relay
 ipv6 address FEC0:12::1/64
 ipv6 address FE80::1 link-local
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
 ipv6 address FEC0:1::1/64

 [R2]
ipv6 unicast-routing
!
interface Serial0/0
 ip address 192.168.12.2 255.255.255.0
 encapsulation frame-relay
 ipv6 address FEC0:12::2/64
 ipv6 address FE80::2 link-local
!
interface Loopback0
 ip address 10.2.2.2 255.255.255.255
 ipv6 address FEC0:2::2/64

設定全文は下記ファイルです。詳細設定は下記を参照ください。

R1
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
 ipv6 address FEC0:1::1/64
!
interface Serial0/0
 ip address 192.168.12.1 255.255.255.0
 encapsulation frame-relay
 ipv6 address FEC0:12::1/64
 ipv6 address FE80::1 link-local
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
!
end
R2
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.2.2 255.255.255.255
 ipv6 address FEC0:2::2/64
!
interface Serial0/0
 ip address 192.168.12.2 255.255.255.0
 encapsulation frame-relay
 ipv6 address FEC0:12::2/64
 ipv6 address FE80::2 link-local
 serial restart-delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
!
end

方法 1

DCEの定義

R1側をDCEとして設定し、R2側をDTEとして設定します。また、R1, R2それぞれにframe-relay mapを定義します。

 [R1]
interface Serial0/0
 frame-relay map ipv6 FE80::2 102 broadcast
 frame-relay map ipv6 FEC0:12::2 102
 frame-relay map ip 192.168.12.1 102
 frame-relay map ip 192.168.12.2 102 broadcast
 frame-relay map ipv6 FE80::1 102
 no frame-relay inverse-arp
 frame-relay intf-type dce

 [R2]
interface Serial0/0
 frame-relay map ipv6 FE80::2 201
 frame-relay map ipv6 FEC0:12::1 201
 frame-relay map ip 192.168.12.1 201 broadcast
 frame-relay map ip 192.168.12.2 201
 frame-relay map ipv6 FE80::1 201 broadcast
 no frame-relay inverse-arp

R2側のframe-relay mapがdeletedと表示されている事を確認します。

 [R2]
R2#show frame-relay map
Serial0/0 (up): ipv6 FE80::2 dlci 201(0xC9,0x3090), static,
              CISCO, status deleted
Serial0/0 (up): ipv6 FEC0:12::1 dlci 201(0xC9,0x3090), static,
              CISCO, status deleted
Serial0/0 (up): ip 192.168.12.1 dlci 201(0xC9,0x3090), static,
              broadcast,
              CISCO, status deleted
Serial0/0 (up): ip 192.168.12.2 dlci 201(0xC9,0x3090), static,
              CISCO, status deleted
Serial0/0 (up): ipv6 FE80::1 dlci 201(0xC9,0x3090), static,
              broadcast,
              CISCO, status deleted
R2#

frame-relayがdeleteと表示されているのは、PVC201が確立されていないためです。show frame-relay pvcコマンドを入力すると、PVC201がDELETEDとなっている事が読み取れます。

 [R2]
R2#show frame-relay pvc

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

              Active     Inactive      Deleted       Static
  Local          0            0            1            0
  Switched       0            0            0            0
  Unused         1            0            0            0

DLCI = 102, DLCI USAGE = UNUSED, PVC STATUS = ACTIVE, INTERFACE = Serial0/0

  input pkts 0             output pkts 0            in bytes 0
  out bytes 0              dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 0         out bcast bytes 0
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
  pvc create time 00:05:49, last time pvc status changed 00:05:49

DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = DELETED, INTERFACE = Serial0/0

  input pkts 0             output pkts 2            in bytes 0
  out bytes 160            dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 2         out bcast bytes 160
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
  pvc create time 00:06:50, last time pvc status changed 00:05:50
R2#

PVC確立

PVCが確立されるのは、DCE側でframe-relay mapまたはframe-relay interface-dlciで定義されたPVCのみです。DCEであるR1にPVC201を確立できるよう、interface-dlciコマンドを投入します。

 [R1]
interface Serial0/0
 frame-relay interface-dlci 201

PVC201がDELTEDからACTIVEに変わった事を確認します。

 [R2]
R2#show frame-relay pvc 201

PVC Statistics for interface Serial0/0 (Frame Relay DTE)

DLCI = 201, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0/0

  input pkts 0             output pkts 2            in bytes 0
  out bytes 160            dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 2         out bcast bytes 160
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
  pvc create time 00:11:03, last time pvc status changed 00:00:04
R2#

互いに疎通可能になった事を確認します。

 [R1]
R1#ping 192.168.12.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/64 ms
R1#
R1#
R1#ping FE80::2
Output Interface: Serial0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::2, timeout is 2 seconds:
Packet sent with a source address of FE80::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/39/100 ms
R1#

IGPとの併用

R1, R2間でRIPによる経路交換を行います。この時、RIPngはlink local addressを用いて経路を交換する事に注意して下さい。つまり、前述のframe-relay map ipv6の設定時に、link local addressも含めて設定する必要があります。

 [R2]
interface Serial0/0
 ipv6 rip RIPV6 enable
!
interface Loopback0
 ipv6 rip RIPV6 enable
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router rip
 version 2
 network 10.0.0.0
 network 192.168.12.0
 no auto-summary

経路情報が交換された事を確認します。

 [R1]
R1#show ip route rip
     10.0.0.0/32 is subnetted, 2 subnets
R       10.2.2.2 [120/1] via 192.168.12.2, 00:00:19, Serial0/0
R1#
R1#
R1#show ipv6 route rip
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R   FEC0:2::/64 [120/2]
     via FE80::2, Serial0/0
R1#

方法 2

PVC確立

frame-relay interface-dlciコマンドを用いてPVCを確立する事もできますが、frame-relay map定義時に102, 201を混ぜる事によって、PVCを確立される事もできます。

 [R1]
interface Serial0/0
 frame-relay map ipv6 FE80::1 201
 frame-relay map ipv6 FE80::2 102 broadcast
 frame-relay map ipv6 FEC0:12::2 102
 frame-relay map ip 192.168.12.1 201
 frame-relay map ip 192.168.12.2 102 broadcast
 no frame-relay inverse-arp
 frame-relay intf-type dce

 [R2]
interface Serial0/0
 frame-relay map ipv6 FE80::1 201 broadcast
 frame-relay map ipv6 FE80::2 102
 frame-relay map ipv6 FEC0:12::1 201
 frame-relay map ip 192.168.12.1 201 broadcast
 frame-relay map ip 192.168.12.2 102
 no frame-relay inverse-arp

疎通確認を行います。

 [R1]
R1#ping 192.168.12.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/37/88 ms
R1#
R1#
R1#ping FE80::2
Output Interface: Serial0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FE80::2, timeout is 2 seconds:
Packet sent with a source address of FE80::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/34/80 ms
R1#
タイトルとURLをコピーしました