科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道路由交换谁动了我的网络系列 之 ospf 重分发静态路由

谁动了我的网络系列 之 ospf 重分发静态路由

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

谁动了我的网络系列 之 ospf 重分发静态路由

来源:chinaitlab 2011年4月16日

关键字: 路由交换 路由协议

  • 评论
  • 分享微博
  • 分享邮件

  

  show run.......

  r1#show run

  Building configuration...

  Current configuration : 1325 bytes

  !

  version 12.3

  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

  ip subnet-zero

  !

  !

  no ip domain lookup

  !

  ip cef

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  interface Loopback0

  ip address 1.1.1.1 255.255.255.0

  ip ospf network point-to-point

  !

  interface Serial0/0

  ip address 12.12.12.1 255.255.255.0

  serial restart-delay 0

  no fair-queue

  !

  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

  !

  interface Ethernet1/0

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/1

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/2

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/3

  ip address 14.14.14.1 255.255.255.0

  half-duplex

  !

  !

  router ospf 100

  router-id 1.1.1.1

  log-adjacency-changes

  network 1.1.1.0 0.0.0.255 area 100

  network 12.12.12.0 0.0.0.255 area 100

  default-information originate metric 20 metric-type 1

  !

  ip http server

  no ip http secure-server

  ip classless

  ip route 0.0.0.0 0.0.0.0 14.14.14.4

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  !

  end

  r1#

  r2#show run

  Building configuration...

  Current configuration : 1271 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

  !

  !

  no aaa new-model

  ip subnet-zero

  !

  !

  no ip domain lookup

  !

  ip cef

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  interface Loopback0

  ip address 2.2.2.2 255.255.255.0

  ip ospf network point-to-point

  !

  interface Serial0/0

  ip address 23.23.23.2 255.255.255.0

  serial restart-delay 0

  no fair-queue

  !

  interface Serial0/1

  ip address 12.12.12.2 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

  !

  interface Ethernet1/0

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/1

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/2

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/3

  no ip address

  shutdown

  half-duplex

  !

  !

  router ospf 100

  router-id 2.2.2.2

  log-adjacency-changes

  network 2.2.2.0 0.0.0.255 area 0

  network 12.12.12.0 0.0.0.255 area 100

  network 23.23.23.0 0.0.0.255 area 200

  !

  ip http server

  no ip http secure-server

  ip classless

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  !

  end

  r2#

  r3#show run

  Building configuration...

  Current configuration : 1325 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

  !

  !

  no aaa new-model

  ip subnet-zero

  !

  !

  no ip domain lookup

  !

  ip cef

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  interface Loopback0

  ip address 3.3.3.3 255.255.255.0

  ip ospf network point-to-point

  !

  interface Serial0/0

  ip address 23.23.23.3 255.255.255.0

  serial restart-delay 0

  no fair-queue

  !

  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

  !

  interface Ethernet1/0

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/1

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/2

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/3

  ip address 35.35.35.3 255.255.255.0

  half-duplex

  !

  !

  router ospf 100

  router-id 3.3.3.3

  log-adjacency-changes

  network 3.3.3.0 0.0.0.255 area 200

  network 23.23.23.0 0.0.0.255 area 200

  default-information originate metric 20 metric-type 1

  !

  ip http server

  no ip http secure-server

  ip classless

  ip route 0.0.0.0 0.0.0.0 35.35.35.5

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  !

  end

  r3#

  r4#show run

  Building configuration...

  Current configuration : 1053 bytes

  !

  version 12.3

  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

  ip subnet-zero

  !

  !

  ip name-server 192.168.1.1

  !

  ip cef

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  interface Loopback0

  ip address 4.4.4.4 255.255.255.0

  !

  interface FastEthernet0/0

  ip address 192.168.1.20 255.255.255.0

  ip nat outside

  duplex auto

  speed auto

  !

  interface Ethernet1/0

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/1

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/2

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/3

  ip address 14.14.14.4 255.255.255.0

  ip nat inside

  half-duplex

  !

  !

  ip nat inside source list 1 interface FastEthernet0/0 overload

  ip http server

  no ip http secure-server

  ip classless

  ip route 0.0.0.0 0.0.0.0 192.168.1.1

  ip route 2.2.2.0 255.255.255.0 14.14.14.1

  !

  !

  access-list 1 permit any

  !

  !

  !

  !

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  !

  end

  r4#

  r5#show run

  Building configuration...

  Current configuration : 1004 bytes

  !

  version 12.3

  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

  ip subnet-zero

  !

  !

  !

  ip cef

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  !

  interface Loopback0

  ip address 5.5.5.5 255.255.255.0

  !

  interface FastEthernet0/0

  ip address dhcp

  ip nat outside

  duplex auto

  speed auto

  !

  interface Ethernet1/0

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/1

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/2

  no ip address

  shutdown

  half-duplex

  !

  interface Ethernet1/3

  ip address 35.35.35.5 255.255.255.0

  ip nat inside

  half-duplex

  !

  !

  ip nat inside source list 1 interface FastEthernet0/0 overload

  ip http server

  no ip http secure-server

  ip classless

  ip route 0.0.0.0 0.0.0.0 192.168.1.1

  ip route 2.2.2.0 255.255.255.0 35.35.35.3

  !

  !

  access-list 1 permit any

  !

  !

  !

  !

  !

  !

  !

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  !

  end

  r5#

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章