IT猫扑网:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|论坛转贴|软件发布

您当前所在位置:首页系统集成网络管理 → 路由器静态路由配置

路由器静态路由配置

时间:2015/6/28来源:IT猫扑网作者:网管联盟我要评论(0)

    //实现:通过静态路由实现网络的连通性。
    //环境:
    Router01
    Router02
    CISCO 2960-01
    CISCO 2960-02
    PC01
    PC02
    //拓扑:如图(110422-路由器静态路由配置)

      
    //配置Router01
    Router01>enable
    Router01#configure terminal
    Router01(config)#interface fastEthernet 1/0
    Router01(config-if)#no shutdown
    Router01(config-if)#ip address 192.168.1.1 255.255.255.0
    Router01(config-if)#exit
    Router01(config)#interface serial 2/0
    Router01(config-if)#ip address 192.168.3.1 255.255.255.0
    Router01(config-if)#clock rate 64000 //配置时钟频率
    Router01(config-if)#no shutdown
    Router01#configure terminal
    Router01(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.2    //静态路由配置(目标网段,下一跳地址)
    Router01#show ip route   //查看路由表
    Router01#write
    //配置Router02
    Router02>enable
    Router02#configure terminal
    Router02(config)#interface fastEthernet 1/0
    Router02(config-if)#no shutdown
    Router02(config-if)#ip address 192.168.2.1 255.255.255.0
    Router02(config-if)#exit
    Router02(config)#interface serial 2/0
    Router02(config-if)#ip address 192.168.3.1 255.255.255.0
    Router02(config-if)#no shutdown
    Router02#configure terminal
    Router02(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
    Router02#write

    //测试:(终端计算机)
    PC01>ping 192.168.1.1
    Pinging 192.168.1.1 with 32 bytes of data:
    Reply from 192.168.1.1: bytes=32 time=7ms TTL=255
    Ping statistics for 192.168.1.1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 7ms, Average = 7ms
    Control-C
    PC01>ping 192.168.3.1
    Pinging 192.168.3.1 with 32 bytes of data:
    Reply from 192.168.3.1: bytes=32 time=13ms TTL=255
    Ping statistics for 192.168.3.1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 13ms, Maximum = 13ms, Average = 13ms
    Control-C
    PC01>ping 192.168.3.2
    Pinging 192.168.3.2 with 32 bytes of data:
    Reply from 192.168.3.2: bytes=32 time=21ms TTL=254
    Ping statistics for 192.168.3.2:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 21ms, Maximum = 21ms, Average = 21ms
    Control-C
    PC01>ping 192.168.2.1
    Pinging 192.168.2.1 with 32 bytes of data:
    Reply from 192.168.2.1: bytes=32 time=19ms TTL=254
    Ping statistics for 192.168.2.1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 19ms, Maximum = 19ms, Average = 19ms
    Control-C
    PC01>ping 192.168.2.101
    Pinging 192.168.2.101 with 32 bytes of data:
    Reply from 192.168.2.101: bytes=32 time=35ms TTL=126
    Ping statistics for 192.168.2.101:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 35ms, Maximum = 35ms, Average = 35ms
    Control-C

关键词标签:路由器,静态路由配置

相关阅读

文章评论
发表评论

热门文章 路由器地址大全-各品牌路由设置地址路由器地址大全-各品牌路由设置地址各品牌的ADSL与路由器出厂默认IP、帐号、密各品牌的ADSL与路由器出厂默认IP、帐号、密Nslookup命令详解-域名DNS诊断Nslookup命令详解-域名DNS诊断站长装备:十大网站管理员服务器工具软件站长装备:十大网站管理员服务器工具软件

相关下载

人气排行 各品牌的ADSL与路由器出厂默认IP、帐号、密码路由器地址大全-各品牌路由设置地址腾达路由器怎么设置?腾达路由器设置教程ADSL双线负载均衡设置详细图文教程路由表说明(详解route print)网管员实际工作的一天用此方法让2M带宽下载速度达到250K/S左右网管必会!了解交换机控制端口流量