Hello,
Thank you for posting in Q&A forum.
To enable Internet Connection Sharing (ICS) on Windows Server Core 2016, you can follow the steps below:
1.Use the Win+R shortcut combination to open the run window, type cmd and enter
2.View network interface:
Use the netsh interface show interface command to view the list of network interfaces and determine the interface that you want to share the Internet with (usually the interface that connects to the Internet) and the interface that you want to share (for example, a Wi-Fi or LAN interface).
3.To set up the interface to share:
Suppose your Internet connection interface is Ethernet, and the interface you want to share is Wi-Fi, you need to configure the Wi-Fi interface to share the connection of the Ethernet interface.
Run the netsh wlan set hostednetwork mode=allow ssid=YourSSID key=YourPassword command to set Wi-Fi hotspots. Where YourSSID is the hotspot name you want and YourPassword is the password.
4.To enable Internet connection sharing:
If you are sharing a wired connection and have identified the interface to share, you can use the netsh interface IP set interface "YourInternalInterfaceName admin =" enable the management of the interface to enable state (if not yet enabled). Then, use netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes to enable file and printer sharing rules (although this is not part of ICS, but it may help ensure that sharing works).
5.Configuring routes and NAT:
You may need to use the route and netsh interface ipv4 add nat commands to configure routing and NAT rules so that traffic can be routed from the internal network to the Internet via shared interfaces. This usually involves adding static routes and setting up NAT rules.
6.Verify the configuration:
Once you have completed the configuration, you can use ping, tracert, or other network diagnostic tools to verify that internal clients can access the Internet over a shared connection.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.