我似乎无法获得这些服务。使用VM图像融合启动下载的VMWare (在MacOSX10.8.2上)
ifconfig返回以下内容:
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:50:56:25:fd:9a
inet6 dc20:c7f:2012:12::7 prefixlen 64
inet6 fe80::250:56ff:fe25:fd9a%em1 prefixlen 64 scopeid 0x3
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active[root@dc20 ~]# sockstat -6
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root cashew 1447 3 tcp6 dc20:c7f:2012:12::7:7979 *:*
root cherry 1443 3 tcp6 dc20:c7f:2012:12::7:24359 *:*
root coney 1439 3 tcp6 dc20:c7f:2012:12::7:65214 *:*
root dealer 1435 4 tcp6 dc20:c7f:2012:12::7:8888 *:*
root desheepd 1431 3 udp6 dc20:c7f:2012:12::7:547 *:*
root dog 1427 3 tcp6 *:3146 *:*
root gallows 1415 3 tcp6 dc20:c7f:2012:12::7:6666 *:*
root jerkin 1395 3 tcp6 dc20:c7f:2012:12::7:63715 *:*
root mixology 1387 3 tcp6 dc20:c7f:2012:12::7:35575 *:*
root nancy 1379 3 tcp6 dc20:c7f:2012:12::7:57554 *:*
root nom 1370 3 tcp6 dc20:c7f:2012:12::7:7368 *:*
nssds nssds 1366 3 tcp6 dc20:c7f:2012:12::7:54339 *:*
root ocrd 1362 4 tcp6 dc20:c7f:2012:12::7:31967 *:*
root parrot 1357 3 tcp6 *:5160 *:*
root ralph 1353 3 tcp6 dc20:c7f:2012:12::7:57553 *:*
scool scool 1349 3 tcp6 *:4637 *:*
root semem 1332 3 tcp6 dc20:c7f:2012:12::7:6941 *:*
root sshd 1316 3 tcp6 *:22 *:*
tictactoe tictactoe 1223 3 tcp6 dc20:c7f:2012:12::7:25375 *:*
_ngircd ngircd 1210 10 tcp6 ::1:6667 *:*
_ngircd ngircd 1210 11 tcp6 ::1:6668 *:*
_ngircd ngircd 1210 12 tcp6 ::1:6669 *:*
_ngircd ngircd 1210 13 tcp6 dc20:c7f:2012:12::7:6667 *:*
_ngircd ngircd 1210 14 tcp6 dc20:c7f:2012:12::7:6668 *:*
_ngircd ngircd 1210 15 tcp6 dc20:c7f:2012:12::7:6669 *:*
root zul 1083 3 tcp6 dc20:c7f:2012:12::7:25201 *:*
root syslogd 1057 6 udp6 *:514 *:*但我似乎无法连接到on 20:c7f:2012:12::7的任何形式的服务:例如,能够发送/recv到/从在on 20:c7f:2012:12:7,端口6941上运行的semem服务。
我尝试过一些基本的东西,比如ping6和telnet -6,netcat/nmap,还有python,但是它们似乎无法连接(超时)。
另一个*:服务运行良好。
我从谷歌搜索结果中看到,dc20:c7f:2012:12::7:6941意味着服务绑定到ipv6地址‘ie 20:c7f:2012:12::7’的接口,即。(虚拟)网络接口em1,它也是由另一个地址所知,因此,为了能够与服务通信,我首先必须创建一个套接字,将套接字绑定到与接口相关的这个地址,然后从这个接口发送到服务,但在代码中尝试似乎仍然不起作用。
请给我指点?希望有一些Python中的套接字编程。
镜像在reddit评论中
发布于 2013-06-08 23:53:06
在/etc/rd.conf中,用下面的ifconfig_em1_ipv6="inet6 dc20:c7f:2012:12::7 prefixlen 64"替换该行:ifconfig_em1="inet6 dc20:c7f:2012:12::7 prefixlen 64"
那就重新开始。
[root@dc20 ~]# ping6 -c 3 dc20:c7f:2012:12::7
PING6(56=40+8+8 bytes) dc20:c7f:2012:12::7 --> dc20:c7f:2012:12::7
16 bytes from dc20:c7f:2012:12::7, icmp_seq=0 hlim=64 time=0.290 ms
16 bytes from dc20:c7f:2012:12::7, icmp_seq=1 hlim=64 time=0.065 ms
16 bytes from dc20:c7f:2012:12::7, icmp_seq=2 hlim=64 time=0.070 ms
--- dc20:c7f:2012:12::7 ping6 statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.065/0.142/0.290/0.105 ms
[root@dc20 ~]#完全有效。
https://stackoverflow.com/questions/12586156
复制相似问题