# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
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 qlen 1000
link/ether 08:00:27:9b:a9:5d brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
valid_lft 82686sec preferred_lft 82686sec
inet6 fe80::e67d:e2cc:d14:4429/64 scope link
valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:23:b0:82 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.101/24 brd 192.168.56.255 scope global dynamic enp0s8
valid_lft 1127sec preferred_lft 1127sec
inet6 fe80::419d:8702:9ff5:ee50/64 scope link
valid_lft forever preferred_lft forever
# service network status
Configured devices:
lo enp0s3
Currently active devices:
lo enp0s3 enp0s8
centos7, 在 virtualBox 里开了 NAT 和 Host-only Adapter
/etc/sysconfig/network-scripts 下面只有 ifcfg-enp0s3 没有 ifcfg-enp0s8 , 但是 enp0s8 目前是可用的,这是怎么回事?
是否需要添加 enp0s8 的配置文件?官方文档说这个目录下的配置不建议手动修改,那么要通过哪个工具呢?
Ubuntu 的 /etc/network/interfaces 在 centos7 下对应的是哪个配置?
谢谢