• 路由器基础配置之路由重分布


    拓扑图如下

    接下来配置路由器ip地址

    路由器0

    enable  进入特权模式

    config t  进入全局配置模式

    interface s0/2/0  进入接口

    ip address 192.168.20.2 255.255.255.0  配置ip地址

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/0  进入接口

    ip address 192.168.60.2 255.255.255.0    配置ip    

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/1  进入接口

    ip address 192.168.50.2 255.255.255.0   配置ip

    clock rate 6400  设置同步时间  

    no shu  激活接口

    路由器1

    enable  进入特权模式

    config t  进入全局配置模式

    interface s0/2/0  进入接口模式

    ip address 192.168.40.1 255.255.255.0  配置ip地址

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/0  进入接口

    ip address 192.168.10.2 255.255.255.0   配置ip

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/1  进入接口

    ip address 192.168.60.1 255.255.255.0  配置ip

    clock rate 6400   设置同步时间

    no shu  激活接口

    路由器2

    enable  进入特权模式

    config t  进入全局配置模式

    interface s0/2/0  进入接口模式

    ip address 192.168.40.2 255.255.255.0  配置ip地址

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/0  进入接口

    ip address 192.168.30.2 255.255.255.0   设置ip

    clock rate 6400  设置同步时间

    no shu  激活接口

    exit  返回

    interface s0/3/1  进入接口

    ip address 192.168.50.1 255.255.255.0  设置ip

    clock rate 6400  设置同步时间

    no shu  激活接口

    路由器3

    enable 进入特遣模式

    config t  进入全局配置模式

    interface s0/3/0  进入接口

    ip address 192.168.20.1 255.255.255.0  配置ip

    no shu  激活接口

    exit  返回

    interface f0/0  进入接口

    ip address 192.168.3.254 255.255.255.0  配置ip

    no shu  激活接口

     路由器4

    enable  进入特权模式

    config t  进入全局配置模式

    interface s0/3/0  进入接口

    ip address 192.168.10.1 255.255.255.0  配置ip

    no shu  激活接口

    exit  返回

    interface f0/0  进入接口

    ip address 192.168.1.254 255.255.255.0  配置ip

    no shu  激活接口

    路由器5

    enable  进入特权模式

    config t  进入全局配置模式

    interface s0/3/0  进入接口

    ip address 192.168.30.1 255.255.255.0  配置ip

    no shu  激活接口

    exit  返回

    interface f0/0  进入接口

    ip address 192.168.2.254 255.255.255.0  设置ip

    no shu  激活接口

    路由器IP地址配置完毕,开始配置路由器的rip,静态和重分布

    路由器0

    在全局配置模式下

    router rip

    ver2

    network 192.168.20.0

    network 192.168.50.0

    network 192.168.60.0

    redistribute static metric 1  配置静态路由的重分布,配置静态路由的重分布同时可以配置一条直连路由的重分布

    redistribute connected metric 1

    exit

    ip router 192.168.3.0 255.255.255.0 192.168.20.1  设置去往3.0网段的静态路由

    路由器1

    enable  进入特权模式

    config t  进入全局配置模式

    router rip

    ver2

    network 192.168.10.0

    network 192.168.40.0

    network 192.168.60.0

    redistribute static metric 1  配置静态路由的重分布,配置静态路由的重分布同时可以配置一条直连路由的重分布

    redistribute connected metric 1

    exit

    ip router 192.168.1.0 255.255.255.0 192.168.10.1  设置去往1.0网段的静态路由

    路由器2

    enable  进入特权模式

    config t  进入全局配置模式

    router rip

    ver2

    network 192.168.40.0

    network 192.168.50.0

    network 192.168.30.0

    redistribute static metric 1  配置静态路由的重分布,配置静态路由的重分布同时可以配置一条直连路由的重分布

    redistribute connected metric 1

    exit

    ip router 192.168.2.0 255.255.255.0 192.168.30.1  设置去往2.0网段的静态路由

    路由器3

    enable  进入特权模式

    config t  进入全局配置模式

    ip router 192.168.1.0 255.255.255.0 192.168.20.2  设置去往1.0网段的静态路由

    ip router 192.168.2.0 255.255.255.0 192.168.20.2  设置去往2.0网段的静态路由

    router3不是边界路由器,无需设置重分布

    路由器4

    enable  进入特权模式

    config t  进入全局配置模式

    ip router 192.168.3.0 255.255.255.0 192.168.10.2  设置去往3.0网段的静态路由

    ip router 192.168.2.0 255.255.255.0 192.168.10.2  设置去往2.0网段的静态路由

    router4不是边界路由器,无需设置重分布

    router5

    enable  进入特权模式

    config t  进入全局配置模式

    ip router 192.168.1.0 255.255.255.0 192.168.30.2  设置去往1.0网段的静态路由

    ip router 192.168.3.0 255.255.255.0 192.168.30.2  设置去往3.0网段的静态路由

    router5不是边界路由器,无需设置重分布

  • 相关阅读:
    poj 2377 Bad Cowtractors (最‘大’生成树)
    POJ 3626 Mud Puddles (BFS)
    hdu 3367 Pseudoforest (krusual)
    hdu 1548 A strange lift (bfs)
    poj 1860 Currency Exchange (Bellman_Ford)
    poj 1005 I Think I Need a Houseboat
    poj 3625 Building Roads (最小生成树)
    zoj 1586 QS Network (最小生成树)
    poj 1679 The Unique MST (最小生成树)
    .NET中书写XML的一种简单方法
  • 原文地址:https://www.cnblogs.com/ruanjie/p/9220942.html
Copyright © 2020-2023  润新知