LinuxCentos7DHCP服务,中继链路,详细配置-创新互联

成都创新互联公司坚持“要么做到,要么别承诺”的工作理念,服务领域包括:做网站、
成都网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的
博湖网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
一.先了解一下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给的地址

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
名称栏目:LinuxCentos7DHCP服务,中继链路,详细配置-创新互联
当前URL:
http://wjwzjz.com/article/csgpge.html