Hi Ray,

The eth1 is real NIC,not a tap device.

Here is the information about host-eth1:
DBGvpp# show hardware
              Name                Idx   Link  Hardware
host-eth1                          1     up   host-eth1
  Ethernet address 00:0c:29:31:29:ae
  Linux PACKET socket interface
local0                             0    down  local0
  local

DBGvpp# show int
              Name               Idx       State          Counter          
Count     
host-eth1                         1         up       rx packets                 
  549
                                                     rx bytes                   
33524
                                                     tx packets                 
  529
                                                     tx bytes                   
25386
                                                     drops                      
    9
                                                     punts                      
  300
                                                     ip4                        
  544
                                                     ip6                        
    1
local0                            0        down      drops 

DBGvpp# show ip arp
    Time           IP4       Flags      Ethernet              Interface       
    194.9013  192.168.153.1   DN    00:50:56:c0:00:03         host-eth1       
     68.5358 192.168.153.131  DN    00:0c:29:8f:ad:61         host-eth1 

Thanks,
xyxue

 
From: Kinsella, Ray
Date: 2017-05-16 17:28
To: 薛欣颖; vpp-dev
Subject: Re: [vpp-dev] Failed to ping between two VPP
Hi xyxue,
 
Not sure that `set interface mac addr` will work with af_packet.
Can you provide a little bit more information ...
 
Are eth1 device's real NICs, or are they Tap devices connected to a 
bridge. In the case of a bridge, I presume its a Linux Kernel bridge?
 
Ray K
 
 
On 16/05/2017 09:16, 薛欣颖 wrote:
>
> Hi guys,
>
> When I use stable 17.04,there is something wrong when I ping vpp2 from vpp1,
> I
> use" dpkg --purge vpp vpp-dbg vpp-dev vpp-dpdk-dev vpp-dpdk-dkms vpp-lib 
> vpp-plugins vpp-python-api
>  "to compile vpp.
> That is my configuration:
>
> vpp1:
> creat host-interface name eth1
> set interface state host-eth1 up
> set interface ip addr host-eth1 192.168.153.130/24
> set interface mac addr host-eth1 00:0c:29:31:29:ae
> vpp2:
> creat host-interface name eth1
> set interface state host-eth1 up
> set interface ip addr host-eth1 192.168.153.131/24
> set interface mac addr host-eth1 00:0c:29:8f:ad:61
>
> then I " ping 192.168.153.131 "from vpp1,and "ping 192.168.153.130" from
> VPP2
>
> the packet trace:
> 01:20:19:315340: af-packet-input
>   af_packet: hw_if_index 2 next-index 4
>     tpacket2_hdr:
>       status 0x20000001 len 60 snaplen 60 mac 66 net 80
>       sec 0x59196685 nsec 0x18dd5a37 vlan 0
> 01:20:19:315391: ethernet-input
>   IP4: 00:0c:29:31:29:b8 -> 00:0c:29:8f:ad:6b
> 01:20:19:315411: ip4-input
>   ICMP: 192.168.190.134 -> 192.168.190.136
>     tos 0x00, ttl 64, length 25, checksum 0x5a2b
>     fragment id 0x2259
>   ICMP echo_reply checksum 0x71ff
> 01:20:19:315430: ip4-lookup
>   fib 0 dpo-idx 6 flow hash: 0x00000000
>   ICMP: 192.168.190.134 -> 192.168.190.136
>     tos 0x00, ttl 64, length 25, checksum 0x5a2b
>     fragment id 0x2259
>   ICMP echo_reply checksum 0x71ff
> 01:20:19:315453: ip4-local
>     ICMP: 192.168.190.134 -> 192.168.190.136
>       tos 0x00, ttl 64, length 25, checksum 0x5a2b
>       fragment id 0x2259
>     ICMP echo_reply checksum 0x71ff
> 01:20:19:315476: ip4-icmp-input
>   ICMP: 192.168.190.134 -> 192.168.190.136
>     tos 0x00, ttl 64, length 25, checksum 0x5a2b
>     fragment id 0x2259
>   ICMP echo_reply checksum 0x71ff
> 01:20:19:315486: ip4-icmp-echo-reply
>   ICMP echo id 36352 seq 0 (unknown)
> 01:20:19:315549: error-punt
>   ip4-icmp-input: unknown type
>
> the ip fib has something wrong:
> 192.168.153.130/32
>   unicast-ip4-chain
>   [@0]: dpo-load-balance: [index:10 buckets:1 uRPF:9 to:[900:34260] 
> via:[188:8648]]
>
> [0] [@5]: ipv4 via 192.168.153.130 host-eth1: 000c293129ae000c298fad610800
>
> Is there something I forgot to config ?Did I conifg wrong command?
>
>
>
> Thanks,
> xyxue
>
>
> _______________________________________________
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to