Anpassen der Virtuellen Maschinen Netzwerk und Serveradministration DNS: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 1: | Zeile 1: | ||
=Hostname= | =Hostname= | ||
| − | *hostnamectl hostname ns. | + | *hostnamectl hostname ns.it2XX.int |
=Netzwerk= | =Netzwerk= | ||
| Zeile 17: | Zeile 17: | ||
auto enp0s3 | auto enp0s3 | ||
iface enp0s3 inet static | iface enp0s3 inet static | ||
| − | address 10.88. | + | address 10.88.2XX.21/24 |
| − | gateway 10.88. | + | gateway 10.88.2XX.1 |
</pre> | </pre> | ||
| Zeile 24: | Zeile 24: | ||
*vim /etc/resolv.conf | *vim /etc/resolv.conf | ||
nameserver 192.168.Y.88 | nameserver 192.168.Y.88 | ||
| − | search | + | search it2XX.int |
=Hosts= | =Hosts= | ||
*vim /etc/hosts | *vim /etc/hosts | ||
127.0.0.1 localhost | 127.0.0.1 localhost | ||
| − | 127.0.1.1 ns. | + | 127.0.1.1 ns.it2XX.int ns |
# The following lines are desirable for IPv6 capable hosts | # The following lines are desirable for IPv6 capable hosts | ||
| Zeile 42: | Zeile 42: | ||
*vim ~/.ssh/config | *vim ~/.ssh/config | ||
Host ns | Host ns | ||
| − | Hostname 10.88. | + | Hostname 10.88.2XX.21 |
ProxyJump kit@fw | ProxyJump kit@fw | ||
;PubKey Übertragung | ;PubKey Übertragung | ||
Version vom 27. März 2026, 15:22 Uhr
Hostname
- hostnamectl hostname ns.it2XX.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.2XX.21/24 gateway 10.88.2XX.1
Namerserver
- vim /etc/resolv.conf
nameserver 192.168.Y.88 search it2XX.int
Hosts
- vim /etc/hosts
127.0.0.1 localhost 127.0.1.1 ns.it2XX.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.2XX.21 ProxyJump kit@fw
- PubKey Übertragung
- ssh-copy-id ns
Danach könnt ihr euch mit ssh servername passswortlos einlogen
Installation
- apt install bind9