Anpassen der Virtuellen Maschinen Netzwerk und Serveradministration DNS: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Hostname= *hostnamectl hostname ns.it1XX.int =Netzwerk= *cat /etc/network/interfaces <pre> # This file describes the network interfaces available on your sys…“)
 
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
  
 
=Netzwerk=
 
=Netzwerk=
*cat /etc/network/interfaces
+
*vim /etc/network/interfaces
 
<pre>
 
<pre>
 
# This file describes the network interfaces available on your system
 
# This file describes the network interfaces available on your system
Zeile 17: Zeile 17:
 
auto enp0s3
 
auto enp0s3
 
iface enp0s3 inet static  
 
iface enp0s3 inet static  
  address 10.88.1XX.2/24
+
  address 10.88.1XX.21/24
 
  gateway 10.88.1XX.1
 
  gateway 10.88.1XX.1
 
</pre>
 
</pre>
 +
 
=Namerserver=
 
=Namerserver=
*cat /etc/resolv.conf  
+
*vim /etc/resolv.conf  
  nameserver 1.1.1.1
+
  nameserver 192.168.5.88
 
  search it1XX.int
 
  search it1XX.int
  
 
=Hosts=
 
=Hosts=
*cat /etc/hosts
+
*vim /etc/hosts
 
  127.0.0.1 localhost
 
  127.0.0.1 localhost
 
  127.0.1.1 ns.it1XX.int ns
 
  127.0.1.1 ns.it1XX.int ns
Zeile 34: Zeile 35:
 
  ff02::1 ip6-allnodes
 
  ff02::1 ip6-allnodes
 
  ff02::2 ip6-allrouters
 
  ff02::2 ip6-allrouters
 +
 
=Reboot=
 
=Reboot=
 
*systemctl reboot
 
*systemctl reboot
 
=JumpHost=
 
=JumpHost=
 
;Auf dem KIT Host anfügen
 
;Auf dem KIT Host anfügen
*vi ~/.ssh/config
+
*vim ~/.ssh/config
 
  Host ns
 
  Host ns
   Hostname 10.88.1XX.2
+
   Hostname 10.88.1XX.21
 
   ProxyJump kit@fw
 
   ProxyJump kit@fw
 
;PubKey Übertragung
 
;PubKey Übertragung
 
*ssh-copy-id ns
 
*ssh-copy-id ns
 
Danach könnt ihr euch mit '''ssh servername''' passswortlos einlogen
 
Danach könnt ihr euch mit '''ssh servername''' passswortlos einlogen
 +
==Installation==
 +
*apt install bind9

Aktuelle Version vom 22. Juli 2025, 13:32 Uhr

Hostname

  • hostnamectl hostname ns.it1XX.int

Netzwerk

  • vim /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.21/24
 gateway 10.88.1XX.1

Namerserver

  • vim /etc/resolv.conf
nameserver 192.168.5.88
search it1XX.int

Hosts

  • vim /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

Reboot

  • systemctl reboot

JumpHost

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

Danach könnt ihr euch mit ssh servername passswortlos einlogen

Installation

  • apt install bind9