Anpassen des Rocky Templates: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „==Hostname== *hostnamectl hostname <span style="color:red">'''NS'''</span> ==Netzwerk== nmcli con mod enp0s3 ipv4.addresses <span style="color:red">'''IP/CID…“)
 
Zeile 20: Zeile 20:
 
*vim /etc/hosts
 
*vim /etc/hosts
 
  127.0.0.1 localhost
 
  127.0.0.1 localhost
127.0.1.1 <span style="color:red">'''FQDN'''</span> <span style="color:red">'''SHORT'''</span>
+
 
 
   
 
   
 
  # The following lines are desirable for IPv6 capable hosts
 
  # The following lines are desirable for IPv6 capable hosts

Version vom 20. April 2026, 09:48 Uhr

Hostname

  • hostnamectl hostname NS

Netzwerk

nmcli con mod enp0s3 ipv4.addresses IP/CIDR
nmcli con mod enp0s3 ipv4.gateway GW
nmcli con mod enp0s3 ipv4.dns NS
nmcli con mod enp0s3 ipv4.method manual
nmcli con mod enp0s3 connection.autoconnect yes
nmcli con up enp0s3

Nameserver & Suchdomain

Der DNS wird bereits über nmcli gesetzt. Suchdomain ergänzen:

nmcli con mod enp0s3 ipv4.dns-search DOM
nmcli con up enp0s3
Hinweis
/etc/resolv.conf wird unter Rocky von NetworkManager automatisch verwaltet – nicht manuell bearbeiten!

Hosts

  • vim /etc/hosts
127.0.0.1	localhost


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

Reboot

  • systemctl reboot

JumpHost

Auf dem KIT Host anfügen
  • vim ~/.ssh/config
Host SHORT
 Hostname IP
 ProxyJump kit@fw
PubKey Übertragung
  • ssh-copy-id SHORT

Danach könnt ihr euch mit ssh SHORT passswortlos einloggen