Merge pull request #894 from xx4h/fix-disable-eth1-dhcp · clong/DetectionLab@a4fd727

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit a4fd727

authored

Merge pull request #894 from xx4h/fix-disable-eth1-dhcp

Make dhcp disable for eth1 working after reboot

2 parents 52d1846 + 0d53248 commit a4fd727

File tree

1 file changed

+

1

-

1

lines changed

1 file changed

+

1

-

1

lines changed

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -95,7 +95,7 @@ fix_eth1_static_ip() {

9595

fi

9696

fi

9797

# TODO: try to set correctly directly through vagrant net config

98-

netplan set ethernets.eth1.dhcp4=false

98+

netplan set --origin-hint 90-disable-eth1-dhcp ethernets.eth1.dhcp4=false

9999

netplan apply

100100
101101

# Fix eth1 if the IP isn't set correctly

0 commit comments

Comments

 (0)