计算机网络基础问答5

  1. 请简要描述什么是TTL,TTL作用及TTL的原理
     参考答案
    TTL是数据生命周期
    作用:避免数据在网络中无限循环转发
    原理:当网络中的数据包每经过一个路由器TTL值减1,当TTL值为0时,数据包丢弃。
  2. 请写出有哪三段私有IP地址
     参考答案
    A类 10.0.0.0~10.255.255.255
    B类 172.16.0.0~172.31.255.255
    C类 192.168.0.0~192.168.255.255
  3. ARP的解析
    如图-1所示的网络环境有2台Windows 7主机PC1、PC2,在PC1上运行命令arp –a显示:No ARP Entries Found,现在PC1上ping 10.10.2.1,可以ping通,然后马上又在PC1上运行命令arp –a ,则会显示以下什么信息
    在这里插入图片描述
    A. 10.10.2.1 00-E0-4C-00-00-02 dynamic
    B. 10.10.2.254 CC-00-05-C0-00-02 dynamic
    C. 10.10.1.254 CC-00-05-C0-00-01 dynamic
    D. No ARP Entries Found
     参考答案
    显示C 选项信息。
    这是因为PC1与PC2属于不同网段的主机,当PC1发起ping 10.10.2.1会通过代理ARP协议解析为网关接口的MAC地址。
  4. 请简要描述网络层有哪些常见协议
     参考答案
    ARP协议
    RARP协议
    代理ARP
    ICMP协议
  5. 通过路由配置实现不同网络之间的通信
    网络层主要实现不同网络之间的通信,网络层主要设备是路由器,按如下图-2所示通过路由器配置实现PC1与PC2之间的通信。
    在这里插入图片描述
     参考答案
    实现此案例需要按照如下步骤进行。
    步骤一:配置路由器f0/0接口IP
    配置f0/0接口IP地址为192.168.1.254/24:
    Router>enable
    Router#configure terminal
    Router(config)#interface fastEthernet 0/0
    Router(config-if)#ip address 192.168.1.254 255.255.255.0
    Router(config-if)#no shutdown
    步骤二:配置路由器f0/1接口IP
    配置f0/1接口IP地址为192.168.2.254/24:
    Router(config)#interface fastEthernet 0/1
    Router(config-if)#ip address 192.168.2.254 255.255.255.0
    Router(config-if)#no shutdown
    步骤三:查看路由表
    查看路由表自动生成两条直连路由条目:
    Router#show ip rou
    Router#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
      • candidate default, U - per-user static route, o - ODR
        P - periodic downloaded static route
        Gateway of last resort is not set
        C 192.168.1.0/24 is directly connected, FastEthernet0/0
        C 192.168.2.0/24 is directly connected, FastEthernet0/1
        步骤四:测试网络连通性
        配置PC1主机IP地址为192.168.1.1,PC2主机IP地址为192。168.2.1然后通过PC1用ping命令测试与PC2的连通性:
        PC>ipconfig
        FastEthernet0 Connection:(default port)
        Link-local IPv6 Address…: FE80::205:5EFF:FEE7:BC0E
        IP Address…: 192.168.1.1
        Subnet Mask…: 255.255.255.0
        Default Gateway…: 192.168.1.254
        PC>ping 192.168.2.1
        Pinging 192.168.2.1 with 32 bytes of data:
        Reply from 192.168.2.1: bytes=32 time=1ms TTL=127
        Reply from 192.168.2.1: bytes=32 time=0ms TTL=127
        Reply from 192.168.2.1: bytes=32 time=0ms TTL=127
        Reply from 192.168.2.1: bytes=32 time=0ms TTL=127
        Ping statistics for 192.168.2.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
        Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 1ms, Average = 0ms
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cs阿坤dn

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值