zoukankan      html  css  js  c++  java
  • 浮动静态路由

    实验要求:设置浮动静态路由,当RIP链路失效后静态路由能起作用

    拓扑如下:

    配置如下:

    R1
    enable  进入特权模式
    configure terminal   进入全局模式
    interface f0/0  进入端口
    ip address 192.168.1.1 255.255.255.0  设置IP地址
    no shutdown   开启端口
    interface f0/1  进入端口
    ip address 192.168.2.1 255.255.255.0  设置IP地址
    no shutdown   开启端口
    interface l0  开启并进入环回端口
    ip address 192.168.10.1 255.255.255.0  设置IP地址
    exit   返回上一级
    ip route 192.168.20.0 255.255.255.0 192.168.2.2 130  设置静态路由(管理距离大于RIP的管理距离即可)
    router rip  启动RIP协议  
    version 2  版本为2
    network 192.168.10.0  添加网段到RIP
    network 192.168.1.0  添加网段到RIP

    R2
    enable   进入特权模式
    configure terminal   进入全局模式
    interface f0/0  进入端口
    ip address 192.168.1.2 255.255.255.0  设置IP地址
    no shutdown   开启端口
    interface f0/1  进入端口
    ip address 192.168.2.2 255.255.255.0  设置IP地址
    no shutdown   开启端口
    interface l0  创建并进入环回端口
    ip address 192.168.20.1 255.255.255.0  设置IP地址
    exit   返回上一级
    ip route 192.168.10.0 255.255.255.0 192.168.2.1 130  设置静态路由(管理距离大于RIP的管理距离即可)
    router rip  启动RIP协议  
    version 2  版本为2
    network 192.168.20.0  添加网段到RIP
    network 192.168.1.0  添加网段到RIP

  • 相关阅读:
    Failed to start mysqld.service: Unit not found
    Nginx转发前后端分离跨域引发的问题-转发请求header头中含有下划线,无法转发取值
    云上Centos7新硬盘挂载流程
    马哥教育第二阶段考试
    Linux集群准备-同步
    Lucene查询语法
    权限系统设计
    docker compose thinkphp5.1 lnmp环境搭建加项目部署全过程
    docker compose 的使用
    [转载]PHP-FPM
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9217464.html
Copyright © 2011-2022 走看看