Differences

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

Link to this comparison view

Both sides previous revision Previous revision
commands [2022/11/20 11:18] – [Linux] thomascommands [2022/11/20 11:28] (current) – [Linux] thomas
Line 22: Line 22:
 <code bash> <code bash>
 $ sudo hostnamectl set-hostname <neuer Hostname> $ sudo hostnamectl set-hostname <neuer Hostname>
 +$
 +</code>
 +
 +set static ip
 +
 +<code bash>
 +$ sudo vi /etc/network/interfaces
 +$
 +</code>
 +
 +<code bash /etc/network/interface>
 +# The loopback network interface
 +auto lo
 +iface lo inet loopback
 +
 +# allow-hotplug eno1
 +# iface eno1 inet dhcp
 +
 +# The primary network interface
 +auto eno1
 +iface eno1  inet static
 + address <ip>
 + netmask <netmask>
 + gateway <gateway>
 + dns-domain <domain>
 + dns-nameservers <nameserver>
 +</code>
 +
 +restart network-interface
 +
 +<code bash>
 +$ sudo /etc/init.d/networking restart
 +$
 +</code>
 +
 +<code bash>
 +$ ifconfig eth0 down && ifconfig eth0 up
 +$
 +
 +ODER
 +
 +$ ifdown eth0 && ifup eth0
 $ $
 </code> </code>