获取 IP 网络配置:Get-NetIPConfiguration

获取本地网络配置状况 Get-NetIPConfiguration

Get-NetIPConfiguration


InterfaceAlias       : Ethernet0
InterfaceIndex       : 11
InterfaceDescription : Intel(R) 82574L Gigabit Network Connection
NetProfile.Name      : hxx.tt
IPv4Address          : 192.168.232.10
IPv6DefaultGateway   :
IPv4DefaultGateway   : 192.168.232.2
DNSServer            : ::1
                       192.168.232.2

获取本地网络配置状况 Get-NetIPConfiguration -Detailed

追加 -Detailed 查询详细

Get-NetIPConfiguration -Detailed


ComputerName                          : DC2022
InterfaceAlias                        : Ethernet0
InterfaceIndex                        : 11
InterfaceDescription                  : Intel(R) 82574L Gigabit Network Connection
NetCompartment.CompartmentId          : 1
NetCompartment.CompartmentDescription : Default Compartment
NetAdapter.LinkLayerAddress           : 00-0C-29-D7-48-DD
NetAdapter.Status                     : Up
NetProfile.Name                       : hxx.tt
NetProfile.NetworkCategory            : DomainAuthenticated
NetProfile.IPv6Connectivity           : NoTraffic
NetProfile.IPv4Connectivity           : Internet
IPv6LinkLocalAddress                  : fe80::31a6:1247:ff33:f4d%11
IPv4Address                           : 192.168.232.10
IPv6DefaultGateway                    :
IPv4DefaultGateway                    : 192.168.232.2
NetIPv6Interface.NlMTU                : 1500
NetIPv4Interface.NlMTU                : 1500
NetIPv6Interface.DHCP                 : Enabled
NetIPv4Interface.DHCP                 : Disabled
DNSServer                             : ::1
                                        192.168.232.2

0 条评论

昵称

沙发空缺中,还不快抢~