diff --git a/src/stx/common/trex_stack_linux_based.cpp b/src/stx/common/trex_stack_linux_based.cpp index 28328bd88..794bab72f 100755 --- a/src/stx/common/trex_stack_linux_based.cpp +++ b/src/stx/common/trex_stack_linux_based.cpp @@ -879,7 +879,7 @@ void CLinuxIfNode::conf_ip6_internal(bool enabled, const string &ip6_buf) { char buf[INET6_ADDRSTRLEN]; if ( enabled ) { run_in_ns("sysctl net.ipv6.conf." + m_if_name + "-L.disable_ipv6=0", "Could not enable ipv6 for veth"); - run_in_ns("ip -6 route add default dev " + m_if_name + "-L", "Could not set interface as default route"); + run_in_ns("ip -6 route replace default dev " + m_if_name + "-L", "Could not set interface as default route"); if ( ip6_buf.size() ) { inet_ntop(AF_INET6, ip6_buf.c_str(), buf, INET6_ADDRSTRLEN); string ip6_str(buf);