Anpassen des Rocky Templates: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
==Hostname==
+
{{Vorlage:Rocky Setup}}
*hostnamectl hostname <span style="color:red">'''NS'''</span>
 
  
==Netzwerk==
 
nmcli con mod enp0s3 ipv4.addresses <span style="color:red">'''IP/CIDR'''</span>
 
nmcli con mod enp0s3 ipv4.gateway <span style="color:red">'''GW'''</span>
 
nmcli con mod enp0s3 ipv4.dns <span style="color:red">'''NS'''</span>
 
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 <span style="color:red">'''DOM'''</span>
 
nmcli con up enp0s3
 
 
;Hinweis: /etc/resolv.conf wird unter Rocky von NetworkManager automatisch verwaltet – nicht manuell bearbeiten!
 
  
 
=Setup Script=
 
=Setup Script=

Aktuelle Version vom 4. Juli 2026, 15:54 Uhr

Hostname

  • hostnamectl set-hostname FQDN

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 ipv4.dns-search DOM
  • nmcli con mod enp0s3 connection.autoconnect yes
  • nmcli con up enp0s3

Hintergrund

Die Verbindungen findet ihr hier
  • DIR: /etc/NetworkManager/system-connections/
In unserem Fall
  • cat /etc/NetworkManager/system-connections/enp0s3.nmconnection
[connection]
id=enp0s3
uuid=40ff96e5-0c0d-31de-9bf0-f75da265425b
type=ethernet
autoconnect-priority=-999
interface-name=enp0s3
timestamp=1784278716

[ethernet]

[ipv4]
address1=192.168.3.127/24
dns=192.168.20.1;
dns-search=it.int;
gateway=192.168.3.254
method=manual

[ipv6]
addr-gen-mode=eui64
method=auto

[proxy]


Setup Script


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