实验一:配置IP地址

1.实验环境

主机A和主机B通过一根网线相连

2.需求描述

为两台主机配置IP地址,验证IP地址是否生效,验证

同一网段的两台主机可以互通,不同网段的主机不能

直接互通

3.推荐步骤

1. 为两台主机配置P地址,主机A为10.0.10.10,主机B为10.0.11.11配置子网掩码

均为255.255.00

2.通过 ipconfig 命令验证主机IP是否生效

C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::2D0:58FF:FEA8:EE60
   IP Address......................: 10.0.10.10
   Subnet Mask.....................: 255.0.0.0
   Default Gateway.................: 0.0.0.0

Bluetooth Connection:

   Link-local IPv6 Address.........: ::
   IP Address......................: 0.0.0.0
   Subnet Mask.....................: 0.0.0.0
   Default Gateway.................: 0.0.0.0

C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::290:21FF:FE09:2730
   IP Address......................: 10.0.11.11
   Subnet Mask.....................: 255.0.0.0
   Default Gateway.................: 0.0.0.0

Bluetooth Connection:

   Link-local IPv6 Address.........: ::
   IP Address......................: 0.0.0.0
   Subnet Mask.....................: 0.0.0.0
   Default Gateway.................: 0.0.0.0

3.通过 ping 命令验证两台主机是否互通

C:\>ping 10.0.11.11

Pinging 10.0.11.11 with 32 bytes of data:

Reply from 10.0.11.11: bytes=32 time<1ms TTL=128
Reply from 10.0.11.11: bytes=32 time=4ms TTL=128
Reply from 10.0.11.11: bytes=32 time<1ms TTL=128
Reply from 10.0.11.11: bytes=32 time=3ms TTL=128

Ping statistics for 10.0.11.11:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 4ms, Average = 1ms

C:\>

4.将子网掩码都改为 255.255.255.0,并重复步骤 2,步骤 3

1.将子网掩码都改为255.255.255.0
2.重复步骤2
C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::2D0:58FF:FEA8:EE60
   IP Address......................: 10.0.10.10
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 0.0.0.0

Bluetooth Connection:

   Link-local IPv6 Address.........: ::
   IP Address......................: 0.0.0.0
   Subnet Mask.....................: 0.0.0.0
   Default Gateway.................: 0.0.0.0

C:\>

C:\>ipconfig

FastEthernet0 Connection:(default port)

   Link-local IPv6 Address.........: FE80::290:21FF:FE09:2730
   IP Address......................: 10.0.11.11
   Subnet Mask.....................: 255.255.255.0
   Default Gateway.................: 0.0.0.0

Bluetooth Connection:

   Link-local IPv6 Address.........: ::
   IP Address......................: 0.0.0.0
   Subnet Mask.....................: 0.0.0.0
   Default Gateway.................: 0.0.0.0

C:\>
3.重复步骤3
​
C:\>ping 10.0.11.11

Pinging 10.0.11.11 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.0.11.11:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>

​

至此实验结束。

相关推荐
weixin_4426434222 分钟前
推荐FileLink数据跨网摆渡系统 — 安全、高效的数据传输解决方案
服务器·网络·安全·filelink数据摆渡系统
阑梦清川36 分钟前
JavaEE初阶---网络原理(五)---HTTP协议
网络·http·java-ee
Karoku06640 分钟前
【企业级分布式系统】Zabbix监控系统与部署安装
运维·服务器·数据库·redis·mysql·zabbix
半桶水专家1 小时前
用go实现创建WebSocket服务器
服务器·websocket·golang
布值倒区什么name1 小时前
bug日常记录responded with a status of 413 (Request Entity Too Large)
运维·服务器·bug
FeelTouch Labs2 小时前
Netty实现WebSocket Server是否开启压缩深度分析
网络·websocket·网络协议
。puppy2 小时前
HCIP--3实验- 链路聚合,VLAN间通讯,Super VLAN,MSTP,VRRPip配置,OSPF(静态路由,环回,缺省,空接口),NAT
运维·服务器
颇有几分姿色2 小时前
深入理解 Linux 内存管理:free 命令详解
linux·运维·服务器
EricWang13583 小时前
[OS] 项目三-2-proc.c: exit(int status)
服务器·c语言·前端
算法与编程之美3 小时前
文件的写入与读取
linux·运维·服务器