Site Tools


linux:general:network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:general:network [2019/04/16 14:19] lunetikklinux:general:network [2021/08/30 22:42] lunetikk
Line 80: Line 80:
 </code> </code>
  
-==== Change your IP (Ubuntu) ====+==== Change your IP (Ubuntu < 16) ====
  
 Edit /etc/network/interfaces: Edit /etc/network/interfaces:
Line 103: Line 103:
 <code> <code>
 ifdown eth0 && ifup eth0 ifdown eth0 && ifup eth0
 +</code>
 +
 +==== Change your IP (Ubuntu > 16) ====
 +
 +Edit /etc/netplan/01-netcfg.yaml:
 +<code>
 +sudo vi /etc/netplan/01-netcfg.yaml
 +</code>
 +and add
 +<code>
 +network:
 +  version: 2
 +  renderer: networkd
 +  ethernets:
 +    ens3:
 +      dhcp4: no
 +      addresses:
 +        - 10.0.0.2/8
 +      gateway4: 10.0.0.1
 +      nameservers:
 +          addresses: [8.8.8.8, 8.8.4.4]
 +</code>
 +Apply the new IP config
 +<code>
 +sudo netplan apply
 </code> </code>
  
Line 194: Line 219:
  
 </code> </code>
-{{:linux:general:pasted:20190416-135948.png?200}} +bmon: {{:linux:general:pasted:20190416-135948.png?400}} 
-{{:linux:general:pasted:20190416-141118.png?200}} + 
-{{:linux:general:pasted:20190416-141355.png?200}} +tcptrack: {{:linux:general:pasted:20190416-141118.png?400}} 
-{{:linux:general:pasted:20190416-141728.png?200}} + 
-{{:linux:general:pasted:20190416-141835.png?200}}+nload: {{:linux:general:pasted:20190416-141355.png?400}} 
 + 
 +iftop: {{:linux:general:pasted:20190416-141728.png?400}} 
 + 
 +ethstatus: {{:linux:general:pasted:20190416-141835.png?400}}
 ==== Troubleshooting ==== ==== Troubleshooting ====
  
linux/general/network.txt · Last modified: 2022/12/16 10:51 by lunetikk