CentOS7 VM setup

VirtualBoXでCentOS7の環境を作ります。

アダプタ1 NAT

アダプタ2 ホストオンリーアダプタ プロミスキャスモード すべて許可

iso: CentOS-7-x86_64-Minimal-1804.iso

# ifup enp0s3
# ifup enp0s8
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:6c:47:40 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global noprefixroute dynamic enp0s3
       valid_lft 86346sec preferred_lft 86346sec
    inet6 fe80::4f70:ffce:cd5a:b691/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:ea:0a:4c brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.101/24 brd 192.168.56.255 scope global noprefixroute dynamic enp0s8
       valid_lft 1163sec preferred_lft 1163sec
    inet6 fe80::eda3:db0e:13b0:a61f/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
# yum -y update