Skip to contentSkip to conversation

ovpn-dco: nestns-test.sh - fix the issue that veth is not created successfully

Openvpn-devel Applied Tony He 2 participants 5 messages Nov 18, 2020 – Nov 19, 2020 2 messages not in the archive

lore
Share & tools
lore

Tony He

author
#0 lore raw

Hi Antonio,

Have you encountered this issue? Please help to review.

Tony

#2 lore raw

Re: [Openvpn-devel] [PATCH] ovpn-dco: nestns-test.sh - fix the issue that veth is not created successfully.

In reply to a message not in the archive

Hi,

Quoted 6 lines · Tony He

According to user manual of "ip link", the command should be "ip link add veth0 type veth peer name veth1"

instead of
"ip link add veth0 type veth peer veth1"

Quoted 6 lines

With this fix, after running "./netns-test.sh", we can do ping test by executing "ip netns exec peer0 ping 5.5.5.2"

Tested in Ubuntu 18.04 PC.

Applied to master in revision c56b9d024570 with slightly amended commit message.

Cheers,

Signature · 1 line
Antonio Quartulli
#3 lore raw
In reply to Tony He

Hi Tony,

Quoted 5 lines · Tony He

Hi Antonio,

Have you encountered this issue? Please help to review.

No, we have never encountered this issue.

My feeling is that you are using userspace tools that are older than what we normally use.

I see you are using Ubuntu 18.04 and that might be the reason.

In any case, your patch is small and does not hurt :-)

Thanks

Signature · 1 line
Antonio Quartulli
author
#5 lore raw
In reply to a message not in the archive

Hi Antonio,

To confirm, I installed a Ubuntu 20.04 VM and saw it supports these two formates.

Tony

Quoted 24 lines · Antonio Quartulli <[email protected]...> 于2020年11月18日周三 下午11:05写道:

Hi Tony,

Quoted 5 lines · Tony He

Hi Antonio,

Have you encountered this issue? Please help to review.

No, we have never encountered this issue.

My feeling is that you are using userspace tools that are older than what we normally use.

I see you are using Ubuntu 18.04 and that might be the reason.

In any case, your patch is small and does not hurt :-)

Thanks

--
Antonio Quartulli
OpenVPN Inc.

#6 lore raw

Hi Tony,

Quoted 5 lines · Tony He

Hi Antonio,

To confirm, I installed a Ubuntu 20.04 VM and saw it supports these two formates.

Thanks a lot for checking - this is what I imagined too. The ip tool has introduced several shortcuts over time to make it more user friendly.

Nonetheless, your patch has been applied so that our script can work on older distros too.

Best Regards,

Signature · 1 line
Antonio Quartulli