默认路由的配置实验

川长思鸟来 2023-06-20 06:54 83阅读 0赞

【实验目的】了解路由器默认路由的配置方法

【实验器材】两台安装Windows系统的计算机,两台路由器

【实验组网图】

在这里插入图片描述

【实验任务】

  • 按图连接网络,按表在路由器R1 和R2之间建立连接,配置路由器的默认路由表,并检验所配置的网络是否能够连通。
  • PC0的IP配置成 59.64.1.2/24 ;PC1的IP为 192.168.199.2/24 。




















路由器 串口配置 以太网端口配置
Router1 192.168.1.1/24 59.64.1.1/24
Router2 192.168.1.2/24 192.168.199.1/24

【实验指导】

  1. 按表在路由器R1 和R2之间建立连接,对路由器的路由表进行配置,一旦路由表配置完成,网络中任何一台设备都可以ping到其他的所有设备。Router配置路由信息如下:

    R1:

    1. configure terminal
    2. !
    3. interface Ethernet1
    4. ip add 59.64.1.1 255.255.255.0
    5. no shut
    6. !
    7. interface Serial1
    8. ip add 192.168.1.1 255.255.255.0
    9. no shut
    10. clock rate 64000
    11. ip route 0.0.0.0 0.0.0.0 192.168.1.2

    R2:

    1. configure terminal
    2. !
    3. interface Ethernet1
    4. ip add 192.168.199.1 255.255.255.0
    5. no shut
    6. !
    7. interface Serial1
    8. ip add 192.168.1.2 255.255.255.0
    9. no shut
    10. clock rate 64000
    11. ip route 0.0.0.0 0.0.0.0 192.168.1.1
    12. Host 0:
    13. 配置ip 地址: 59.64.1.2 255.255.255.0
    14. Host 1:
    15. 配置ip 地址: 192.168.199.2 255.255.255.0
  2. 通过ping命令检查网络的连通性:

    R1# show ip route

    1. Ip -------- Route
    2. S: 0.0.0.0 via 192.168.1.2
    3. R1 ping 192.168.199.2
    4. Sending 5,100-byte ICMP Echoes to 192.168.199.2, time out is 2.0 seconds:
    5. !!!!!!!!!!
    6. Success rate is 100 percent (5/5), round trIP min/avg/max= 1/2/4 ms
    7. R2# show ip route
    8. Ip -------- Route
    9. S: 0.0.0.0 via 192.168.1.1
    10. R2# ping 59.64.1.2
    11. Sending 5, 100-byte ICMP Echoes to 59.64.1.2, time out is 2.0 seconds:
    12. !!!!!!!!!!
    13. Success rate is 100 percent (5/5), round trIP min/avg/max= 1/2/4 ms

发表评论

表情:
评论列表 (有 0 条评论,83人围观)

还没有评论,来说两句吧...

相关阅读

    相关 配置默认

    配置接口IP地址并通过静态路由、默认路由配置实现全网互通 拓扑图如下;按照图上内容配置环境,pc机IP、子网掩码、网关 ![拓扑.PNG][.PNG] 路由器R1