-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
Description
What happened?
When salt.utils.win_network uses WMI to get network interface information, it returns the gateway address as the broadcast address:
For example in this output from network.interfaces:
test-host:
vmxnet3 Ethernet Adapter:
----------
hwaddr:
00:50:56:83:11:D5
inet:
|_
----------
address:
10.153.30.240
broadcast:
10.153.31.240
label:
vmxnet3 Ethernet Adapter
netmask:
255.255.252.0
up:
True
The address 10.153.31.240 obviously can't be the broadcast address, but is actually the gateway address:
>ipconfig /all
Ethernet-Adapter Ethernet:
Verbindungsspezifisches DNS-Suffix:
Beschreibung. . . . . . . . . . . : vmxnet3 Ethernet Adapter
Physische Adresse . . . . . . . . : 00-50-56-83-11-D5
DHCP aktiviert. . . . . . . . . . : Nein
Autokonfiguration aktiviert . . . : Ja
IPv4-Adresse . . . . . . . . . . : 10.153.30.240(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.252.0
Standardgateway . . . . . . . . . : 10.153.31.240
DNS-Server . . . . . . . . . . . : 10.153.31.42
NetBIOS über TCP/IP . . . . . . . : Aktiviert
So the expected output of network.interfaces would be:
test-host:
----------
vmxnet3 Ethernet Adapter:
----------
hwaddr:
00:50:56:83:11:D5
inet:
|_
----------
address:
10.153.30.240
gateway:
10.153.31.240
label:
vmxnet3 Ethernet Adapter
netmask:
255.255.252.0
up:
True
Type of salt install
Official msi
Major version
3006.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
windows-2016
salt --versions-report output
Salt Version:
Salt: 3006.19
Python Version:
Python: 3.10.19 (heads/main:bdd4336, Jan 7 2026, 23:43:08) [MSC v.1944 64 bit (AMD64)]
Dependency Versions:
cffi: 2.0.0
cherrypy: 18.6.1
cryptography: 42.0.5
dateutil: 2.8.1
docker-py: Not Installed
gitdb: 4.0.7
gitpython: Not Installed
Jinja2: 3.1.6
libgit2: Not Installed
looseversion: 1.0.2
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 24.0
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.19.1
pygit2: Not Installed
python-gnupg: 0.4.8
PyYAML: 6.0.1
PyZMQ: 25.0.2
relenv: 0.22.2
smmap: 4.0.0
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist:
locale: utf-8
machine: AMD64
release: 2016Server
system: Windows
version: 2016Server 10.0.14393 SP0 Multiprocessor FreeReactions are currently unavailable