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

Default gateway is assumed when missing #78

Open
OpenNebulaSupport opened this issue Apr 10, 2024 · 0 comments
Open

Default gateway is assumed when missing #78

OpenNebulaSupport opened this issue Apr 10, 2024 · 0 comments
Labels
category: context windows Windows OS contextualization packages sponsored This issue is sponsored by user or company status: accepted The issue is valid and will be planned for fix or implementation type: bug Something isn't working
Milestone

Comments

@OpenNebulaSupport
Copy link

If a VM has no gateway defined on its NIC configuration, then the gateway is assumed as the .1 number of the last 8 bits of the IP address.

To reproduce

[oneadmin@alma8-context-kvm-6-9-jnks275-0 readiness]$ ssh "192.168.150.100"
Microsoft Windows [Version 10.0.20348.1]
(c) Microsoft Corporation. All rights reserved.

oneadmin@WIN-662E6H8G00Q C:\Users\oneadmin>ipconfig

Windows IP Configuration


Ethernet adapter Ethernet Instance 0 2:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2001:db8::c0ff:fea8:9664
   IPv6 Address. . . . . . . . . . . : fd00::c0ff:fea8:9664
   Link-local IPv6 Address . . . . . : fe80::c0ff:fea8:9664%6
   IPv4 Address. . . . . . . . . . . : 192.168.150.100
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 2001:db8::1
                                       192.168.150.1

oneadmin@WIN-662E6H8G00Q C:\Users\oneadmin>exit
Connection to 192.168.150.100 closed.
[oneadmin@alma8-context-kvm-6-9-jnks275-0 readiness]$ onevm show 7 -j | jq .VM.TEMPLATE.CONTEXT.ETH0_GATEWAY
""
[oneadmin@alma8-context-kvm-6-9-jnks275-0 readiness]$ onevm show 7 -j | jq .VM.TEMPLATE.CONTEXT.ETH0_IP
"192.168.150.100"

Culprit

@dann1 dann1 added type: bug Something isn't working category: context windows Windows OS contextualization packages status: accepted The issue is valid and will be planned for fix or implementation sponsored This issue is sponsored by user or company labels Apr 10, 2024
@rsmontero rsmontero added this to the Release 6.10.0 milestone Apr 19, 2024
@dcarracedo dcarracedo modified the milestones: Release 6.10.1, Release 7.0 Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: context windows Windows OS contextualization packages sponsored This issue is sponsored by user or company status: accepted The issue is valid and will be planned for fix or implementation type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants