注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 小五思科技术学习笔记之SSH
 帮助

ospf virtual-link


2007-01-21 12:13:02
 标签:ospf   [推送到技术圈]

版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。


r3>en
Password:
r3#show run
Building configuration...

Current configuration : 865 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$3QfG$BlsEgQKQ8H4n5FwC7ETp7.
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
ip host r1 192.1.1.1
ip host r2 192.1.1.2
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
 ip address 152.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 193.1.1.1 255.255.255.0
 duplex half
!
router ospf 1
 log-adjacency-changes
 area 1 virtual-link 2.2.2.2
 network 3.3.3.3 0.0.0.0 area 1
 network 152.1.1.0 0.0.0.255 area 4
 network 193.1.1.0 0.0.0.255 area 1
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
 no login
!
!
end

r3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/3] via 193.1.1.2, 00:00:39, FastEthernet0/0
     152.1.0.0/24 is subnetted, 1 subnets
C       152.1.1.0 is directly connected, Loopback1
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/2] via 193.1.1.2, 00:00:49, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
C    193.1.1.0/24 is directly connected, FastEthernet0/0
O    192.1.1.0/24 [110/2] via 193.1.1.2, 00:00:39, FastEthernet0/0
r3#r2
Translating "r2"
Trying r2 (192.1.1.2)... Open

r2>en
Password:
r2#show run
Building configuration...

Current configuration : 884 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$5Ky6$7NqjO9s5DtLvwIrZt7Lhj.
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
ip host r1 192.1.1.1
ip host r3 193.1.1.1
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.1.1.2 255.255.255.0
 duplex half
!
interface FastEthernet1/0
 ip address 193.1.1.2 255.255.255.0
 duplex half
!
router ospf 1
 log-adjacency-changes
 area 1 virtual-link 3.3.3.3
 network 2.2.2.2 0.0.0.0 area 1
 network 192.1.1.0 0.0.0.255 area 0
 network 193.1.1.0 0.0.0.255 area 1
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
 no login
!
!
end

r2#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 3.3.3.3 is up
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 1, via interface FastEthernet1/0, Cost of using 1
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:01
    Adjacency State FULL (Hello suppressed)
    Index 2/3, retransmission queue length 0, number of retransmission 1
    First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
    Last retransmission scan length is 1, maximum is 1
    Last retransmission scan time is 0 msec, maximum is 0 msec
r2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/2] via 192.1.1.1, 00:00:52, FastEthernet0/0
     152.1.0.0/32 is subnetted, 1 subnets
O IA    152.1.1.1 [110/2] via 193.1.1.1, 00:00:52, FastEthernet1/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/2] via 193.1.1.1, 00:01:02, FastEthernet1/0
C    193.1.1.0/24 is directly connected, FastEthernet1/0
C    192.1.1.0/24 is directly connected, FastEthernet0/0
r2#r3
Translating "r3"
Trying r3 (193.1.1.1)... Open

r3>en
Password:
r3#show run
Building configuration...

Current configuration : 865 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$3QfG$BlsEgQKQ8H4n5FwC7ETp7.
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
ip host r1 192.1.1.1
ip host r2 192.1.1.2
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
 ip address 152.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 193.1.1.1 255.255.255.0
 duplex half
!
router ospf 1
 log-adjacency-changes
 area 1 virtual-link 2.2.2.2
 network 3.3.3.3 0.0.0.0 area 1
 network 152.1.1.0 0.0.0.255 area 4
 network 193.1.1.0 0.0.0.255 area 1
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 stopbits 1
line aux 0
line vty 0 4
 no login
!
!
end

r3#show ip ospf v
r3#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 2.2.2.2 is up
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 1, via interface FastEthernet0/0, Cost of using 1
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:03
    Adjacency State FULL (Hello suppressed)
    Index 1/2, retransmission queue length 0, number of retransmission 1
    First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
    Last retransmission scan length is 1, maximum is 1
    Last retransmission scan time is 0 msec, maximum is 0 msec
r3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/3] via 193.1.1.2, 00:01:03, FastEthernet0/0
     152.1.0.0/24 is subnetted, 1 subnets
C       152.1.1.0 is directly connected, Loopback1
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/2] via 193.1.1.2, 00:01:13, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
C    193.1.1.0/24 is directly connected, FastEthernet0/0
O    192.1.1.0/24 [110/2] via 193.1.1.2, 00:01:03, FastEthernet0/0
r3#

 

本文出自 “人类一思考,上帝都发笑” 博客,转载请与作者联系!





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: