You are on page 1of 18

Câu lệnh cấu hình Frame relay

– Cấu hình map động


+ Bước 1: cấu hình int se như bình thường, có đặt ip
R1(config)#int se0/0/0
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no shut
+ Bước 2: Cấu hình đóng gói Frame-relay trên int se
R1(config-if)#encapsulation frame-relay cấu hình đóng gói frame-relay
R1(config-if)#frame-relay interface-dlci 102 gán chỉ số DLCI trong hợp đồng thuê kênh vào int vật lý.
–Câu lệnh cấu hình int serial đóng gói Frame relay và map tĩnh IP nexthop với DLCI
R1(config)#int se0/0/0
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#encapsulation frame-relay cấu hình đóng gói frame-relay
R1(config-if)#no frame-relay inverse-arp bỏ map động bằng inverse-arp mặc định trên int được cấu hình
Frame-relay
R1(config-if)#frame-relay map ip 10.1.1.2 102 broadcast cisco Cấu hình map tĩnh ip nexthop là 10.1.1.2 với
chỉ số DLCI local là 102

Cấu hình subint


HubCity
HubCity(config)#int serial 0
HubCity(config-if)#no shut
HubCity(config-if)#encapsulation frame-relay
interface Serial0.1 multipoint
ip address 172.16.3.3 255.255.255.0
frame-relay interface-dlci 301
frame-relay interface-dlci 302
Spokane
interface Serial0.1 point-to-point
ip address 172.16.3.1 255.255.255.0
frame-relay interface-dlci 103
Spokomo
interface Serial0.1 point-to-point
ip address 172.16.3.2 255.255.255.0
frame-relay interface-dlci 203

Cấu hình giả môi trường broadcast cho OSPF


RouterA(config-if)#ip ospf network-type broadcast
NBMA – non-broadcast multiaccess không hỗ trợ broadcast. Vì vậy OSPF không gửi ra bản tin LSA theo kiểu
multicast. Vì vậy ở tần 3 cần có câu lệnh để giả lập môi trường Frame relay thành broadcast mới truyền được
các bản tin multicast và broadcast.
VD Bài lab
ccna 5.0 Frame relay lab

Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname R1
R1(config)#int f0/0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#int s0/0/0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R1(config-if)#ip add
R1(config-if)#ip address 10.10.10.1 255.255.255.0
R1(config-if)#en
R1(config-if)#encapsulation f
R1(config-if)#encapsulation frame-relay
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R1(config-if)#rf
R1(config-if)#fr
R1(config-if)#frame-relay in
R1(config-if)#frame-relay in
R1(config-if)#frame-relay inn
R1(config-if)#frame-relay int
R1(config-if)#frame-relay interface-dlci 102
R1(config-if)#frame-relay interface-dlci 103
R1(config-if)#exit
R1(config)#router e
R1(config)#router eigrp 100
R1(config-router)#no
R1(config-router)#no au
R1(config-router)#no auto-summary
R1(config-router)#net
R1(config-router)#network 192.168.1.0 0.0.0.255
R1(config-router)#network 10.10.10.0 0.0.0.255
R1(config-router)#do wr
Building configuration…
[OK]
R1(config-router)#

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R2
R2(config)#int f0/0
R2(config-if)#no shut
R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R2(config-if)#ip add
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#int s0/0/0
R2(config-if)#no shut
R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R2(config-if)#ip add 10.10.10.2 255.255.255.0
R2(config-if)#en
R2(config-if)#encapsulation r
R2(config-if)#encapsulation f
R2(config-if)#encapsulation frame-relay
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R2(config-if)#fr
R2(config-if)#frame-relay int
R2(config-if)#frame-relay interface-dlci 201
R2(config-if)#frame-relay interface-dlci 203
R2(config-if)#exit
R2(config)#router ei
R2(config)#router eigrp 100
R2(config-router)#no au
R2(config-router)#no auto-summary
R2(config-router)#net
R2(config-router)#network 10.10.10.0 0.0.0.255
R2(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.10.10.1 (Serial0/0/0) is up: new adjacency
R2(config-router)#net
R2(config-router)#network 192.168.2.0 0.0.0 255
^
% Invalid input detected at ‘^’ marker.
R2(config-router)#network 192.168.2.0 0.0.0.255
R2(config-router)#do wr
Building configuration…
[OK]
R2(config-router)#

Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R3
R3(config)#int f0/0
R3(config-if)#no shut
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#ip add
R3(config-if)#ip address 192.168.3.3 255.255.255.0
R3(config-if)#exit
R3(config)#int s0/0/0
R3(config-if)#no shut
R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R3(config-if)#ip add
R3(config-if)#ip address 10.10.10.3 255.255.255.0
R3(config-if)#en
R3(config-if)#encapsulation fr
R3(config-if)#encapsulation frame-relay
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R3(config-if)#fr
R3(config-if)#frame-relay in
R3(config-if)#frame-relay int
R3(config-if)#frame-relay interface-dlci 301
R3(config-if)#frame-relay interface-dlci 302
R3(config-if)#exit
R3(config)#router ei
R3(config)#router eigrp 100
R3(config-router)#no au
R3(config-router)#no auto-summary
R3(config-router)#net
R3(config-router)#network 192.168.3.0 0.0.0.255
R3(config-router)#net
R3(config-router)#network 10.10.10.0 0.0.0.255
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.10.10.2 (Serial0/0/0) is up: new adjacency
%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 10.10.10.1 (Serial0/0/0) is up: new adjacency
R3(config-router)#do wr
Building configuration…
[OK]
R3(config-router)#
R3(config-router)#

R2#show ip rout
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0/0
D 192.168.1.0/24 [90/2172416] via 10.10.10.1, 00:06:42, Serial0/0/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
D 192.168.3.0/24 [90/2172416] via 10.10.10.3, 00:04:01, Serial0/0/0
R2#
http://thietbibk.com/category/chung-chi-it/page/2/
Lab 4.2.2.6 Cấu hình Frame Relay Point-
to-Point.

LAB 3-4: Frame Relay – Point-to-Point (Subinterface)

You are the network administrator at Ranet Headquater, and have to configure the router “Ranet-HQ”
to let Host1 connect with Host2, Host3 and Host4 as below:
(Use console to config this router.)

1. Enable and set IP address on LAN interface to be the first IP of this subnet.

2. Enable serial interface, and create subinterface with Frame-Relay setting as below:

- s0/0/0.2 for connect with Ranet-BR2, via DLCI 902


- s0/0/0.3 for connect with Ranet-BR3, via DLCI 903
- s0/0/0.4 for connect with Ranet-BR4, via DLCI 904

All subinterfaces use CISCO standard for both encapsulation and LMI, and set IP address to use the
first IP in each subnet.

If everything is correct, Host1 should be able to connect


with Host2, Host3, and Host4.

Solution:
Ranet-HQ config:
(copy & paste these commands to Ranet-HQ router)

en
conf t
int fa0/0
no sh
ip add 172.20.8.1 255.255.255.240
int s0/0/0
no sh
encapsulation frame-relay
int s0/0/0.2 point-to-point
frame-relay interface-dlci 902
ip add 10.0.2.1 255.255.255.252
int s0/0/0.3 point-to-point
frame-relay interface-dlci 903
ip add 10.0.3.1 255.255.255.252
int s0/0/0.4 point-to-point
frame-relay interface-dlci 904
ip add 10.0.4.1 255.255.255.252
end

Ranet-HQ#sh frame-relay map


Serial0/0/0.2 (up): point-to-point dlci, dlci 902, broadcast, status defined, active
Serial0/0/0.3 (up): point-to-point dlci, dlci 903, broadcast, status defined, active
Serial0/0/0.4 (up): point-to-point dlci, dlci 904, broadcast, status defined, active

Ranet-HQ#ping 172.20.8.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.30, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/9/12 ms
Ranet-HQ#ping 172.20.8.40
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.40, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 10/12/16 ms
Ranet-HQ#ping 172.20.8.60
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.60, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 11/12/13 ms
Ranet-HQ#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Ranet-HQ#

Everthing is ok!! Host1 should be able to connect with Host2, Host3, and Host4.

---------------------------------------- End -------------------------------------

CCNA LAB 3-4: Frame Relay - Point-to-Point


Ranet-HQ router config :
Ranet-HQ>en
Ranet-HQ#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Ranet-HQ(config)#int fa0/0
Ranet-HQ(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state
to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
Ranet-HQ(config-if)#ip add 172.20.8.1 255.255.255.240
Ranet-HQ(config-if)#int s0/0/0
Ranet-HQ(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Ranet-HQ(config-if)#encapsulation frame-relay
Ranet-HQ(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/0, changed state to up
Ranet-HQ(config-if)#int s0/0/0.2 point-to-point
%LINK-5-CHANGED: Interface Serial0/0/0.2, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/0.2, changed state to up
Ranet-HQ(config-subif)#frame-relay interface-dlci 902
Ranet-HQ(config-subif)#ip add 10.0.2.1 255.255.255.252
Ranet-HQ(config-if)#int s0/0/0.3 point-to-point
Ranet-HQ(config-subif)#
%LINK-5-CHANGED: Interface Serial0/0/0.3, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/0.3, changed state to up
Ranet-HQ(config-subif)#frame-relay interface-dlci 903
Ranet-HQ(config-subif)#ip add 10.0.3.1 255.255.255.252
Ranet-HQ(config-subif)#int s0/0/0.4 point-to-point
%LINK-5-CHANGED: Interface Serial0/0/0.4, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0/0/0.4, changed state to up
Ranet-HQ(config-subif)#frame-relay interface-dlci 904
Ranet-HQ(config-subif)#ip add 10.0.4.1 255.255.255.252
Ranet-HQ(config-subif)#
Ranet-HQ#
%SYS-5-CONFIG_I: Configured from console by console

Ranet-HQ#sh frame-relay map


Serial0/0/0.2 (up): point-to-point dlci, dlci 902, broadcast,
status defined, active
Serial0/0/0.3 (up): point-to-point dlci, dlci 903, broadcast,
status defined, active
Serial0/0/0.4 (up): point-to-point dlci, dlci 904, broadcast,
status defined, active

Ranet-HQ#ping 172.20.8.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.30, timeout is 2
seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max =
4/9/12 ms
Ranet-HQ#ping 172.20.8.40
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.40, timeout is 2
seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max =
10/12/16 ms
Ranet-HQ#ping 172.20.8.60
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.8.60, timeout is 2
seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max =
11/12/13 ms

Ranet-HQ#copy run start


Destination filename [startup-config]?
Building configuration...
[OK]
Ranet-HQ#

Host1 :
Command Prompt
Packet Tracer PC Command Line 1.0
PC>ping 172.20.8.30
Pinging 172.20.8.30 with 32 bytes of data:
Reply from 172.20.8.30: bytes=32 time=15ms TTL=126
Reply from 172.20.8.30: bytes=32 time=8ms TTL=126
Reply from 172.20.8.30: bytes=32 time=18ms TTL=126
Reply from 172.20.8.30: bytes=32 time=14ms TTL=126
Ping statistics for 172.20.8.30:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 8ms, Maximum = 18ms, Average = 13ms
PC>ping 172.20.8.40
Pinging 172.20.8.40 with 32 bytes of data:
Reply from 172.20.8.40: bytes=32 time=16ms TTL=126
Reply from 172.20.8.40: bytes=32 time=15ms TTL=126
Reply from 172.20.8.40: bytes=32 time=16ms TTL=126
Reply from 172.20.8.40: bytes=32 time=14ms TTL=126
Ping statistics for 172.20.8.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 14ms, Maximum = 16ms, Average = 15ms
PC>ping 172.20.8.60
Pinging 172.20.8.60 with 32 bytes of data:
Reply from 172.20.8.60: bytes=32 time=13ms TTL=126 Reply
from 172.20.8.60: bytes=32 time=17ms TTL=126
Reply from 172.20.8.60: bytes=32 time=17ms TTL=126
Reply from 172.20.8.60: bytes=32 time=10ms TTL=126

Ping statistics for 172.20.8.60:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 17ms, Average = 14ms
PC>
Cấu hình Frame relay Cơ bản

2. Yêu cầu:

 Thiết lập sơ đồ
 Cấu hình định tuyến EIGRP trên các Router
 Encapsulation Frame Relay trên các interface Serial
 Cấu hình Router làm Frame Relay Switch
 Kiểm tra cấu hình
II. Triển khai
1. Cấu hình IP và định tuyến trên các Router

Cổng Serial ở trạng thái Shutdown cho đến khi Frame Relay Switch

được cấu hình
[TABLE="class: grid, width: 500"]

R1(config)#interface f0/1
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown

R1(config)#interface s1/0
R1(config-if)#ip address 10.1.1.1 255.255.255.252

R1(config)#router eigrp 10
R1(config-router)#network 192.168.10.1 0.0.0.0
R1(config-router)#network 10.1.1.1 0.0.0.0
R1(config-router)#no auto-summary
R1(config-router)#passive-interface f0/1

R2(config)#interface s1/0
R2(config-if)#ip address 10.1.1.2 255.255.255.252

R2(config)#interface loopback 0
R2(config-if)#ip address 209.165.200.225 255.255.255.224

R2(config)#router eigrp 10
R2(config-router)#network 10.1.1.2 0.0.0.0
R2(config-router)#network 209.165.200.255 0.0.0.0
R2(config-router)#no auto-summary
[/TABLE]

2. Cấu hình Frame-Relay Switch


- Cấu hình Router làm Frame Relay Switch và tạo 1 PVC giữa R1 và
R2

Giả lập Router thành Frame Relay Switch để cho phép chuyển tiếp

Frame dựa trên DLCI
[TABLE="class: outer_border, width: 500"]

FR_Switch(config)#frame-relay switching
[/TABLE]

- Cấu hình Frame Relay trên Interface Serial S1/0

 Thay đổi Encapsulation interface Serial mặc định HDLC thành


Frame Relay
[TABLE="class: outer_border, width: 500"]

FR_Switch(config)#interface serial 1/0


FR_Switch(config-if)#clock 64000
FR_Switch(config-if)#encapsulation frame-relay
[/TABLE]

 Thay đổi loại Interface của Frame Relay Switch thành DCE để cho
phép Router gửi LMI Keepalive(Ta không thể thiết lập Frame Relay
router giữa 2 interface DTE)
[TABLE="class: outer_border, width: 500"]

FR_Switch(config-if)#frame-relay intf-type dce


[/TABLE]

 Thiết lập PVC: Cấu hình chuyển lưu lượng từ interface S1/0(DCLI
102) đến s1/1(DLCI 201)
[TABLE="class: outer_border, width: 500"]

FR_Switch(config-if)#frame-relay route 102 interface serial 1/1 201


FR_Switch(config-if)#no shutdown
[/TABLE]

- Cấu hình tương tự trên interface s1/1


[TABLE="class: outer_border, width: 500"]

FR_Switch(config)#frame-relay switching
FR_Switch(config)#interface serial 1/0
FR_Switch(config-if)#clock 64000
FR_Switch(config-if)#encapsulation frame-relay
FR_Switch(config-if)#frame-relay intf-type dce
FR_Switch(config-if)#frame-relay route 201 interface s1/0 102
FR_Switch(config-if)#no shutdown
[/TABLE]

- Kiểm tra các PVC


 Kiểm tra các Router mà Frame Relay Switch đã thiết lập
[TABLE="class: outer_border, width: 500"]

FR_Switch#sh frame-relay route


[/TABLE]

 Kiểm tra trạng thái của PVC. Trạng thái các PVC là Inactive là do
các đầu cuối R1 và R2 cấu hình chưa đúng
[TABLE="class: outer_border, width: 500"]

FR_Switch#sh frame-relay pvc


[/TABLE]
3. Cấu hình Frame relay trên Router

Trên R1: Tắt tính năng Inverse ARP giúp Router tự xây dựng fram

relay map vì không phải lúc nào Inverse ARP cũng đáng tin cậy. Ta
sẽ sử dụng map tĩnh giữa IP của R2(10.1.1.2) và local DLCI của
R1(102)
[TABLE="class: outer_border, width: 500"]

R1(config)#interface s1/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#no frame-relay inverse-arp
R1(config-if)#frame-relay map ip 10.1.1.2 102 broadcast
R1(config-if)#no shutdown
[/TABLE]
Từ khóa "Broadcast" giúp router có thể gửi lưu lượng Multicast hay
Broadcast qua PVC.

Trên R2: Cấu hình tương tự.



[TABLE="class: outer_border, width: 500"]

R2(config)#interface s1/0
R2(config-if)#encapsulation frame-relay
R2(config-if)#no frame-relay inverse-arp
R2(config-if)#frame-relay map ip 10.1.1.1 201 broadcast
[/TABLE]

 Ngay khi cấu hình xong thì R1 sẽ trở thành Neighbor của R2
III. Kiểm tra cấu hình
1. Ping giữa R1 và R2

2. Xem thông tin PVC

 Dùng lệnh sau để xem


[TABLE="class: outer_border, width: 500"]

Router#show frame-relay pvc


[/TABLE]

 Trên R1

 Trên R2
 Trên Frame Relay Switch

3. Kiểm tra Frame Relay Mapping

Dùng lệnh sau



[TABLE="class: outer_border, width: 500"]

Router#show frame-relay map


[/TABLE]

 Trên R1
 Trên R2

 Trên Frame Relay Switch: Frame relay Switch hoạt động như 1
thiết bị ở lớp 2 vì vậy chúng không cần bảng mapping
4. Debug Frame Relay LMI

Dùng lệnh sau để Debug và dừng debug



[TABLE="class: outer_border, width: 500"]

Router#debug frame-relay lmi


Router#undebug all
[/TABLE]

 Trên R1

You might also like