Files
2026-03-01 01:43:46 +08:00

1.5 KiB
Raw Permalink Blame History

任务

  • 开发:IBS 7.17.0 版本需求开发。(完成冒烟自测)
  • 割接:IBS 7.16.0-fix 验证用例。
  • 测试:前这个企业是有 配置管理 按钮的,我今天打开不知道为啥没了。

日志

Get-NetAdapter -IncludeHidden | Sort-Object ifIndex | Format-Table ifIndex, Name, InterfaceDescription, Status, MacAddress, LinkSpeed -AutoSize

Get-DnsClientServerAddress -AddressFamily IPv4 | Sort-Object InterfaceIndex | Format-Table InterfaceIndex, InterfaceAlias, ServerAddresses -AutoSize  
Get-DnsClientServerAddress -AddressFamily IPv6 | Sort-Object InterfaceIndex | Format-Table InterfaceIndex, InterfaceAlias, ServerAddresses -AutoSize

Get-NetIPConfiguration | Sort-Object InterfaceIndex | Select-Object InterfaceIndex, InterfaceAlias, @{n='IPv4GW';e={$_.IPv4DefaultGateway.NextHop}}, @{n='IPv6GW';e={$_.IPv6DefaultGateway.NextHop}} | Format-Table -AutoSize

把下面命令里的 <IFINDEX> 换成你在第 1 步看到的公司网卡 ifIndex
Get-CimInstance -Namespace root/StandardCimv2 -ClassName MSFT_NetAdapter -Filter "InterfaceIndex=IFINDEX" | Format-List InterfaceIndex, Name, InterfaceDescription, Status, HardwareInterface, NdisInterfaceType, InterfaceType, DriverDescription

Get-NetRoute -AddressFamily IPv4 -DestinationPrefix 0.0.0.0/0 | Sort-Object RouteMetric, ifIndex | Format-Table ifIndex, InterfaceAlias, NextHop, RouteMetric, PolicyStore -AutoSize




总结

不理解 singbox 的规则。