Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

set ip and name in linux

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
     dhcp4: no
     addresses: [192.168.2.2/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]
Source by danielmiessler.com #
 
PREVIOUS NEXT
Tagged: #set #ip #linux
ADD COMMENT
Topic
Name
2+9 =