Skip to content

Commit

Permalink
network: disable interface=lo when start dnsmasq for bond-with-dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei authored and cgwalters committed Sep 7, 2022
1 parent a45bfbb commit a1d59bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mantle/kola/tests/misc/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ var (
# Run a dnsmasq service on the network_namespace, to set the host-side veth ends a ip via their MAC addresses
echo -e "dhcp-range=192.168.0.50,192.168.0.60,255.255.255.0,12h\ndhcp-host=${primary_mac},${primary_ip}\ndhcp-host=${secondary_mac},${secondary_ip}" > /etc/dnsmasq.d/dhcp
ip netns exec ${network_namespace} dnsmasq &
# Disable interface=lo as new dnsmasq version has it by default
ip netns exec ${network_namespace} dnsmasq --except-interface=lo --bind-interfaces -u dnsmasq -g dnsmasq --conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig --conf-file=/dev/null &
# Tell NM to manage the "veth-host" interface and bring it up (will attempt DHCP).
# Do this after we start dnsmasq so we don't have to deal with DHCP timeouts.
Expand Down

0 comments on commit a1d59bd

Please sign in to comment.