CCNA R&S CCNA 5.0 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
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#