1. 程式人生 > >virtualbox 最小化安裝centos7 配置雙網絡卡(nat和橋接)記錄----已經過期

virtualbox 最小化安裝centos7 配置雙網絡卡(nat和橋接)記錄----已經過期

[[email protected] ~]# ip addr show 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: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000     link/ether 08:00:27:61:5e:3e brd ff:ff:ff:ff:ff:ff     inet 172.18.6.198/22 brd 172.18.7.255 scope global dynamic enp0s8        valid_lft 3096sec preferred_lft 3096sec     inet6 fe80::b259:4893:4bc4:93c1/64 scope link         valid_lft forever preferred_lft forever [
[email protected]
~]# ping -c4 www.baidu.com PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data. 64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=1 ttl=56 time=4.74 ms 64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=2 ttl=56 time=3.67 ms 64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=3 ttl=56 time=5.50 ms 64 bytes from 61.135.169.125 (61.135.169.125): icmp_seq=4 ttl=56 time=3.44 ms --- www.a.shifen.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3011ms rtt min/avg/max/mdev = 3.447/4.343/5.502/0.832 ms