OSPF Virtual-Link Configuration

简介:

OSPF Virtual-Link Configuration

 
 
Virtual-link in area 1
 

R1

R1#show running-config
Building configuration...
 
Current configuration : 850 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 Serial0/0
 ip address 12.1.1.1 255.255.255.0
 serial restart-delay 0
!        
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 network 12.1.1.1 0.0.0.0 area 0
!
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
 login
!
!        
end
 
R1#
 
 

R2

R2#show running-config
Building configuration...
 
Current configuration : 940 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 Serial0/0
 ip address 12.1.1.2 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial0/1
 ip address 23.1.1.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 area 1 virtual-link 3.3.3.3
 network 12.1.1.2 0.0.0.0 area 0
 network 23.1.1.1 0.0.0.0 area 1
!
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
 login   
!
!
end
 
R2#
 

R3

R3#show running-config
Building configuration...
 
Current configuration : 940 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!        
interface Serial0/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/1
 ip address 23.1.1.2 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial0/2
 ip address 34.1.1.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 area 1 virtual-link 2.2.2.2
 network 23.1.1.2 0.0.0.0 area 1
 network 34.1.1.1 0.0.0.0 area 2
!
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
 login   
!
!
end
 
R3#
 
 

R4

R4#show running-config
Building configuration...
 
Current configuration : 868 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
interface Serial0/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 ip address 34.1.1.2 255.255.255.0
 serial restart-delay 0
 clock rate 64000
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 34.1.1.2 0.0.0.0 area 2
!
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
 login
!        
!
end
 
R4#



本文转自 Jhuster 51CTO博客,原文链接:http://blog.51cto.com/xwnet/166737,如需转载请自行联系原作者
相关文章
|
3天前
|
存储 网络协议 算法
OSPF中的Link-State Database (LSDB): 概述与深入解析
OSPF中的Link-State Database (LSDB): 概述与深入解析
24 1
|
3月前
|
运维 监控 数据中心
smart-link和monitor-link的使用
在实际应用中,两者可以根据具体的网络需求和设备能力选择使用。例如,在环境中同时存在上行链路和服务链路的监控需求时,可以同时部署Smart-Link来提供链路冗余,以及Monitor-Link来做细致的服务质量监控和控制。这种配置能够提升网络架构的整体稳定性,减少单点故障的影响,提高网络服务的连续性和可靠性。
51 0
|
网络安全 数据安全/隐私保护
LPO(Link Protection On)
LPO(Link Protection On)是思科交换机上的一种链路保护机制,用于防止网络中的链路层攻击,如欺骗攻击、地址欺骗攻击等。LPO 通过在网络设备之间建立信任关系,并使
289 0
成功解决hostname ‘xxx‘ doesn‘t uniquely match the interface ‘ens33‘ selected for the management bridge
成功解决hostname ‘xxx‘ doesn‘t uniquely match the interface ‘ens33‘ selected for the management bridge
|
网络协议 网络架构
|
网络协议 网络架构