PDA

View Full Version : Cau hinh Frame Relay bai 6.1 cua cuon 2



metallica2507
08-11-2003, 05:18 PM
Tu Router A toi ping vao mang ethernet cua Router B khong duoc
Cau hinh cua Router A nhu sau:
interface Ethernet0
ip address 10.0.0.100 255.255.255.0 secondary
ip address 10.0.0.1 255.255.255.0
no keepalive
!
interface Serial0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.1.1.1 123
frame-relay map ip 192.1.1.3 123
no frame-relay inverse-arp
frame-relay lmi-type cisco
!
interface Serial1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.1.1.0
!
!
ip classless
no ip http server
!
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end.

Cau hinh cua RouterB nhu sau:


interface Ethernet0

ip address 11.0.0.1 255.255.255.0
no keepalive
!
interface Serial0
ip address 192.1.1.3 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.1.1.1 321
frame-relay map ip 192.1.1.3 321
no frame-relay inverse-arp
frame-relay lmi-type cisco
!
interface Serial1
no ip address
shutdown
!
router rip
network 11.0.0.0
network 192.1.1.0
!
!
ip classless
no ip http server
!
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end.

Cho hoi lam cach nao de co the tu RouterA co the ping duoc dia chi mang 11.0.0.1/24.

dangquangminh
08-11-2003, 10:43 PM
Hi

Cấu hình lệnh frame-relay map trên router B của bạn bị thiếu từ khóa broadcast.

Thân mến,

R3
09-11-2003, 01:13 AM
Để tiện theo dõi, yêu cầu và hình vẽ bài lab này như sau:

http://vnpro.org/forum/download.php?id=238

Yêu cầu bài lab:
- Cấu hình frame-relay dùng static map (tắt quá trình inverse-arp) cho mạng trên sơ đồ.
- Cấu hình định tuyến RIP sao cho từ một router có thể ping được tất cả các địa chỉ trong mạng.
---------------------------

Trong lab này đáng quan tâm là lệnh để đặt static map:
frame-relay map protocol protocol-address dlci [broadcast] [ietf | cisco]

trong quá trình làm lab sẽ gặp phải trường hợp như đã mô tả trên, từ router không ping mạng ethernet của router kia, mặc dù cấu hình static map đúng và đã chạy định tuyến RIP. Điều này là do trong môi trường Frame Relay khi dùng static map các bản tin broadcast update sẽ không được gởi cho router kia nếu không có từ khóa broadast trong câu lệnh frame-relay map.

R3
09-11-2003, 01:45 AM
broadcast là một tuỳ chọn trong lệnh frame-relay map, 2 tác dụng của tùy chọn này là: "Forwards broadcasts to this address when multicast is not enabled and and it simplifies the configuration of OSPF for nonbroadcast networks that will use Frame Relay." By default, the broadcast keyword is added to dynamic maps learned via Inverse ARP.
Nghĩa là: chuyển tiếp các bản tin boadcast tới địa chỉ khai báo trong câu lệnh khi không chạy multicast và đơn giản hóa cách cấu hình OSPF trong mạng nonbroadcast như Frame Relay.

Ở đây chỉ quan tâm tới tác dụng đầu tiên. Như vậy cấu hình để thoả yêu cầu đề bài của các router phải như sau:


RouterA
!
int serial 0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 192.1.1.3 200 broadcast
frame-relay lmi-type ans
!
...

RouterB
!
int serial 0
ip address 192.1.1.3 255.255.255.0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 192.1.1.1 201 broadcast
frame-relay lmi-type ansi
!


Chú ý: Mặc định, từ khóa broadcast sẽ được thêm vào trong các dynamic map khi diển ra quá trình Inverse-ARP.

Một điểm lưu ý nữa là:
- Khi cấu hình như trên thì tại một router chưa ping được chính interface serial của mình, phải thực hiện static map địa chỉ ip của mình với DLCI tương ứng.
- Ví dụ: Tại RouterA thêm lệnh như sau:

frame-relay map ip 192.1.1.1 200


Cuối cùng, xin mọi người cho ý kiến: có thể còn giải pháp nào khác nếu không dùng từ khóa broadcast trong câu lệnh frame-relay map?



:D

Neo
09-11-2003, 09:33 AM
Chào,

Một số cách giải quyết khác các bạn cấu hình thử xem chạy được ko:

- Dùng Inverse ARP mà không dùng static mapping :roll:

interface Serial0
ip address x.x.x.x
encapsulation frame−relay
frame−relay interface−dlci xxx

- Dùng static mapping, không dùng từ khoá broadcast mà khai báo trực tiếp neighbor khi cấu hình định tuyến RIP:

interface Serial0
ip address x.x.x.x
encapsulation frame-relay
frame-relay lmi-type cisco
no frame-relay inverse-arp
frame-relay map ip x.x.x.x
router rip
neighbor x.x.x.x


- Cấu hình point-to-point subinterface:
interface Serial0.1 point−to−point
ip address x.x.x.x
frame−relay interface−dlci xxx

Bạn làm thử & post cấu hình lên đây, lời giải thích cho mỗi trường hợp :o

Cheers,

timer
09-11-2003, 10:13 AM
- Dùng Inverse ARP mà không dùng static mapping

interface Serial0
ip address x.x.x.x
encapsulation frame−relay
frame−relay interface−dlci xxx
---------------------------
RouterA#sh run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
enable password cisco
!
!
!
!
!
ip subnet-zero
!
!
!
!
interface Serial0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay
frame-relay interface-dlci 100
frame-relay lmi-type cisco
!
interface Serial1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.1.1.0
!
ip classless
no ip http server
!
!
line con 0
password cisco
login
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end
RouterA#ping 192.1.1.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
RouterA#ping 11.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 ms
outerA#sh frame map
Serial0 (up): ip 192.1.1.3 dlci 100(0x64,0x1840), dynamic,
broadcast ,, status defined, active
Luu y : co su khac nhau khi ta dung dong lenh sau
frame−relay interface−dlci xxx

timer
09-11-2003, 10:27 AM
- Dùng static mapping, không dùng từ khoá broadcast mà khai báo trực tiếp neighbor khi cấu hình định tuyến RIP:

interface Serial0
ip address x.x.x.x
encapsulation frame-relay
frame-relay lmi-type cisco
no frame-relay inverse-arp
frame-relay map ip x.x.x.x
router rip
neighbor x.x.x.x
-------------------------------------
interface Serial0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.1.1.3 100
frame-relay interface-dlci 100
no frame-relay inverse-arp
frame-relay lmi-type cisco
!
interface Serial1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.1.1.0
neighbor 192.1.1.0
!
ip classless
no ip http server
RouterA#ping 192.1.1.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 ms
RouterA#ping 11.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/62/64 ms
RouterA#sh frame map
Serial0 (up): ip 192.1.1.3 dlci 100(0x64,0x1840), static,
CISCO, status defined, active

Luu y : không dùng từ khoá broadcast mà khai báo trực tiếp neighbor

timer
09-11-2003, 11:19 AM
- Cấu hình point-to-point subinterface:
interface Serial0.1 point−to−point
ip address x.x.x.x
frame−relay interface−dlci xxx
--------------------------------------------
RouterA(config)#default int s0
Building configuration...

Interface Serial0 set to default configuration
RouterA(config)#
00:58:04: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state
to down
RouterA(config)#int s0
RouterA(config-if)#encapsulation frame-relay
RouterA(config-if)#no shut
RouterA(config-if)#exit
RouterA(config)#interface Serial0.1 point-to-point
RouterA(config-subif)#ip add 192.1.1.1 255.255.255.0
RouterA(config-subif)#frame-relay interface-dlci 100
----------------------------------------------------------
RouterA#sh run
Building configuration...
Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
enable password cisco
!
!
!
!
!
ip subnet-zero
!
!
!
!
interface Ethernet0
ip address 10.0.0.1 255.255.255.0
!
interface Serial0
no ip address
encapsulation frame-relay
!
interface Serial0.1 point-to-point
ip address 192.1.1.1 255.255.255.0
no arp frame-relay
frame-relay interface-dlci 100
!
interface Serial1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.1.1.0
neighbor 11.0.0.1
neighbor 192.1.1.0
!
ip classless
no ip http server
!
!
!
line con 0
password cisco
login
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end
--------------------------------------------------
RouterA#ping 192.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/118/128 ms
RouterA#ping 192.1.1.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
RouterA#ping 11.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 ms
-----------------------------
RouterA#sh frame map
Serial0.1 (up): point-to-point dlci, dlci 100(0x64,0x1840), broadcast
status defined, active
--------------------------------------
RouterA#sh frame pvc

PVC Statistics for interface Serial0 (Frame Relay DTE)

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

DLCI = 100, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0.1

input pkts 78 output pkts 61 in bytes 7897
out bytes 7845 dropped pkts 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 10 out bcast bytes 2585
pvc create time 00:07:52, last time pvc status changed 00:07:22

Neo
09-11-2003, 11:29 AM
Many thanks,

Cuối cùng, bạn thử làm các bằng IP unnumbered xem có chạy không, kết luận gì cho trường hợp này :roll:

timer
09-11-2003, 11:34 AM
Tương tự như vậy ta dùng ip unnumbered :
interface Serial0
no ip address
encapsulation frame-relay
!
interface Serial0.1 point-to-point
ip unnumbered Ethernet0
no arp frame-relay
frame-relay interface-dlci 100
!
interface Serial1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.1.1.0
neighbor 11.0.0.1
neighbor 192.1.1.0
-------------------------------------
RouterA#ping 11.0.0.1 //IP của Remote Router

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
RouterA#ping 10.0.0.1 //Ta có thể Ping thấy chính mình

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

Kết luận : ip unnumbered chỉ dùng cho cấu hình point-to-point subinterface
Khi dùng ip unnumbered : Ta có thể Ping thấy chính mình

RouterA#sh ip route
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.0.0.0 is directly connected, Ethernet0
R 11.0.0.0/8 [120/1] via 11.0.0.1, 00:00:22, Serial0.1
Một lỗi đơn giản gặp phải : Router A không đặt no keepalive trên E0, Router B ngồi chơi hoài :lol: !

Neo
09-11-2003, 12:29 PM
Chúc mừng các bạn đã hoàn thành loạt bài lab về Frame Relay một cách hoàn hảo :D

Các bạn cứ post bài lên hỏi tiếp nhé, VnPro luôn lắng nghe, luôn thấu hiểu và giúp đỡ các bạn giải quyết vấn đề khi gặp sự cố.

Chúc các bạn mau chóng trở thành một true professional :)

Thân mến,

pajero103
27-12-2005, 08:14 PM
moi nguoi co the huong dan ky hon ve frame-relay duoc ko?

hunterinfo
02-08-2006, 12:27 AM
Cho mình hỏi 2 lệnh :
1.inverse-arp
2.no keepakive

2 lệnh này dùng để lam gì và trong trường hợp nào vậy ?

dangquangminh
02-08-2006, 01:16 AM
Các thông điệp LMI giúp quản lý trạng thái đường truyền giữa router thuê bao và tổng đài FR. Một router thuê bao dịch vụ FR có thể gửi các thông điệp truy vấn về trạng thái đến tổng đài và tổng đài sẽ trả lời bằng thông điệp trạng thái LMI Status để thông báo cho router về giá trị DLCI của mạch ảo VC cũng như là trạng thái của từng VC.

Mặc định, thông điệp LMI gửi mỗi 10 giây. Cứ mỗi thông điệp thứ sáu sẽ mang đầy đủ thông tin về trạng thái, trong đó bao gồm thông tin đầy đủ hơn về từng VC.

Các thông điệp truy vấn LMI Status enquiry (từ router) và Status (từ tổng đài) cũng hoạt động như cơ chế keepalive. Một router sẽ xem các cổng của nó là bị hỏng nếu router không thể nhận thông điệp từ tổng đài trong ba chu kỳ (mỗi chu kỳ là 10 giây). Kết quả là, cơ chế LMI trong Frame relay thực sự được cho phép hoặc không được cho phép bằng cách dùng lệnh keepalive/no keepalive trên cổng Frame Relay của router.

vậy, chức năng của lệnh no keepalive là giúp bật hay tắt LMI trên router.

hunterinfo
02-08-2006, 01:56 AM
Anh có thể nói rõ hơn được không ! có nghĩ là nếu không có lệnh no keepalive thì giữa router và tổng đài sẽ không có sự trao đổi LMI lẫn nhau ?Còn nếu có thì sự trao đỏi sẽ diễn ra theo như chu kỳ anh nói .Còn lệnh no inverse-arp dùng để làm gì ?

dangquangminh
02-08-2006, 10:34 PM
Hi em

lệnh no frame-relay inverse-arp dùng để tắt cơ chế ánh xạ động địa chỉ L2-L3 của Frame relay. Cơ chế này là FrameRelay InverseARP, chịu trách nhiệm tìm địa chỉ của router đầu xa ràng buộc với DLCI cục bộ.