Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strange veth (virtual eth pair) behaviour - no arp response
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
matrix47
n00b
n00b


Joined: 20 Jan 2008
Posts: 21
Location: Moscow, Russia

PostPosted: Wed Oct 17, 2012 12:49 am    Post subject: strange veth (virtual eth pair) behaviour - no arp response Reply with quote

Hello!

I can't seem to get to work a virtual ethernet device pair (veth).
Can anyone explain to me why this simple configuration does not work?

Setting up veth device pair and configuring interfaces:
Code:
ip link add veth.0 type veth peer name veth.1
ifconfig veth.0 10.0.0.1/24
ifconfig veth.1 10.0.0.2/24


Put simple ping does not work!
Code:
ping -I veth.0 10.0.0.2
PING 10.0.0.2 (10.0.0.2) from 10.0.0.1 veth.0: 56(84) bytes of data.
From 10.0.0.1: icmp_seq=1 Destination Host Unreachable
From 10.0.0.1: icmp_seq=2 Destination Host Unreachable
From 10.0.0.1: icmp_seq=3 Destination Host Unreachable
From 10.0.0.1: icmp_seq=4 Destination Host Unreachable
From 10.0.0.1: icmp_seq=5 Destination Host Unreachable
From 10.0.0.1: icmp_seq=6 Destination Host Unreachable


Though there is activity on veth.1 interface while pinging:
Code:
tcpdump -i veth.1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on veth.1, link-type EN10MB (Ethernet), capture size 65535 bytes
17:47:46.554759 ARP, Request who-has 10.0.0.2 tell 10.0.0.1, length 28
17:47:47.556776 ARP, Request who-has 10.0.0.2 tell 10.0.0.1, length 28
17:47:49.555119 ARP, Request who-has 10.0.0.2 tell 10.0.0.1, length 28
17:47:50.556749 ARP, Request who-has 10.0.0.2 tell 10.0.0.1, length 28


I bumbed into this wile investigating for another issue: https://forums.gentoo.org/viewtopic-t-939778.html
_________________
May the force be with you!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Wed Oct 17, 2012 3:34 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-7164550.html?sid=411b98cdaf63307e94a5cc38bed583cf

http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?style=printable&full=1#book_part4_chap3
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum