No ICMP response for veth devices in same namespaceLinux - Only first virtual interface can ping external...
Double-sided action figure, early 80s?
How does a Potion of Poison work?
What's the minimum number of sensors for a hobby GPS waypoint-following UAV?
Does the Dispel Magic spell work on the Mirror Image spell?
For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?
How do I take a fraction to a negative power?
Professor falsely accusing me of cheating in a class he does not teach, two months after end of the class. What precautions should I take?
Why does Hellboy file down his horns?
<schwitz>, <zwinker> etc. Does German always use 2nd Person Singular Imperative verbs for emoticons? If so, why?
Rhombuses, kites etc
How can I get a player to accept that they should stop trying to pull stunts without thinking them through first?
Do you know your 'KVZ's?
Why are Hobbits so fond of mushrooms?
What is this welding tool I found in my attic?
Why isn't pressure filtration popular compared to vacuum filtration?
Storming Area 51
Is there any word for "disobedience to God"?
If your plane is out-of-control, why does military training instruct releasing the joystick to neutralize controls?
Get ids only where one id is null and other isn't
What do the horizontal lines in a P-V phase diagram mean?
Matchmaker, Matchmaker, make me a match
Why won't this charge pump supply more than a couple of milliamps?
Can I play a first turn Simic Growth Chamber to have 3 mana available in the second turn?
Why does the U.S. tolerate foreign influence from Saudi Arabia and Israel on its domestic policies while not tolerating that from China or Russia?
No ICMP response for veth devices in same namespace
Linux - Only first virtual interface can ping external gatewaylinux namespace, How to connect internet in network namespace?Network interface not registring ARP responseResolve IP address from MAC addressHow to find the network namespace of a veth peer ifindex?How to make virtual devices on GNS3 be able to ping the physical hostFailed to ping external network from linux namespace, why?Route from netns through a veth linklxc container has internet access, how to access internet from hostFor veth pair, ping does not recognize interface name and tc qdisc netem does not work
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have created a veth device pair as follows in Ubuntu 16.04:
$ sudo ip link add veth1 type veth peer name veth2
$ sudo ip link set dev veth1 up
$ sudo ip link set dev veth2 up
$ sudo ip address add 10.0.10.50/24 dev veth1
$ sudo ip address add 10.0.10.51/24 dev veth2
The veth device pair is in the same namespace. I am trying to test ping from one veth device to the other. So I try the ping as follows:
$ ping -I veth1 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 veth1: 56(84) bytes of data.
From 10.0.10.50 icmp_seq=1 Destination Host Unreachable
From 10.0.10.50 icmp_seq=2 Destination Host Unreachable
From 10.0.10.50 icmp_seq=3 Destination Host Unreachable
When I check in wireshark trace for veth2, the ARP request does not get any response (similar trace is also observed for veth1):
Broadcast ARP 42 Who has 10.0.10.51? Tell 10.0.10.50
I want to ask why can't veth2 respond to the ICMP request when it is in the same namespace as veth1 ?
Update: If I try the ping as follows, then I get ICMP response, but wireshark shows no trace for veth1 and veth2 devices.
$ ping -I 10.0.10.50 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 : 56(84) bytes of data.
64 bytes from 10.0.10.51: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 10.0.10.51: icmp_seq=2 ttl=64 time=0.022 ms
Can someone explain the difference in result for the two ping tests ?
networking veth
add a comment |
I have created a veth device pair as follows in Ubuntu 16.04:
$ sudo ip link add veth1 type veth peer name veth2
$ sudo ip link set dev veth1 up
$ sudo ip link set dev veth2 up
$ sudo ip address add 10.0.10.50/24 dev veth1
$ sudo ip address add 10.0.10.51/24 dev veth2
The veth device pair is in the same namespace. I am trying to test ping from one veth device to the other. So I try the ping as follows:
$ ping -I veth1 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 veth1: 56(84) bytes of data.
From 10.0.10.50 icmp_seq=1 Destination Host Unreachable
From 10.0.10.50 icmp_seq=2 Destination Host Unreachable
From 10.0.10.50 icmp_seq=3 Destination Host Unreachable
When I check in wireshark trace for veth2, the ARP request does not get any response (similar trace is also observed for veth1):
Broadcast ARP 42 Who has 10.0.10.51? Tell 10.0.10.50
I want to ask why can't veth2 respond to the ICMP request when it is in the same namespace as veth1 ?
Update: If I try the ping as follows, then I get ICMP response, but wireshark shows no trace for veth1 and veth2 devices.
$ ping -I 10.0.10.50 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 : 56(84) bytes of data.
64 bytes from 10.0.10.51: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 10.0.10.51: icmp_seq=2 ttl=64 time=0.022 ms
Can someone explain the difference in result for the two ping tests ?
networking veth
add a comment |
I have created a veth device pair as follows in Ubuntu 16.04:
$ sudo ip link add veth1 type veth peer name veth2
$ sudo ip link set dev veth1 up
$ sudo ip link set dev veth2 up
$ sudo ip address add 10.0.10.50/24 dev veth1
$ sudo ip address add 10.0.10.51/24 dev veth2
The veth device pair is in the same namespace. I am trying to test ping from one veth device to the other. So I try the ping as follows:
$ ping -I veth1 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 veth1: 56(84) bytes of data.
From 10.0.10.50 icmp_seq=1 Destination Host Unreachable
From 10.0.10.50 icmp_seq=2 Destination Host Unreachable
From 10.0.10.50 icmp_seq=3 Destination Host Unreachable
When I check in wireshark trace for veth2, the ARP request does not get any response (similar trace is also observed for veth1):
Broadcast ARP 42 Who has 10.0.10.51? Tell 10.0.10.50
I want to ask why can't veth2 respond to the ICMP request when it is in the same namespace as veth1 ?
Update: If I try the ping as follows, then I get ICMP response, but wireshark shows no trace for veth1 and veth2 devices.
$ ping -I 10.0.10.50 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 : 56(84) bytes of data.
64 bytes from 10.0.10.51: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 10.0.10.51: icmp_seq=2 ttl=64 time=0.022 ms
Can someone explain the difference in result for the two ping tests ?
networking veth
I have created a veth device pair as follows in Ubuntu 16.04:
$ sudo ip link add veth1 type veth peer name veth2
$ sudo ip link set dev veth1 up
$ sudo ip link set dev veth2 up
$ sudo ip address add 10.0.10.50/24 dev veth1
$ sudo ip address add 10.0.10.51/24 dev veth2
The veth device pair is in the same namespace. I am trying to test ping from one veth device to the other. So I try the ping as follows:
$ ping -I veth1 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 veth1: 56(84) bytes of data.
From 10.0.10.50 icmp_seq=1 Destination Host Unreachable
From 10.0.10.50 icmp_seq=2 Destination Host Unreachable
From 10.0.10.50 icmp_seq=3 Destination Host Unreachable
When I check in wireshark trace for veth2, the ARP request does not get any response (similar trace is also observed for veth1):
Broadcast ARP 42 Who has 10.0.10.51? Tell 10.0.10.50
I want to ask why can't veth2 respond to the ICMP request when it is in the same namespace as veth1 ?
Update: If I try the ping as follows, then I get ICMP response, but wireshark shows no trace for veth1 and veth2 devices.
$ ping -I 10.0.10.50 10.0.10.51
PING 10.0.10.51 (10.0.10.51) from 10.0.10.50 : 56(84) bytes of data.
64 bytes from 10.0.10.51: icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from 10.0.10.51: icmp_seq=2 ttl=64 time=0.022 ms
Can someone explain the difference in result for the two ping tests ?
networking veth
networking veth
edited 23 mins ago
Jake
asked 48 mins ago
JakeJake
5918 silver badges22 bronze badges
5918 silver badges22 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529732%2fno-icmp-response-for-veth-devices-in-same-namespace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529732%2fno-icmp-response-for-veth-devices-in-same-namespace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown