基于OSPF的帧中继实验

在这里插入图片描述

先做FR配置:

Current configuration : 1746 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R7

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

ip cef

!

!

!

!

no ip domain lookup

!

!

!

frame-relay switching

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

no ip address

encapsulation frame-relay

clock rate 2000000

frame-relay intf-type dce

frame-relay route 102 interface Serial0/1 201

frame-relay route 103 interface Serial0/2 301

frame-relay route 104 interface Serial3/0 401

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

no ip address

encapsulation frame-relay

clock rate 2000000

frame-relay intf-type dce

frame-relay route 201 interface Serial0/0 102

!

interface Serial0/2

no ip address

encapsulation frame-relay

clock rate 2000000

frame-relay intf-type dce

frame-relay route 301 interface Serial0/0 103

!

interface FastEthernet1/0

no ip address

shutdown

duplex auto

speed auto

!

interface FastEthernet2/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial3/0

no ip address

encapsulation frame-relay

serial restart-delay 0

frame-relay intf-type dce

frame-relay route 401 interface Serial0/0 104
!

上面R5与R6 配置相同。
R5:

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R5

!

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

ip cef

!

no ip domain lookup

!

interface Loopback0

ip address 7.7.5.1 255.255.255.0

!

interface FastEthernet0/0

ip address 7.7.156.5 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 7.7.56.5 255.255.255.0

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 7.7.5.0 0.0.0.255 area 1256

network 7.7.56.0 0.0.0.255 area 1256

network 7.7.156.0 0.0.0.255 area 1256

!

no ip http server

no ip http secure-server

!

control-plane

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!
end

R1 作为FR的HUB的配置:

Current configuration : 1316 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R1

!

boot-start-marker

boot-end-marker

!

no aaa new-model

memory-size iomem 5

ip cef

!

no ip domain lookup

!

interface Loopback0

ip address 7.7.1.1 255.255.255.0

!

interface FastEthernet0/0

ip address 7.7.156.1 255.255.255.0

duplex auto

speed auto

!

interface Serial0/0

ip address 7.7.123.1 255.255.255.0

encapsulation frame-relay

ip ospf network broadcast

clock rate 2000000

frame-relay map ip 7.7.123.2 102 broadcast

frame-relay map ip 7.7.123.3 103 broadcast

frame-relay map ip 7.7.123.4 104 broadcast

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

clock rate 2000000

!

interface Serial0/2

no ip address

shutdown

clock rate 2000000

!

interface FastEthernet1/0

no ip address

shutdown

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 7.7.1.0 0.0.0.255 area 0

network 7.7.123.0 0.0.0.255 area 0

network 7.7.156.0 0.0.0.255 area 1256

!

no ip http server

no ip http secure-server

!

control-plane

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!
end

R2上配置:

Current configuration : 1266 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

memory-size iomem 5

ip cef

!

!

!

!

no ip domain lookup

!

interface Loopback0

ip address 7.7.2.1 255.255.255.0

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

ip address 7.7.123.2 255.255.255.0

encapsulation frame-relay

ip ospf network broadcast

clock rate 2000000

frame-relay map ip 7.7.123.1 201 broadcast

frame-relay map ip 7.7.123.3 201 broadcast

frame-relay map ip 7.7.123.4 201 broadcast

!

interface FastEthernet0/1

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

clock rate 2000000

!

interface Serial0/2

no ip address

shutdown

clock rate 2000000

!

interface FastEthernet1/0

no ip address

shutdown

duplex auto

speed auto

!

router ospf 1

log-adjacency-changes

network 7.7.2.0 0.0.0.255 area 0

network 7.7.123.0 0.0.0.255 area 0

!

no ip http server

no ip http secure-server

!

control-plane

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!

end

R4路由表:

图片

R3 ping R6 F0/1 接口 成功!!!

图片

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值