基于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 接口 成功!!!