How to set nova network gateway and dns
In nova-network, I created a network
nova network-create demo-net --bridge br100 --multi-host T --fixed-range-v4 192.168.1.0/24 --gateway=192.168.1.254 --dns1=4.2.2.2 --dns2=4.2.2.1.
When I checked the network configuration:
nova network-show demo-net.
It showed gateway and DNS as what I set:
gateway=192.168.1.254
dns1=4.2.2.2
dns2=4.2.2.1
I also set the nova.conf on compute node:
dns_server = 4.2.2.2,
dns_server = 4.2.2.1,
gateway = 192.168.1.254
But when an instance is created, the gateway is 192.168.1.1, dns is also 192.168.1.1.
How to set the nova network using specific gateway and dns?
Thanks, Steve
Could you provide the document to setup dnsmasq for instances using cloud init in nova network