Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Active Interface Issue #32

Open
LiveAction-SunArc-Op opened this issue Aug 10, 2018 · 3 comments
Open

Get Active Interface Issue #32

LiveAction-SunArc-Op opened this issue Aug 10, 2018 · 3 comments

Comments

@LiveAction-SunArc-Op
Copy link

I was on WiFi Network in my Windows 10, get active interface returns the Ethernet interface instead of WiFi interface.

@tomas
Copy link
Owner

tomas commented Aug 10, 2018

Care to submit a PR? :)

@LiveAction-SunArc-Op
Copy link
Author

D:\Development\test-network>network active_interface
{ name: 'Ethernet 2',
mac_address: '00:05:9A:3C:7A:00',
ip_address: '10.1.192.36',
vendor: 'Cisco Systems',
model: 'Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null }

@LiveAction-SunArc-Op
Copy link
Author

D:\Development\test-network>network interfaces_list
[ { name: 'Ethernet 2',
mac_address: '00:05:9A:3C:7A:00',
ip_address: '10.1.192.36',
vendor: 'Cisco Systems',
model: 'Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null },
{ name: 'VirtualBox Host-Only Network',
mac_address: '0A:00:27:00:00:0A',
ip_address: '192.168.56.1',
vendor: 'Oracle Corporation',
model: 'VirtualBox Host-Only Ethernet Adapter',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null },
{ name: 'VirtualBox Host-Only Network #2',
mac_address: '0A:00:27:00:00:14',
ip_address: '192.168.99.1',
vendor: 'Oracle Corporation',
model: 'VirtualBox Host-Only Ethernet Adapter',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null },
{ name: 'Wi-Fi',
mac_address: 'A8:6B:AD:57:ED:DB',
ip_address: '192.168.0.112',
vendor: 'Qualcomm Communications Inc.',
model: 'Qualcomm QCA61x4A 802.11ac Wireless Adapter',
type: 'Wireless',
netmask: '255.255.255.0',
gateway_ip: '192.168.0.1' },
{ name: 'Ethernet',
mac_address: '98:40:BB:3F:CC:76',
ip_address: undefined,
vendor: 'Realtek',
model: 'Realtek PCIe GBE Family Controller',
type: 'Wired',
netmask: null,
gateway_ip: null },
{ name: 'VMware Network Adapter VMnet1',
mac_address: '00:50:56:C0:00:01',
ip_address: '192.168.91.1',
vendor: 'VMware, Inc.',
model: 'VMware Virtual Ethernet Adapter for VMnet1',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null },
{ name: 'VMware Network Adapter VMnet8',
mac_address: '00:50:56:C0:00:08',
ip_address: '192.168.252.1',
vendor: 'VMware, Inc.',
model: 'VMware Virtual Ethernet Adapter for VMnet8',
type: 'Wired',
netmask: '255.255.255.0',
gateway_ip: null },
{ name: 'vEthernet (Default Switch)',
mac_address: 'AE:15:9B:ED:5F:4F',
ip_address: '172.29.31.145',
vendor: 'Microsoft',
model: 'Hyper-V Virtual Ethernet Adapter',
type: 'Wired',
netmask: '255.255.255.240',
gateway_ip: null },
{ name: 'vEthernet (nat)',
mac_address: '00:15:5D:20:11:22',
ip_address: '172.19.16.1',
vendor: 'Microsoft',
model: 'Hyper-V Virtual Ethernet Adapter',
type: 'Wired',
netmask: '255.255.240.0',
gateway_ip: null } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants