目前需求是java后端的接口需要支持IPv6。先确认linux机器已经绑定了IPv6:
CMREAD-SV43 apache-tomcat/bin> ifconfig eth0 Link encap:Ethernet HWaddr 2C:76:8A:AF:9E:82 inet addr:192.168.11.11 Bcast:192.168.11.111 Mask:255.255.255.0 inet6 addr: fe80::2e76:8aff:feaf:9e82/64 Scope:Link inet6 addr: 2409:8028:8f1:1202::69/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3032806443 errors:0 dropped:332 overruns:0 frame:0 TX packets:320990686207 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:256791451048 (244895.4 Mb) TX bytes:332584238528831 (317177046.3 Mb) Memory:f9ec0000-f9ee0000 eth2 Link encap:Ethernet HWaddr 9C:8E:99:2A:EE:94 inet addr:11.111.11.11 Bcast:11.111.11.11 Mask:255.255.255.192 inet6 addr: fe80::9e8e:99ff:fe2a:ee94/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2905011525 errors:0 dropped:0 overruns: