Professional Documents
Culture Documents
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.
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:
All subinterfaces use CISCO standard for both encapsulation and LMI, and set IP address to use the
first IP in each subnet.
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#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.
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
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
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]
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]
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"]
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)#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 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"]
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.
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
Trên R1
Trên R2
Trên Frame Relay Switch
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
Trên R1