rip分解实验

物理拓扑图

需求:

ip地址分配情况;r1-r2-r3=123.1.1.0/24,r2-r3-r4=10.1.234.0/24,r4-r5=45.1.1.0/24

如:r2-f0/0=10.1.234.2/24,r5-s1/3=45.1.1.5/24

其他网段ip地址配置同理,每台路由器各有一个lo0,

地址分别是:x.x.x.x/24(x是你的路由器号),在r1上添加4个换回接口,模拟r1连接内网4个部门的网关

lo1:172.16.4.1/24

lo2:172.16.5.1/24

lo3:172.16.6.1/24

lo4:172.15.7.1/24

use the following requirements to configure r1 and r2 and r3 for frame relay and r4(r4为帧中继交换机)

as the frame relay switch.(r4_s1/0.s1/1,s1/2,s1/3为dce端)

use ansi lmi on frame relay switch and auto-sensing on r1 and r2

do not use inver se address resolutions protocol and after finishing your lab you haven't got and dynamic maps and maps of 0.0.0.0(不能产生逆向arp解析,不能产生动态map)

use rfc 1490/rf2427 encapsulation(使用公有协议封装帧中继,思科默认封装类型cisco)

use the data-link connection identifier(dlci)assignments from the topl(单纯使用dlci)

r1使用frame-relay多点子接口,而r2/r3使用frame-relay点到点子接口建立连接,要求完成此配置后能ping通各自的frame-relay接口ip地址,(r2/r3 do not use any static frame relay maps)

配置:r1:int lo0

ip add 1.1.1.1 255.255.255.0

int lo4

ip add 172.16.4.1 255.255.255.0

int lo5

ip add 172.16.5.1 255.255.255.0

int lo6

ip add 172.16.6.1 255.255.255.0

int lo7

ip add 172.16.7.1 255.255.255.0

r2:

int lo0

ip add 2.2.2.2 255.255.255.0

int f0/0

ip add 10.1.234.2 255.255.255.0

no sh

r3:

int lo0

ip add 3.3.3.3 255.255.255.0

int f0/0

ip add 10.1.234.3 255.255.255.0

no sh

r4:

int lo0

ip add 4.4.4.4 255.255.255.0

int f0/0

ip add 10.1.234.4 255.255.255.0

no sh

int s1/3

ip add 45.1.1.4 255.255.255.0

no sh

clock rate 64000

r5:

int lo0

ip add 5.5.5.5 255.255.255.0

int s1/3

ip add 45.1.1.5 255.255.255.0

no sh

clock rate 64000

r4:

frame-relay switching(启用帧中继交换机功能)

int s1/0

encapslation frame-relay ietf(封装为帧中继接口,协议类型公有ietf,默认cisco)

clock rate 64000

frame-relay lmi-type ansi(本地管理接口,用来建立维护帧中继链路,像ospf的hello包作用,配置帧中继的本地管理接口类型为ansi,类型有cisco,ansi,q933a)

frame-relay intf-type dce(指定接口为dce管理端)

frame-relay route 102(本地dlci号) int s1/1 201(指定号码102到r2连接的帧中继接口s1/1接口对方的dlci号201)

frame-relay route 103 int s1/2 301(对方连接帧中继接口和dlci号)

no sh

int s1/1

en frame-relay ietf

frame-relay lmi-type ansi

frame-relay intf-type dce

frame-relay route 201 int s1/0 102

clock rate 64000

no sh

int s1/2

en frame-relay ietf

frame-relay lmi-type ansi

frame-relay intf-type dce

frame-relay route 301 int s1/0 103

clock rate 64000

no sh

r1:

int s1/0

encapsulation frame-relay ietf(使用ietf封装)

no arp frame-relay (关掉正向arp)no frame-relay inverse-arp(关掉逆向arp)

no sh

int s1/0.123 mutipoint(多点子接口)

ip add 123.1.1.1 255.255.255.0

frame-relay map ip 123.1.1.2(对方的ip) 102(本地的dlci号)broadcast ietf(使用静态指map,开启广播功能)

frame-relay map ip 123.1.1.3 103 broadcast ietf(使用ietf封装)

frame-relay map ip 123.1.1.1 103/102 broadcst ietf(可以ping通自己的接口,使用103或102的dlci号都行)

r2:

int s1/1

en frame-relay ietf

no arp frame-relay

no frame-relay inverse-arp

no sh

int s1/1.123  point-to-point(使用点到点子接口)

ip add 123.1.1.2 255.255.255.0

frame-relay interface-dlci 201 ietf(不用手工指定map使用)

r3:

int s1/2

en frame-relay

no arp frame-relay

no frame-relay inverse-arp

no sh

int s1/2.123 point-to-point

ip add 123.1.1.3 255.255.255.0

frame-relay interface-dlci 301 ietf