{"id":119910,"date":"2018-09-16T08:13:58","date_gmt":"2018-09-16T00:13:58","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=119910"},"modified":"2018-09-07T15:30:07","modified_gmt":"2018-09-07T07:30:07","slug":"ubuntu-add-secondary-ip","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-add-secondary-ip.html","title":{"rendered":"\u5728Ubuntu\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u8f85\u52a9IP"},"content":{"rendered":"
Linux \u7ba1\u7406\u5458\u5e94\u8be5\u610f\u8bc6\u5230\u8fd9\u4e00\u70b9\uff0c\u56e0\u4e3a\u8fd9\u662f\u4e00\u9879\u4f8b\u884c\u4efb\u52a1\u3002\u5f88\u591a\u4eba\u60f3\u77e5\u9053\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u5728\u670d\u52a1\u5668\u4e2d\u6dfb\u52a0\u591a\u4e2a IP \u5730\u5740\uff0c\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u5c06\u5b83\u6dfb\u52a0\u5230\u5355\u5757\u7f51\u5361\u4e2d\uff1f\u6211\u8bf4\u7684\u5bf9\u5417\uff1f<\/p>\n
\u4f60\u53ef\u80fd\u4e5f\u4f1a\u6709\u7c7b\u4f3c\u7684\u95ee\u9898\uff1a\u5728 Linux \u4e2d\u5982\u4f55\u4e3a\u5355\u5757\u7f51\u5361\u5206\u914d\u591a\u4e2a IP \u5730\u5740\uff1f\u5728\u672c\u6587\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5f97\u5230\u7b54\u6848\u3002<\/p>\n
\u5f53\u6211\u4eec\u5bf9\u4e00\u4e2a\u65b0\u670d\u52a1\u5668\u8fdb\u884c\u8bbe\u7f6e\u65f6\uff0c\u7406\u60f3\u60c5\u51b5\u4e0b\u5b83\u5c06\u6709\u4e00\u4e2a IP \u5730\u5740\uff0c\u5373\u670d\u52a1\u5668\u4e3b IP \u5730\u5740\uff0c\u5b83\u4e0e\u670d\u52a1\u5668\u4e3b\u673a\u540d\u5bf9\u5e94\u3002<\/p>\n
\u6211\u4eec\u4e0d\u5e94\u5728\u670d\u52a1\u5668\u4e3b IP \u5730\u5740\u4e0a\u6258\u7ba1\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u662f\u4e0d\u53ef\u53d6\u7684\u3002\u5982\u679c\u8981\u5728\u670d\u52a1\u5668\u4e0a\u6258\u7ba1\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u5e94\u8be5\u4e3a\u6b64\u6dfb\u52a0\u8f85\u52a9 IP\u3002<\/p>\n
\u8fd9\u662f\u4e1a\u754c\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5b89\u88c5 SSL \u8bc1\u4e66\u3002\u5927\u591a\u6570\u7cfb\u7edf\u90fd\u914d\u6709\u5355\u5757\u7f51\u5361\uff0c\u8fd9\u8db3\u4ee5\u6dfb\u52a0\u989d\u5916\u7684 IP \u5730\u5740\u3002<\/p>\n
\u5efa\u8bae\u9605\u8bfb\uff1a<\/strong><\/p>\n \u6211\u4eec\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u63a5\u53e3\u4e0a\u6dfb\u52a0 IP \u5730\u5740\uff0c\u6216\u8005\u5728\u540c\u4e00\u8bbe\u5907\u4e0a\u521b\u5efa\u5b50\u63a5\u53e3\uff0c\u7136\u540e\u5728\u5176\u4e2d\u6dfb\u52a0 IP\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4e00\u76f4\u5230 Ubuntu 14.04 LTS\uff0c\u63a5\u53e3\u7ed9\u540d\u79f0\u4e3a ethX (eth0)<\/span>\uff0c\u4f46\u662f\u4ece Ubuntu 15.10 \u4e4b\u540e\u7f51\u7edc\u63a5\u53e3\u540d\u79f0\u5df2\u4ece ethX<\/span> \u66f4\u6539\u4e3a enXXXXX<\/span>\uff08\u5bf9\u4e8e\u670d\u52a1\u5668\u662f ens33\uff0c\u684c\u9762\u7248\u662f enp0s3\uff09\u3002<\/p>\n \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u6559\u4f60\u5982\u4f55\u5728 Ubuntu \u4e0a\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u5e76\u4e14\u884d\u751f\u5230\u5176\u5b83\u53d1\u884c\u7248\uff08to \u6821\u6b63\uff1a\u8fd9\u53e5\u81ea\u5df1\u52a0\u7684\uff09\u3002<\/p>\n \u6ce8\u610f\uff1a<\/strong>\u522b\u5728 DNS \u8be6\u7ec6\u4fe1\u606f\u540e\u6dfb\u52a0 IP \u5730\u5740\u3002\u5982\u679c\u662f\u8fd9\u6837\uff0cDNS \u5c06\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n \u5728\u7cfb\u7edf\u4e2d\u6dfb\u52a0 IP \u5730\u5740\u4e4b\u524d\uff0c\u8fd0\u884c\u4ee5\u4e0b\u4efb\u4e00\u547d\u4ee4\u5373\u53ef\u9a8c\u8bc1\u670d\u52a1\u5668\u4e3b IP \u5730\u5740\uff1a<\/p>\n \u5982\u6211\u6240\u89c1\uff0c\u670d\u52a1\u5668\u4e3b IP \u5730\u5740\u662f 192.168.56.150<\/span>\uff0c\u6211\u5c06\u4e0b\u4e00\u4e2a IP 192.168.56.151<\/span> \u4f5c\u4e3a\u8f85\u52a9 IP\uff0c\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u5b8c\u6210\uff1a<\/p>\n \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u68c0\u67e5\u65b0\u6dfb\u52a0\u7684 IP \u5730\u5740\u3002\u5982\u679c\u4f60\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u65b0\u6dfb\u52a0\u7684 IP \u5730\u5740\u4f1a\u6d88\u5931\uff0c\u56e0\u4e3a\u6211\u4eec\u7684 IP \u662f\u4e34\u65f6\u6dfb\u52a0\u7684\u3002<\/p>\n \u8981\u5728 Ubuntu \u7cfb\u7edf\u4e0a\u6dfb\u52a0\u6c38\u4e45\u8f85\u52a9 IP \u5730\u5740\uff0c\u53ea\u9700\u7f16\u8f91 \/etc\/network\/interfaces<\/span> \u6587\u4ef6\u5e76\u6dfb\u52a0\u6240\u9700\u7684 IP \u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n \u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u542f\u7f51\u7edc\u63a5\u53e3\u670d\u52a1\u3002<\/p>\n \u9a8c\u8bc1\u65b0\u6dfb\u52a0\u7684 IP \u5730\u5740\uff1a<\/p>\n \u6b63\u5982\u672c\u6587\u5f00\u5934\u6240\u8ff0\uff0c\u7f51\u7edc\u63a5\u53e3\u540d\u79f0\u4ece Ubuntu 15.10 \u5c31\u5f00\u59cb\u4ece \u2018ethX\u2019 \u66f4\u6539\u4e3a \u2018enXXXX\u2019 (enp0s3)\uff0c\u6240\u4ee5\uff0c\u66ff\u6362\u4f60\u7684\u63a5\u53e3\u540d\u79f0\u3002<\/p>\n \u5728\u6267\u884c\u6b64\u64cd\u4f5c\u4e4b\u524d\uff0c\u5148\u68c0\u67e5\u7cfb\u7edf\u4e0a\u7684 IP \u4fe1\u606f\uff1a<\/p>\n \u5982\u6211\u6240\u89c1\uff0c\u670d\u52a1\u5668\u4e3b IP \u5730\u5740\u662f 192.168.56.201<\/span>\uff0c\u6240\u4ee5\uff0c\u6211\u5c06\u4e0b\u4e00\u4e2a IP 192.168.56.202<\/span> \u4f5c\u4e3a\u8f85\u52a9 IP\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b8c\u6210\u3002<\/p>\n \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\u662f\u5426\u5df2\u5206\u914d\u4e86\u65b0\u7684 IP\u3002\u5f53\u4f60\u91cd\u542f\u673a\u5668\u65f6\uff0c\u5b83\u4f1a\u6d88\u5931\u3002<\/p>\n \u8981\u5728 Ubuntu \u7cfb\u7edf\u4e0a\u6dfb\u52a0\u6c38\u4e45\u8f85\u52a9 IP \u5730\u5740\uff0c\u53ea\u9700\u7f16\u8f91 \/etc\/network\/interfaces<\/span> \u6587\u4ef6\u5e76\u6dfb\u52a0\u6240\u9700 IP \u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n \u6211\u4eec\u4e0d\u5e94\u8be5\u5728 dns-nameservers<\/span> \u884c\u4e4b\u540e\u6dfb\u52a0\u8f85\u52a9 IP \u5730\u5740\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u8d77\u4f5c\u7528\uff0c\u5e94\u8be5\u4ee5\u4e0b\u9762\u7684\u683c\u5f0f\u6dfb\u52a0 IP \u8be6\u60c5\u3002<\/p>\n \u6b64\u5916\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u6dfb\u52a0\u5b50\u63a5\u53e3\uff08\u6211\u4eec\u4e4b\u524d\u5728 Ubuntu 14.04 LTS \u4e2d\u7684\u505a\u6cd5\uff09\uff1a<\/p>\n \u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u542f\u7f51\u7edc\u63a5\u53e3\u670d\u52a1\uff1a<\/p>\n \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5206\u914d\u4e86\u65b0\u7684 IP\uff1a<\/p>\n \u8ba9\u6211\u6765 ping \u4e00\u4e0b\u65b0 IP \u5730\u5740\uff1a<\/p>\n via: https:\/\/www.2daygeek.com\/how-to-add-additional-ip-secondary-ip-in-ubuntu-debian-system\/<\/a><\/p>\n \u4f5c\u8005\uff1aPrakash Subramanian<\/a>[6]<\/span>\u00a0\u9009\u9898\uff1alujun9972<\/a>[7]<\/span>\u00a0\u8bd1\u8005\uff1aMjSeven<\/a>[8]<\/span>\u00a0\u6821\u5bf9\uff1awxy<\/a>[9]<\/span><\/p>\n \u672c\u6587\u7531 LCTT<\/a>[10]<\/span> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>[11]<\/span> \u8363\u8a89\u63a8\u51fa<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9986-1.html<\/a><\/p>\n\n
# ifconfig\r\n\u6216\r\n# ip addr\r\n\r\n# ip addr\r\n\r\neth0 Link encap:Ethernet HWaddr 08:00:27:98:b7:36 \r\n inet addr:192.168.56.150 Bcast:192.168.56.255 Mask:255.255.255.0\r\n inet6 addr: fe80::a00:27ff:fe98:b736\/64 Scope:Link\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:105 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:902 (902.0 B) TX bytes:16423 (16.4 KB)\r\n\r\neth1 Link encap:Ethernet HWaddr 08:00:27:6a:cf:d3 \r\n inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0\r\n inet6 addr: fe80::a00:27ff:fe6a:cfd3\/64 Scope:Link\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n RX packets:80 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:146 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:8698 (8.6 KB) TX bytes:17047 (17.0 KB)\r\n\r\nlo Link encap:Local Loopback \r\n inet addr:127.0.0.1 Mask:255.0.0.0\r\n inet6 addr: ::1\/128 Scope:Host\r\n UP LOOPBACK RUNNING MTU:65536 Metric:1\r\n RX packets:25 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:25 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1\r\n RX bytes:1730 (1.7 KB) TX bytes:1730 (1.7 KB)<\/pre>\n
# ip addr add 192.168.56.151\/24 broadcast 192.168.56.255 dev eth0 label eth0:1<\/pre>\n
# ip addr\r\n1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1\r\n link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n inet 127.0.0.1\/8 scope host lo\r\n valid_lft forever preferred_lft forever\r\n inet6 ::1\/128 scope host\r\n valid_lft forever preferred_lft forever\r\n2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:98:b7:36 brd ff:ff:ff:ff:ff:ff\r\n inet 192.168.56.150\/24 brd 192.168.56.255 scope global eth0\r\n valid_lft forever preferred_lft forever\r\n inet 192.168.56.151\/24 brd 192.168.56.255 scope global secondary eth0:1\r\n valid_lft forever preferred_lft forever\r\n inet6 fe80::a00:27ff:fe98:b736\/64 scope link\r\n valid_lft forever preferred_lft forever\r\n3: eth1: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:6a:cf:d3 brd ff:ff:ff:ff:ff:ff\r\n inet 10.0.3.15\/24 brd 10.0.3.255 scope global eth1\r\n valid_lft forever preferred_lft forever\r\n inet6 fe80::a00:27ff:fe6a:cfd3\/64 scope link\r\n valid_lft forever preferred_lft forever<\/pre>\n
# vi \/etc\/network\/interfaces<\/pre>\n
# vi \/etc\/network\/interfaces\r\n\r\n# The loopback network interface\r\nauto lo\r\niface lo inet loopback\r\n\r\n# The primary network interface\r\nauto eth0\r\niface eth0 inet static\r\n address 192.168.56.150\r\n netmask 255.255.255.0\r\n network 192.168.56.0\r\n broadcast 192.168.56.255\r\n gateway 192.168.56.1\r\n\r\nauto eth0:1\r\niface eth0:1 inet static\r\n address 192.168.56.151\r\n netmask 255.255.255.0<\/pre>\n
# service networking restart\r\n\u6216\r\n# ifdown eth0:1 && ifup eth0:1<\/pre>\n
# ifconfig\r\neth0 Link encap:Ethernet HWaddr 08:00:27:98:b7:36 \r\n inet addr:192.168.56.150 Bcast:192.168.56.255 Mask:255.255.255.0\r\n inet6 addr: fe80::a00:27ff:fe98:b736\/64 Scope:Link\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n RX packets:5 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:84 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:962 (962.0 B) TX bytes:11905 (11.9 KB)\r\n\r\neth0:1 Link encap:Ethernet HWaddr 08:00:27:98:b7:36 \r\n inet addr:192.168.56.151 Bcast:192.168.56.255 Mask:255.255.255.0\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n\r\neth1 Link encap:Ethernet HWaddr 08:00:27:6a:cf:d3 \r\n inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0\r\n inet6 addr: fe80::a00:27ff:fe6a:cfd3\/64 Scope:Link\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n RX packets:4924 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:3185 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:4037636 (4.0 MB) TX bytes:422516 (422.5 KB)\r\n\r\nlo Link encap:Local Loopback \r\n inet addr:127.0.0.1 Mask:255.0.0.0\r\n inet6 addr: ::1\/128 Scope:Host\r\n UP LOOPBACK RUNNING MTU:65536 Metric:1\r\n RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1\r\n RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<\/pre>\n
# ifconfig\r\n\u6216\r\n# ip addr\r\n\r\nenp0s3: flags=4163 mtu 1500\r\n inet 192.168.56.201 netmask 255.255.255.0 broadcast 192.168.56.255\r\n inet6 fe80::a00:27ff:fe97:132e prefixlen 64 scopeid 0x20\r\n ether 08:00:27:97:13:2e txqueuelen 1000 (Ethernet)\r\n RX packets 7 bytes 420 (420.0 B)\r\n RX errors 0 dropped 0 overruns 0 frame 0\r\n TX packets 294 bytes 24747 (24.7 KB)\r\n TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0\r\n\r\nenp0s8: flags=4163 mtu 1500\r\n inet 10.0.3.15 netmask 255.255.255.0 broadcast 10.0.3.255\r\n inet6 fe80::344b:6259:4dbe:eabb prefixlen 64 scopeid 0x20\r\n ether 08:00:27:12:e8:c1 txqueuelen 1000 (Ethernet)\r\n RX packets 1 bytes 590 (590.0 B)\r\n RX errors 0 dropped 0 overruns 0 frame 0\r\n TX packets 97 bytes 10209 (10.2 KB)\r\n TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0\r\n\r\nlo: flags=73 mtu 65536\r\n inet 127.0.0.1 netmask 255.0.0.0\r\n inet6 ::1 prefixlen 128 scopeid 0x10\r\n loop txqueuelen 1000 (Local Loopback)\r\n RX packets 325 bytes 24046 (24.0 KB)\r\n RX errors 0 dropped 0 overruns 0 frame 0\r\n TX packets 325 bytes 24046 (24.0 KB)\r\n TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<\/pre>\n
# ip addr add 192.168.56.202\/24 broadcast 192.168.56.255 dev enp0s3<\/pre>\n
# ip addr\r\n1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\r\n link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n inet 127.0.0.1\/8 scope host lo\r\n valid_lft forever preferred_lft forever\r\n inet6 ::1\/128 scope host\r\n valid_lft forever preferred_lft forever\r\n2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:97:13:2e brd ff:ff:ff:ff:ff:ff\r\n inet 192.168.56.201\/24 brd 192.168.56.255 scope global enp0s3\r\n valid_lft forever preferred_lft forever\r\n inet 192.168.56.202\/24 brd 192.168.56.255 scope global secondary enp0s3\r\n valid_lft forever preferred_lft forever\r\n inet6 fe80::a00:27ff:fe97:132e\/64 scope link\r\n valid_lft forever preferred_lft forever\r\n3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:12:e8:c1 brd ff:ff:ff:ff:ff:ff\r\n inet 10.0.3.15\/24 brd 10.0.3.255 scope global dynamic enp0s8\r\n valid_lft 86353sec preferred_lft 86353sec\r\n inet6 fe80::344b:6259:4dbe:eabb\/64 scope link\r\n valid_lft forever preferred_lft forever<\/pre>\n
# vi \/etc\/network\/interfaces\r\n\r\n# interfaces(5) file used by ifup(8) and ifdown(8)\r\nauto lo\r\niface lo inet loopback\r\n\r\n# The primary network interface\r\nauto enp0s3\r\niface enp0s3 inet static\r\naddress 192.168.56.201\r\nnetmask 255.255.255.0\r\n\r\niface enp0s3 inet static\r\naddress 192.168.56.202\r\nnetmask 255.255.255.0\r\n\r\ngateway 192.168.56.1\r\nnetwork 192.168.56.0\r\nbroadcast 192.168.56.255\r\ndns-nameservers 8.8.8.8 8.8.4.4\r\ndns-search 2daygeek.local <\/pre>\n
# systemctl restart networking\r\n\u6216\r\n# ifdown enp0s3 && ifup enp0s3<\/pre>\n
# ip addr\r\n1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\r\n link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n inet 127.0.0.1\/8 scope host lo\r\n valid_lft forever preferred_lft forever\r\n inet6 ::1\/128 scope host\r\n valid_lft forever preferred_lft forever\r\n2: enp0s3: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:97:13:2e brd ff:ff:ff:ff:ff:ff\r\n inet 192.168.56.201\/24 brd 192.168.56.255 scope global enp0s3\r\n valid_lft forever preferred_lft forever\r\n inet 192.168.56.202\/24 brd 192.168.56.255 scope global secondary enp0s3\r\n valid_lft forever preferred_lft forever\r\n inet6 fe80::a00:27ff:fe97:132e\/64 scope link\r\n valid_lft forever preferred_lft forever\r\n3: enp0s8: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n link\/ether 08:00:27:12:e8:c1 brd ff:ff:ff:ff:ff:ff\r\n inet 10.0.3.15\/24 brd 10.0.3.255 scope global dynamic enp0s8\r\n valid_lft 86353sec preferred_lft 86353sec\r\n inet6 fe80::344b:6259:4dbe:eabb\/64 scope link\r\n valid_lft forever preferred_lft forever<\/pre>\n
# ping 192.168.56.202 -c 4\r\nPING 192.168.56.202 (192.168.56.202) 56(84) bytes of data.\r\n64 bytes from 192.168.56.202: icmp_seq=1 ttl=64 time=0.019 ms\r\n64 bytes from 192.168.56.202: icmp_seq=2 ttl=64 time=0.087 ms\r\n64 bytes from 192.168.56.202: icmp_seq=3 ttl=64 time=0.034 ms\r\n64 bytes from 192.168.56.202: icmp_seq=4 ttl=64 time=0.042 ms\r\n\r\n--- 192.168.56.202 ping statistics ---\r\n4 packets transmitted, 4 received, 0% packet loss, time 3068ms\r\nrtt min\/avg\/max\/mdev = 0.019\/0.045\/0.087\/0.026 ms<\/pre>\n
\n\n