如何让一个vlan中的DHCP服务器为整个企业网络分配ip地址?
答案:3 悬赏:50 手机版
解决时间 2021-11-19 02:23
- 提问者网友:焚苦与心
- 2021-11-18 18:55
如何让一个vlan中的DHCP服务器为整个企业网络分配ip地址?
最佳答案
- 五星知识达人网友:末日狂欢
- 2021-11-18 20:33
1.全网可达,也就是说DHCP服务器到每个网络都是能ping通的
2. 在需要dhcp服务的网络最近的3层设备上做dhcp中继。
例如: 假设所有的switch都是2层设备
dhcp server ----- switch1------ switch 2 ----- switch3------ router1 ------ switch4 ------ client
这样的结构中,你只需要在router1连接 switch的接口上做dhcp relay即可。
2. 在需要dhcp服务的网络最近的3层设备上做dhcp中继。
例如: 假设所有的switch都是2层设备
dhcp server ----- switch1------ switch 2 ----- switch3------ router1 ------ switch4 ------ client
这样的结构中,你只需要在router1连接 switch的接口上做dhcp relay即可。
全部回答
- 1楼网友:轻熟杀无赦
- 2021-11-18 21:10
配置dhcp中继就可以了。
- 2楼网友:过活
- 2021-11-18 20:56
在交换机上为不同的VLAN指定DHCP服务器地址
不同的VLAN中通过设置IP HELPER-ADDRESS即可,命令如下:
switch>enable (进入交换机的特权模式)
Password
switch #c onfig t (进入配置模式)
Enter configuration commandsone per line. End with CNTL/Z.
switch config #interface vlan1 (配置VLAN1)
switch config-if #ip helper-address 192.168.1.4(指定DHCP服务器的地址,即路由器的地址)
ghqconfig-if #interface vlan2 (配置VLAN2)
ghqconfig-if #ip helper-address 192.168.1.4
不同的VLAN中通过设置IP HELPER-ADDRESS即可,命令如下:
switch>enable (进入交换机的特权模式)
Password
switch #c onfig t (进入配置模式)
Enter configuration commandsone per line. End with CNTL/Z.
switch config #interface vlan1 (配置VLAN1)
switch config-if #ip helper-address 192.168.1.4(指定DHCP服务器的地址,即路由器的地址)
ghqconfig-if #interface vlan2 (配置VLAN2)
ghqconfig-if #ip helper-address 192.168.1.4
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯