Add netplan-static-ip
This commit is contained in:
commit
65265c25aa
22
netplan-static-ip
Normal file
22
netplan-static-ip
Normal file
@ -0,0 +1,22 @@
|
||||
#network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
enp0s3:
|
||||
dhcp4: false
|
||||
dhcp6: false
|
||||
addresses:
|
||||
- 192.168.1.122/24
|
||||
routes:
|
||||
- to: default
|
||||
via: 192.168.1.1
|
||||
nameservers:
|
||||
addresses: [8.8.8.8,8.8.4.4]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###########
|
||||
|
||||
Check network adaptor name and make sure it is correct for the adaptor
|
||||
Loading…
x
Reference in New Issue
Block a user