
一、R1的具体配置如下:
R1#sh run
Building configuration...
Current configuration : 1355 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
ip address 199.99.1.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.1.1 102 broadcast
frame-relay map ip 199.99.1.2 102 broadcast
no frame-relay inverse-arp
frame-relay lmi-type ansi
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.0 0.0.0.255 area 0
network 199.99.1.0 0.0.0.255 area 0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
二、R2的具体配置如下
R2#sh running-config
Building configuration...
Current configuration : 1581 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
ip address 199.99.1.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.1.1 201 broadcast
frame-relay map ip 199.99.1.2 201 broadcast
no frame-relay inverse-arp
frame-relay lmi-type ansi
!
interface Serial1/1
ip address 199.99.2.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.2.1 405 broadcast
frame-relay map ip 199.99.2.2 405 broadcast
no frame-relay inverse-arp
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.0 0.0.0.255 area 0
network 199.99.1.0 0.0.0.255 area 0
network 199.99.2.0 0.0.0.255 area 1
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
R1#sh run
Building configuration...
Current configuration : 1355 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
ip address 199.99.1.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.1.1 102 broadcast
frame-relay map ip 199.99.1.2 102 broadcast
no frame-relay inverse-arp
frame-relay lmi-type ansi
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.0 0.0.0.255 area 0
network 199.99.1.0 0.0.0.255 area 0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
二、R2的具体配置如下
R2#sh running-config
Building configuration...
Current configuration : 1581 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
ip address 199.99.1.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.1.1 201 broadcast
frame-relay map ip 199.99.1.2 201 broadcast
no frame-relay inverse-arp
frame-relay lmi-type ansi
!
interface Serial1/1
ip address 199.99.2.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.2.1 405 broadcast
frame-relay map ip 199.99.2.2 405 broadcast
no frame-relay inverse-arp
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.0 0.0.0.255 area 0
network 199.99.1.0 0.0.0.255 area 0
network 199.99.2.0 0.0.0.255 area 1
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
R3的具体配置如下:
R3#sh run
Building configuration...
Current configuration : 1704 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
!
interface Loopback100
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
frame-relay lmi-type ansi
!
interface Serial1/1
ip address 199.99.2.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.2.1 504 broadcast
frame-relay map ip 199.99.2.2 504 broadcast
no frame-relay inverse-arp
!
interface Serial1/2
ip address 199.99.3.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 199.99.3.1 607 broadcast
frame-relay map ip 199.99.3.2 607 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
redistribute rip
network 3.3.3.0 0.0.0.255 area 1
network 199.99.2.0 0.0.0.255 area 1
!
router rip
redistribute ospf 100 metric 10
network 172.16.0.0
network 199.99.3.0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
R4的具体配置如下:
R4#sh running-config
Building configuration...
Current configuration : 1230 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
no ip address
shutdown
no fair-queue
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
ip address 199.99.3.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 199.99.3.1 706 broadcast
frame-relay map ip 199.99.3.2 706 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router rip
network 4.0.0.0
network 199.99.3.0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
R3#sh run
Building configuration...
Current configuration : 1704 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
!
interface Loopback100
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
frame-relay lmi-type ansi
!
interface Serial1/1
ip address 199.99.2.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-point
serial restart-delay 0
frame-relay map ip 199.99.2.1 504 broadcast
frame-relay map ip 199.99.2.2 504 broadcast
no frame-relay inverse-arp
!
interface Serial1/2
ip address 199.99.3.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 199.99.3.1 607 broadcast
frame-relay map ip 199.99.3.2 607 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
redistribute rip
network 3.3.3.0 0.0.0.255 area 1
network 199.99.2.0 0.0.0.255 area 1
!
router rip
redistribute ospf 100 metric 10
network 172.16.0.0
network 199.99.3.0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
R4的具体配置如下:
R4#sh running-config
Building configuration...
Current configuration : 1230 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
enable password cisco
!
ip subnet-zero
ip cef
!
!
no ip domain-lookup
!
call rsvp-sync
!
!
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
duplex half
!
interface Serial1/0
no ip address
shutdown
no fair-queue
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
ip address 199.99.3.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 199.99.3.1 706 broadcast
frame-relay map ip 199.99.3.2 706 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router rip
network 4.0.0.0
network 199.99.3.0
!
ip classless
no ip http server
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
alias exec a sh ip int brief
alias exec b sh ip route
alias exec c sh ip route rip
alias exec d sh run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
exec-timeout 0 0
logging synchronous
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
大家好,我是hority~今天给大家做一个frame-relay环境下,OSPF多域和在OSPF中重发布RIP的路由信息的实验视频
下面大家看我的操作~!
首先来看下top
好了,刚才已经配置好了 frame-relay
下面我们来配置路由协议OSPF
看我的操作
在R4里面看不到RIP的宣告,是因为,R3上面没有宣告与R4非直连的接口网络
我们来启动另外一个LOOP口,大家看我操作
看到效果了吧,呵呵。现在我们来做下重发布
1类型,在R1和R2的路由表里面显示的就是O E1路由条目
2类型,在R1和R2的路由表里面显示的就是O E2路由条目
我们来实现一下,大家看看
在这里要申明一下,R2叫ABR,R3叫ASBR‘
好了教程到这里,谢谢大家的观看~!
我们的交流群号;8313199
下面大家看我的操作~!
首先来看下top
好了,刚才已经配置好了 frame-relay
下面我们来配置路由协议OSPF
看我的操作
在R4里面看不到RIP的宣告,是因为,R3上面没有宣告与R4非直连的接口网络
我们来启动另外一个LOOP口,大家看我操作
看到效果了吧,呵呵。现在我们来做下重发布
1类型,在R1和R2的路由表里面显示的就是O E1路由条目
2类型,在R1和R2的路由表里面显示的就是O E2路由条目
我们来实现一下,大家看看
在这里要申明一下,R2叫ABR,R3叫ASBR‘
好了教程到这里,谢谢大家的观看~!
我们的交流群号;8313199
转载于:https://blog.51cto.com/ciscofans/74429