
在德城等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都做网站、成都网站制作 网站设计制作按需开发网站,公司网站建设,企业网站建设,品牌网站设计,全网整合营销推广,成都外贸网站建设公司,德城网站建设费用合理。
一.先了解一下ip地址有几类,有哪些地址只能在区域网。
A:1~126 /8 192.168.100.100
B:128~191 /16
C:192~223 /24
D:224~239 组播通讯
E:240~254 科学研究
只看第一位知道它是哪类的地址
私有地址
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
127.0.0.0~127.255.255.255
测试tcp/ip协议生效地址,回环地址
169.254.0.0~169.254.255.255(dhcp未分配地址)
网卡是自动获取IP地址格式,但是局域网中没有
dhcp服务器地址,这时候将获取一个169.254.0.0~169.254.255.255
段落地址
二.以linux作为dhcp服务器,用GNS3中的三层交换机做中继网关
1.先在我们的centos7当中装好dhcp服务

2.在gns3当中配置好二层交换机,三层交换机,dhcp服务器并连好线,配好VLAN和虚拟虚拟网段

3.为了实验成功我们把两台客户机和一台DHCP服务器设置仅主机模式在同一个区域网
3.1先把dhcp服务器也就是我们的Centos7绑定VMNET1设置成仅主机模式

3.2把第一台win10客户机绑定vmnet2设置成仅主机模式

3.3把第二台win10客户机绑定vmnet8设置成仅主机模式


4.进入我们的二层交换机SW2配置VLAN和接口

5.查看有没有配好

6.把f1/0接口配置成trunk链路

7.进入我们的三层交换SW3配置vlan

8.查看VLAN有没有配好

9.给三给VLAN配置网端

10.查看网段有没有配置成功

11.把f1/0配置成trunk

12.查看类型是不是trunk链路

13.进入Centos7 中开始配置网卡

14.重启网络服务查看IP

15.复制dhcpd配置的模板

16.配置网段,子网掩码,地址池,默认网关

17.启动服务,查看DHCP服务状态

18.回到三层交换机开机中继链路

19.回到客户机我们试一试能不能自动获取到DHCP给的地址

文章题目:LinuxCentos7DHCP服务,中继链路,详细配置
文章源于:
http://cxhlcq.com/article/jipdco.html