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

network configuration issue #4

Open
rajnathsah opened this issue Oct 27, 2021 · 3 comments
Open

network configuration issue #4

rajnathsah opened this issue Oct 27, 2021 · 3 comments

Comments

@rajnathsah
Copy link

I tried network configuration for newly created centos vm, but machine is not accessible outside using ip. On debugging i found, though gateway is getting updated in configuration of centos but when i opened graphical interface, i found gateway is blank.

Below is part of yml file which i am using

- name: Configure VMs IP
  win_hyperv_guest_config_net:
    name: test.example.com
    ip: "172.23.77.146" 
    netmask: "255.255.248.0"
    gateway: "172.23.72.1"
    dns: "172.23.78.176,172.23.78.177"
    type: static 
@rajnathsah
Copy link
Author

Issue with network configuration is because of ip address getting updated in below format.

IPADDR0=172.23.77.1
NETMASK0=255.255.248.0
GATEWAY=172.23.72.1

Here ap address got updated to IPADDR0 and netmask to NETMASK0 but gateway got updated to GATEWAY.
Now in order to make it work, if i manually updare GATEWAY TO GATEWAY0 then it works or if i remove zero from other two. Not sure why this issue is there but if there is any clue to fix this issue then that would be helpful.

@Perfect10NickTailor
Copy link

I had the same issue. The reason why the machine is not accessible is because under networking the vlan tag id is not enabled or and the tag is not defined without this the network will be unreachable.

Someone need to add this

@Perfect10NickTailor
Copy link

its an easy fix

add a task in the provisiong code to set the vlanid using the win_shell module.

Cheers

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