网络基础总结(篇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协议
RARP协议
代理ARP
ICMP协议

4.通过路由配置实现不同网络之间的通信
网络层主要实现不同网络之间的通信,网络层主要设备是路由器,按如下图所示通过路由器配置实现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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值