Jc.IP 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Jc.IP --version 1.0.3                
NuGet\Install-Package Jc.IP -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jc.IP" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jc.IP --version 1.0.3                
#r "nuget: Jc.IP, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jc.IP as a Cake Addin
#addin nuget:?package=Jc.IP&version=1.0.3

// Install Jc.IP as a Cake Tool
#tool nuget:?package=Jc.IP&version=1.0.3                

Jc.IP

获取网卡信息
    /// <summary>
    /// 获取网卡信息
    /// </summary>
    public static List<AdapterInfo> GetAdapters()
获取IP地址列表
    /// <summary>
    /// 获取IP地址信息
    /// </summary>
    /// <param name="family">寻址方案(https://docs.microsoft.com/zh-cn/dotnet/api/system.net.sockets.addressfamily?view=net-6.0)</param>
    /// <param name="containLoop">是否包含回环地址</param>
    /// <returns></returns>
    public static List<IpInfo> GetLocalIp(AddressFamily? family=AddressFamily.InterNetwork, bool containLoop = false)
设置CentosIP
    /// <summary>
    /// 设置Centos的IP信息
    /// </summary>
    /// <param name="networkInterfaceName">网卡名称</param>
    /// <param name="bootproto">网络模式(static|dhcp)</param>
    /// <param name="ip">ip地址</param>
    /// <param name="mask">子网掩码</param>
    /// <param name="gateway">网关</param>
    /// <param name="dns1">dns1</param>
    /// <returns></returns>
    /// <exception cref="Exception"></exception>
    public static bool SetCentos(
        string networkInterfaceName,
        string bootproto,
        string ip,
        string mask,
        string gateway,
        string dns1)
设置WindowsIP
    /// <summary>
    /// 设置Windows的IP信息
    /// </summary>
    /// <param name="networkInterfaceName"></param>
    /// <param name="bootproto"></param>
    /// <param name="ip"></param>
    /// <param name="mask"></param>
    /// <param name="gateway"></param>
    /// <param name="dns1">dns1</param>
    /// <returns></returns>
    public static bool SetWindows(
        string networkInterfaceName,
        string bootproto,
        string ip,
        string mask,
        string gateway,
        string dns1)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Jc.IP:

Package Downloads
YTKTestToolExt

益体康测试工程文件生成插件

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 88 10/12/2024
1.0.3 93 10/12/2024
1.0.2-preview2 188 4/8/2022
1.0.2-preview 176 4/7/2022
1.0.1 599 4/6/2022
1.0.1-preview.1.0.1 132 4/7/2022