我在aliyun上外网能登陆,但是在控制台上看不到对应公网连接的IP,比如使用 ifconfig -a You have new mail. Last login: Thu Sep 19 19:12:19 2019 from 180.157.81.211 root@iZ25l7l0up9Z:~# root@iZ25l7l0up9Z:~# ifconfig -a docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.18.0.1 netmask 255.255.0.0 broadcast 0.0.0.0 ether 02:42:44:a7:fd:48 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.17.7.125 netmask 255.255.240.0 broadcast 172.17.15.255 inet6 fe80::216:3eff:fe0a:66a4 prefixlen 64 scopeid 0x20 ether 00:16:3e:0a:66:a4 txqueuelen 1000 (Ethernet) RX packets 602749819 bytes 191265937698 (191.2 GB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 501292476 bytes 44193568989 (44.1 GB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 161713 bytes 11487713 (11.4 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 161713 bytes 11487713 (11.4 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。