cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
778
Views
0
Helpful
9
Replies

whether netsim support ipv6

haofan
Level 4
Level 4

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:


1 Accepted Solution

Accepted Solutions

I can confirm this works:

  <confdIpcAddress>

    <ip>0.0.0.0</ip>

  </confdIpcAddress>

  <confdIpcExtraListenIp>::</confdIpcExtraListenIp>

View solution in original post

9 Replies 9

haofan
Level 4
Level 4

Any experts could help me ?  Thanks.

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.

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>

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?

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>

Hmm, there is also /confdConfig/cli/ssh/extraIpPorts (see man confd.conf), maybe

<extraIpPorts>[::]</extraIpPorts>

I can confirm this works:

  <confdIpcAddress>

    <ip>0.0.0.0</ip>

  </confdIpcAddress>

  <confdIpcExtraListenIp>::</confdIpcExtraListenIp>

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>

it doesn't work for me.