update startup script and change netplan to true. (#1201)

Co-authored-by: Daniel Hansson <github@hanssonit.se>
Co-authored-by: AmirHossein Goodarzi <a.goodarzi@alibaba.ir>
This commit is contained in:
AmirHossein Goodarzi 2020-05-04 20:17:25 +04:30 committed by GitHub
parent 9e73a372d9
commit 49757254ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -76,8 +76,8 @@ network:
renderer: networkd
ethernets:
$IFACE:
dhcp4: yes
dhcp6: yes
dhcp4: true
dhcp6: true
SETDHCP
check_command netplan apply
print_text_in_color "$ICyan" "Checking connection..."

View File

@ -113,8 +113,8 @@ network:
renderer: networkd
ethernets:
$IFACE: #object name
dhcp4: no # dhcp v4 disable
dhcp6: no # dhcp v6 disable
dhcp4: false # dhcp v4 disable
dhcp6: false # dhcp v6 disable
addresses: [$LANIP] # client IP address
gateway4: $GATEWAYIP # gateway address
nameservers:
@ -132,8 +132,8 @@ network:
renderer: networkd
ethernets:
$IFACE2: #object name
dhcp4: no # dhcp v4 disable
dhcp6: no # dhcp v6 disable
dhcp4: false # dhcp v4 disable
dhcp6: false # dhcp v6 disable
addresses: [$ADDRESS/24] # client IP address
gateway4: $GATEWAY # gateway address
nameservers: