-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
communityIssue created by OpenNebula CommunityIssue created by OpenNebula Community
Description
Problem
The DNS and default route are not announced
To reproduce
- Configure 2 networks
AandB, - Start a virtual router
- plug first interface to network
A - plug second interface to network
B - enable DHCPv4
- set DHCP on interface
eth1 - enable DNS
- set DNS on interface
eth1 - start the router
- plug first interface to network
DHCPv4 configuration
/etc/one-appliance/service.d/VRouter/DHCP4v2/coredhcp-onelease/onelease-config.yml
---
eth1:
server4:
listen:
- "%eth1"
plugins:
- lease_time: 3600s
- server_id: 10.4.2.100
- mtu: 1500
- netmask: 255.0.0.0
- onelease: leases-eth1.sqlite3 10.0.0.2 10.255.255.254 3600s --excluded-ips 10.4.2.100
--mac2ip --mac2ip-prefix 02:00Proposal
When DHCP is enabled:
- the
ONEAPP_VNF_DHCP4_GATEWAYshould default to the router interface on the network - the
ONEAPP_VNF_DHCP4_DNSshould default to the router interface on the network ifONEAPP_VNF_DNS_ENABLEDisYES
Workaround
Set ONEAPP_VNF_DHCP4_GATEWAY and ONEAPP_VNF_DHCP4_DNS manually after the router is started which result in the following configuration
/etc/one-appliance/service.d/VRouter/DHCP4v2/coredhcp-onelease/onelease-config.yml
---
eth1:
server4:
listen:
- "%eth1"
plugins:
- lease_time: 3600s
- server_id: 10.4.2.100
- dns: 10.4.2.100
- mtu: 1500
- router: 10.4.2.100
- netmask: 255.0.0.0
- onelease: leases-eth1.sqlite3 10.0.0.2 10.255.255.254 3600s --excluded-ips 10.4.2.100
--mac2ip --mac2ip-prefix 02:00Diff between default and modified configuration
--- /etc/one-appliance/service.d/VRouter/DHCP4v2/coredhcp-onelease/onelease-config.yml.orig
+++ /etc/one-appliance/service.d/VRouter/DHCP4v2/coredhcp-onelease/onelease-config.yml
@@ -6,7 +6,9 @@
plugins:
- lease_time: 3600s
- server_id: 10.4.2.100
+ - dns: 10.4.2.100
- mtu: 1500
+ - router: 10.4.2.100
- netmask: 255.0.0.0
- onelease: leases-eth1.sqlite3 10.0.0.2 10.255.255.254 3600s --excluded-ips 10.4.2.100
--mac2ip --mac2ip-prefix 02:00
Metadata
Metadata
Assignees
Labels
communityIssue created by OpenNebula CommunityIssue created by OpenNebula Community