vmki
user/haslo - root/workshops
interfejsy sieciowe
enp0s3 - host-only, adres z dns-a enp0s8 - NAT
config dla enp0s3:
# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=no
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATA=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.56.101
NETWORK=192.168.56.0
NETMASK=255.255.255.0
GATEWAY=192.168.56.1
config dla enp0s8:
# cat /etc/sysconfig/network-scripts/ifcfg-enp0s8
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="enp0s3"
UUID="d842ded7-33af-4614-be09-adbccaf382b1"
DEVICE="enp0s3"
ONBOOT="yes"
jeżeli nie ma dostępu do internetu sprawdzić i ewentualnie usunąć trase defaultową przez interface host-only
# ip route del default via 192.168.56.1