[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
网络连接的概念
*
IP地址(IPADDR)
* IP地址是一种逻辑地址,用来标识网络中的一个主机
* IP地址=网络地址+主机地址
* IP地址是一个4*8bit(一字节)由0/1组成的数字串(IPv4协议)
*
子网掩码(NETWORK)
* 子网掩码只有一个功能,就是将IP地址划分为网络地址和主机地址
* 子网掩码用来判断任意两台计算机的IP地址是否在同一个子网的根据
*
默认网关(GETEWAY)
* 连接两个不同的网络设备都可以叫网关设备;网关的作用就是实现两个网络之间的通讯与控制
*
域名服务器(DNS)
* DNS是域名解析服务器,用来解析域名的(域名和IP之间的解析)
* 如果没有这个东西,登陆某个网站时就必须输入该网站的IP地址,有了DNS就可以直接输入网址
* 可以将域名(www.baidu.com)解析为IP地址
网络连接模式
*
桥接模式(bridged)
* VMWare虚拟出来的操作系统就像是局域网中的一台独立的主机,它可以访问网内任何一台机器
* 使用桥接模式的虚拟系统和宿主机器有关系,就像连接在同一个Hub上的两台电脑
* 当前主机IP为192.168.48.100 虚拟机 192.168.48.xxx
*
网络地址转换模式(NAT)
* 使用NAT模式,就是让虚拟网络系统借助NAT(网络地址转换)功能,通过宿主机器所在的网络来访问公网
* NAT模式下的虚拟系统的TCP/IP配置信息是由VMnet8(NAT)虚拟网络的DHCP服务器提供的
* 虚拟系统也就无法和本局域网中的其他真实主机进行通讯