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  设置静态路由

  • 相关阅读:
    「2020 新手必备 」极速入门 Retrofit + OkHttp 网络框架到实战,这一篇就够了!
    结合源码,重温 Android View 的事件处理知多少 ?
    Android 这 13 道 ContentProvider 面试题,你都会了吗?
    17 个必须掌握的 BroadcastReceiver 知识点「建议收藏」
    23 个重难点突破,带你吃透 Service 知识点「长达 1W+ 字」
    Activity 的 36 大难点,你会几个?「建议收藏」
    Python time模块
    vue项目的创建
    githunb和码云生成/添加SSH公钥
    weex打包apk步骤
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9208261.html
Copyright © 2011-2022 走看看