大网数据广告活动
服务器运维问答

Setting up DHCP on Windows Server 2012 R2. How to share Server's connected networks with all clients?

· 52CE 我爱测

My office requires a connection to a private corporate cloud and also the internet. Up till now i have used dual network cards on all client machines and then added static routes through command on each of them. It works well but…

问题原文

原帖链接 · notANerdDev · CC BY-SA 3.0

My office requires a connection to a private corporate cloud and also the internet. Up till now i have used dual network cards on all client machines and then added static routes through command on each of them. It works well but now the number of client machines has increased and it is getting difficult. Not to mention the added cost of adding a dual network card to each machine.

I have setup static routes inside my Server machine and both networks work fine on it. I added another network card and setup a new DHCP server role. The client machines are successfully being assigned IPs from the server, but they have no access to the server's connected networks.

I was hoping the server would share this access and hence i won't have to add static routes to each client machine, just the server. What exactly do i need to do for this, if at all this is possible?

All help is appreciated. Let me know what further information i should provide here.

My Existing Setup:

There are two routers, one for our corporate cloud connection and another for the internet.

This setup requires the addition of static routes on each machine.

Required Setup:

A windows server 2012 R2 machine with a quad NIC card. Two NICs take an IP each from the corporate router and another from the internet router. I add the same static routes to the windows server and check that it has access to both networks (Corporate and Internet). I setup a DHCP server on this machine and I disable DHCP on the internet router so that there is only the server machine giving out IPs.

On each client machine, i use only on network card (Configured to receive IP dynamically). The client receives IP from server machine.

So far things have worked. But i want the client to have access to the corporate cloud and the internet. Right now only the server machine has access.

已采纳解答

原帖链接 · axus · CC BY-SA 3.0

Your comment says you have a Cisco Rv 320, so I'll give the list of steps for using the GUI interface to configure it with the route to 202.x.x.x through your "Private Cloud Router" address of 10.114.43.49.

You said it is already configured with Internet and DHCP, and clients will receive IP addresses in the 192.168.1.x/24 subnet.

DHCP:

  • In the GUI, click DHCP on the left menu, and confirm it provides the DHCP and DNS settings you'd like.

Add another IP address:

  • In the GUI, click Setup on the left.
  • In the "Multiple Subnet Table", click the "Add" button.
  • Add "10.114.43.55" with subnet "255.255.255.240".
  • Click the "Save" button.

Add the static route:

  • Under Setup, click Advanced Routing
  • Under "Static Routing Table", click the "Add" button.
  • Set "Destination" to 202.0.0.0, "Subnet Mask" to 255.0.0.0, "Default Gateway" to 10.114.43.49, "Hop Count" to 2, and keep the "Interface" as LAN.
  • Click "Save".

All of your clients should get 1 IP address on 192.168.1.x from DHCP, including the Windows Server. They'll only need 1 LAN port and 1 IP address now. Remove any DCHP server from the Windows Server.

https://www.cisco.com/assets/sol/sb/RV320_Emulators/RV320_Emulator_v1.1.0.09/default.htm was used to come up with these steps.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。