Now set the IPv6 address to 2001:db8:0:10::2 by using the following command. Next, set the static IPv4 address to 192.168.10.2 by using the following command. The Set-NetIPInterface cmdlet is a quiet cmdlet that doesn’t return anything by default, so I added the -PassThru parameter to have it report back on the status of the IP interface. Set-NetIPInterface -InterfaceAlias “10 Network” -DHCP Disabled -PassThru To disable DHCP on the 10 Network adapter, use the following command. For the lab network used in this book, I have chosen 192.168.10.0/24 as the IPv4 subnet, and 2001:db8:0:10::/64 as the IPv6 subnet. To set a fixed IP address for this first domain controller in the forest, you need to first disable Dynamic Host Configuration Protocol (DHCP) and then set the IPv4 and IPv6 addresses. Get-NetAdapter | Get-Member Set a fixed IP address To view all the properties and the actions associated with Get-NetAdapter, use the following. The default output from Get-NetAdapter uses the Name column for the InterfaceAlias property and the ifIndex column for the InterfaceIndex property. Get-NetAdapter Name InterfaceDescription ifIndex Status MacAddress LinkSpeed To determine the interface alias and interface index, use the Get-NetAdapter cmdlet. The interface alias corresponds to the name shown in the Network Connections dialog box (ncpa.cpl). Get the adapter alias and indexīefore you can configure new settings for a network adapter, you need to know either the adapter’s interface alias (name) or interface index. Setting a fixed IP address for a computer requires four commands-one to get the name and index of the network adapter you’re setting to a fixed IP address, and three to configure the settings for that adapter. You can configure the server’s name before the IP address, but when you do, it costs an extra reboot because the name change requires a reboot, so I like to do the IP address first.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |