03-12-2018 01:24 AM - edited 03-01-2019 04:06 AM
Hi experts,
I start netsim in my server, it could be login by ssh for ipv4, but it could not be login by ssh for ipv6. Whether netsim support for ipv6 ?
ssh admin@10.10.96.38 -p 10022, success to login
ssh admin@2001:db8:1::242:a0a:6026 -p 10022,
ssh: connect to host 2001:db8:1::242:a0a:6026 port 10022: Connection refused
ssh admin@2001:db8:1::242:a0a:6026 -p 22, port 22 success to login.
admin@2001:db8:1::242:a0a:6026's password:
Solved! Go to Solution.
03-21-2018 07:54 AM
I can confirm this works:
<confdIpcAddress>
<ip>0.0.0.0</ip>
</confdIpcAddress>
<confdIpcExtraListenIp>::</confdIpcExtraListenIp>
03-12-2018 06:06 PM
Any experts could help me ? Thanks.
03-13-2018 12:28 PM
The NETSIMs themselves can bind to IPv6 addresses, check confd.conf in each NETSIM. You'd have to replace the IPv4 addresses with IPv6 corresponding.
So you'd probably have to create them using the tool and then manually/script change the addresses though.
03-13-2018 10:58 PM
Hi Fredrik,
Thanks for your reply !
update to below configurations, it work for ipv6. Could netsim both support ipv6 and ipv4 at the same time ? Based on my testing, netsim only support one IP type, ipv6 or ipv4
<ssh>
<enabled>true</enabled>
<ip>::</ip>
<port>10023</port>
</ssh>
03-14-2018 08:23 AM
Default (if I remember correctly) is that a socket bound to IPv6 "any" or localhost also accepts IPv4 connections.
Have you tested and verified that it doesn't work?
03-14-2018 06:53 PM
I change to below configurations, it only work for ipv6, if delete <ip>::<ip>, it only work for ipv4. Could not work for ipv4 and ipv6 at the same time.
<ssh>
<enabled>true</enabled>
<ip>::</ip>
<port>10023</port>
</ssh>
03-14-2018 08:23 PM
Hmm, there is also /confdConfig/cli/ssh/extraIpPorts (see man confd.conf), maybe
<extraIpPorts>[::]</extraIpPorts>
03-21-2018 07:54 AM
I can confirm this works:
<confdIpcAddress>
<ip>0.0.0.0</ip>
</confdIpcAddress>
<confdIpcExtraListenIp>::</confdIpcExtraListenIp>
03-30-2018 12:56 AM
Thanks Fredrik. In confd.conf file to config below ? I did not find confdIpcAddress in netsim/confd/etc/confd/confd.conf
<confdIpcAddress>
<ip>0.0.0.0</ip>
</confdIpcAddress>
<confdIpcExtraListenIp>::</confdIpcExtraListenIp>
08-27-2018 07:05 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide