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

windows: Cannot support wireless adapters in the v0.7.1 #3986

Closed
lolieatcat opened this issue Mar 15, 2018 · 4 comments
Closed

windows: Cannot support wireless adapters in the v0.7.1 #3986

lolieatcat opened this issue Mar 15, 2018 · 4 comments

Comments

@lolieatcat
Copy link

Nomad version

Nomad v0.7.1 (0b295d3)

Operating system and Environment details

Windows 7 Ultimate sp1
Thinkpad T450

Issue

It reports an error:
No default interface found with matching IP.

I look up the source code in Git. And I find those code in the ifaddrs.go file. line 19.
var (
// Centralize all regexps and regexp.Copy() where necessary.
signRE *regexp.Regexp = regexp.MustCompile(^[\s]*[+-])
whitespaceRE *regexp.Regexp = regexp.MustCompile([\s]+)
ifNameRE *regexp.Regexp = regexp.MustCompile(^Ethernet adapter ([^:]+):)
ipAddrRE *regexp.Regexp = regexp.MustCompile(^ IPv[46] Address\. \. \. \. \. \. \. \. \. \. \. : ([^\s]+))
)

It looks not a good Regexp of ifNameRE. My adapter name is: Wireless LAN adapter wifi.

But, it is good in the version of Nomad v0.6.3.

That's all.

@schmichael schmichael changed the title Can not support wireless adapters in the 0.7.1 version. windows: Cannot support wireless adapters in the v0.7.1 Mar 15, 2018
@schmichael
Copy link
Member

schmichael commented Mar 15, 2018

Thanks for the report! Added an issue to the library that detects adapters (hashicorp/go-sockaddr#20). We'll close both issues when it's fixed and pulled into Nomad.

@schmichael
Copy link
Member

Can you post your full output of ipconfig so we're sure to test against it?

@lolieatcat
Copy link
Author

Windows IP Configuration

Wireless LAN adapter wifi:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::3110:eaca:23d7:b9ac%14
IPv4 Address. . . . . . . . . . . : 172.20.10.5
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Default Gateway . . . . . . . . . : 172.20.10.1

Ethernet adapter 本地连接 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6069:41f9:ea44:7a8b%18
IPv4 Address. . . . . . . . . . . : 192.168.249.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6846:4948:d165:67d8%19
IPv4 Address. . . . . . . . . . . : 192.168.198.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Tunnel adapter isatap.{EBACA806-1326-447F-96A0-465285B91CD1}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{45830FF1-D3E8-4C59-B6F7-24660FE3D3D7}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{FF9F237C-4A0A-450B-95FA-CB8E92FC4AA9}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

@github-actions
Copy link

github-actions bot commented Dec 1, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants