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

    实验要求:设置静态路由,保证各个PC之间能通信

    拓扑如下:

    配置如下:

    Router1

    enable  进入特权模式

    configure terminal  进入全局模式

    interface s0/0/0  进入端口

    ip address 192.168.4.9 255.255.255.252  设置IP地址 

    clock rate 64000  设置同步时钟

    no shutdown   开启端口

    interface s0/0/1  进入端口

    ip address 192.168.4.5 255.255.255.252  设置IP地址

    clock rate 64000  设置同步时钟

    no shutdown  开启端口

    interface f0/0  进入端口

    ip address 192.168.1.254 255.255.255.0  设置IP地址 

    no shutdown   开启端口

    exit  返回上一级

    ip route 192.168.2.0 255.255.255.0 192.168.4.6  设置静态路由

    ip route 192.168.3.0 255.255.255.0 192.168.4.10  设置静态路由

    ip route 192.168.4.0 255.255.255.252 192.168.4.6  设置静态路由

    Router2

    enable  进入特权模式

    configure terminal   进入全局模式

    interface s0/0/0  进入端口

    ip address 192.168.4.6 255.255.255.252  设置IP地址

    no shutdown   开启端口

    interface f0/0  进入端口  

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    no shutdown   开启端口

    interface f0/1  进入端口

    ip address 192.168.4.2 255.255.255.252  设置IP地址

    no shutdown   开启端口

    exit  返回上一级

    ip route 192.168.1.0 255.255.255.0 192.168.4.5  设置静态路由

    ip route 192.168.3.0 255.255.255.0 192.168.4.1   设置静态路由

    ip route 192.168.4.8 255.255.255.252 192.168.4.5  设置静态路由

    Routers3

    enable  进入特权模式

    configure terminal   进入全局模式

    interface s0/0/0  进入端口

    ip address 192.168.4.10 255.255.255.252  设置IP地址

    no shutdown   开启端口

    interface f0/0  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    no shutdown  开启端口

    interface f0/1  进入端口  

    ip address 192.168.4.1 255.255.255.252  设置IP地址

    no shutdown   开启端口

    exit   返回上一级

    ip route 192.168.1.0 255.255.255.0 192.168.4.9  设置静态路由

    ip route 192.168.4.4 255.255.255.252 192.168.4.2  设置静态路由

    ip route 192.168.2.0 255.255.255.0 192.168.4.2  设置静态路由

  • 相关阅读:
    centos安装docker-compose
    CentOS安装Docker
    【JPA】【笔记】GenerationType四中类型
    【maven】多个子项目、父项目之间的引用问题【转】
    一个页面多个echarts图表自适应
    jQuery操作单选按钮(radio)用法
    CASE WHEN .... THEN END 的用法
    遮罩层
    oracle 数据库的字段的增删改主键设定删除
    自动获取ROI-用于SFR算法的ROI获取
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9208261.html
Copyright © 2011-2022 走看看