Anpassen der Virtuellen Maschinen Netzwerk und Serveradministration

Aus Xinux Wiki
Version vom 4. März 2025, 14:43 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Hostname= *hostnamectl set-hostname ns.it113.int =Netzwerk= *cat /etc/network/interfaces <pre> # This file describes the network interfaces available on your…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Hostname

  • hostnamectl set-hostname ns.it113.int

Netzwerk

  • cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static 
 address 10.88.1XX.2/24
 gateway 10.88.1XX.1

Namerserver

  • cat /etc/resolv.conf
nameserver 192.168.5.14
search it1XX.int

Hosts

  • cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	ns.it1XX.int ns

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters