-
Notifications
You must be signed in to change notification settings - Fork 462
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
Can not assign address to interface connected to isolated network #500
Comments
@grzeniek you will have more infos on this issue on this comment : #441 (comment) hope it helps! 🌻 |
Hi, thanks for info. As I understood enabling dhcp on network net-01 should fix my problem? So I've tried this (enabling dhcp on net-01) but I couldn't get static assigned ip address on interface, it got assigned from dhcp server. |
@grzeniek May be I am missing something, but, how would configuring a static IP address from outside the VM, without assistance of the operating system network configuration, and without DHCP work? |
I thought it is possible to assign static address through 'addresses' option in network_interface definition. Now I'm doing this through cloud-init. |
@MalloZup As far as I understood from the last converstation, static IP assignment is not still available for private virtual networks, right? I'm not talking about dhcp, just assign an address the the desired network interface for this domain. As vagrant does for example (check static ip): |
moving this feature in project plaining. We might need to investigate on it after 0.60 release |
What came of this problem? I'm facing the same issue on following environment.
|
func HasDHCP(net libvirtxml.Network) bool {
if net.Forward != nil {
if net.Forward.Mode == "nat" || net.Forward.Mode == "route" || net.Forward.Mode == "" {
return true
}
}
return false
} In isolated network, Forward is nil. Because of this, it is Can not assign fixed address by DHCP when I think following fixes are needed. func HasDHCP(net libvirtxml.Network) bool {
if net.Forward != nil {
if net.Forward.Mode == "nat" || net.Forward.Mode == "route" || net.Forward.Mode == "" {
return true
}
+ } else {
+ // isolated network
+ return true
}
return false
} |
Version Reports:
Distro version of host:
Fedora 29
Terraform Version Report
Terraform v0.11.10
Provider and libvirt versions
If that gives you "was not built correctly", get the Git commit hash from your local provider repository:
Description of Issue/Question
When creating new isolated network of type 'none' and assigning interface to it with static address, this address is not assigned to interface.
Setup
The text was updated successfully, but these errors were encountered: