科技行者

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

知识库

知识库 安全导航

至顶网网络频道路由交换没有路由实现网络的互通

没有路由实现网络的互通

  • 扫一扫
    分享文章到微信

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

没有路由实现网络的互通

来源:chinaitlab 2010年2月2日

关键字: 路由技术 路由器 路由交换

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

  R1:

  interface Loopback0

  ip address 1.1.1.1 255.255.255.0

  !

  interface Serial1/0

  ip address 12.1.1.1 255.255.255.0

  ip policy route-map cisco

  serial restart-delay 0

  clock rate 64000

  !

  interface Serial1/2

  ip address 17.1.1.1 255.255.255.0

  serial restart-delay 0

  clock rate 64000

  !

  ip local policy route-map cisco

  ip classless

  no ip http server

  !

  !

  ip access-list extended cisco

  permit ip host 1.1.1.1 host 3.3.3.3

  route-map cisco permit 10

  match ip address cisco

  set ip default next-hop 12.1.1.2

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  end

  R2:

  interface Serial1/0

  ip address 12.1.1.2 255.255.255.0

  ip policy route-map cisco

  serial restart-delay 0

  !

  interface Serial1/1

  ip address 23.1.1.2 255.255.255.0

  serial restart-delay 0

  !

  ip local policy route-map cisco

  ip classless

  no ip http server

  !

  !

  ip access-list extended cisco

  permit ip host 1.1.1.1 host 3.3.3.3

  route-map cisco permit 10

  match ip address cisco

  set ip default next-hop 23.1.1.3

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  endR3:

  interface Loopback0

  ip address 3.3.3.3 255.255.255.0

  !

  interface Serial1/1

  ip address 23.1.1.3 255.255.255.0

  serial restart-delay 0

  !

  interface Serial1/2

  ip address 37.1.1.3 255.255.255.0

  ip policy route-map cisco

  serial restart-delay 0

  !

  ip local policy route-map cisco

  ip classless

  ip http server

  !

  !

  ip access-list extended cisco

  permit ip host 3.3.3.3 host 1.1.1.1

  route-map cisco permit 10

  match ip address cisco

  set ip default next-hop 37.1.1.7

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  line aux 0

  line vty 0 4

  !

  end

  R7:

  interface Serial1/0

  ip address 17.1.1.7 255.255.255.0

  serial restart-delay 0

  !

  interface Serial1/2

  ip address 37.1.1.7 255.255.255.0

  ip policy route-map cisco

  serial restart-delay 0

  !

  ip local policy route-map cisco

  no ip http server

  no ip http secure-server

  !

  !

  !ip access-list extended cisco

  permit ip host 3.3.3.3 host 1.1.1.1

  !

  logging alarm informational

  !

  !

  !

  route-map cisco permit 10

  match ip address cisco

  set ip default next-hop 17.1.1.1

  !

  !

  !

  !

  control-plane

  !

  !

  !

  !

  !

  !

  gatekeeper

  shutdown

  !

  !

  line con 0

  exec-timeout 0 0

  logging synchronous

  stopbits 1

  line aux 0

  stopbits 1

  line vty 0 4

  !

  !

  end

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

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

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