Good evening. I am trying to communicate 2 VM's with dpdk-ans stacks.
Here is my environment description (for the moment let assume only one VM uses dpdk-ans):
VM 1:
1 Interface binded with igb_uio to DPDK with MAC 00:0c:29:8c:c9:c9.
1 NAT interface with IP 192.168.155.148 (this interface is the default gateway of the VM)
VM 2:
1 Interface with IP 192.168.155.149.
Goal -> VM2: ping -> Successful
Steps:
Terminal 1: ./ans -c 0x4 -n 1 --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,2)"
Checking link status done
Port 0 Link Up - speed 1000 Mbps - full-duplex
USER8: main loop on lcore 2
USER8: -- lcoreid=2 portid=0 rxqueueid=0
hz: 1607999963
Terminal 2: ./anscli
ans>ip neigh show
ANS IP neigh table (Is something supposed to be prompted here? Seems like ARP is now working maybe?)
//After some configuration
ans> ip addr show
veth0: mtu 1500
link/ether 00:0c:29:8c:c9:c9
inet addr: 192.168.155.200/24 -> This address has been randomly choose from subnet
ans> ip route show
ANS IP routing table
192.168.155.0/24 via dev veth0 src 192.168.155.200
With this configuration a ping from VM2 to 192.168.155.200 is supposed to work if I understand correctly how ans works.
Trying to add a default gateway inside ans I got:
ans> ip route add 0.0.0.0/0 via 192.168.153.200
Add route failed, error code 3000
In ans terminal: USER8: LCORE[-1] Default gateway address(0xc0a899c8) is unreachable.
How can the address be unreachable if it is literally inside the stack? Any basic concept I have missed?
Any help on how to get this very very simple environment test up and running will be highly appreciated.
Thank you. Jorge Martinez Garcia
Good evening. I am trying to communicate 2 VM's with dpdk-ans stacks. Here is my environment description (for the moment let assume only one VM uses dpdk-ans):
VM 1: 1 Interface binded with igb_uio to DPDK with MAC 00:0c:29:8c:c9:c9. 1 NAT interface with IP 192.168.155.148 (this interface is the default gateway of the VM)
VM 2: 1 Interface with IP 192.168.155.149.
Goal -> VM2: ping -> Successful
Steps: Terminal 1: ./ans -c 0x4 -n 1 --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,2)" Checking link status done Port 0 Link Up - speed 1000 Mbps - full-duplex USER8: main loop on lcore 2 USER8: -- lcoreid=2 portid=0 rxqueueid=0 hz: 1607999963
Terminal 2: ./anscli ans>ip neigh show ANS IP neigh table (Is something supposed to be prompted here? Seems like ARP is now working maybe?) //After some configuration ans> ip addr show
veth0: mtu 1500 link/ether 00:0c:29:8c:c9:c9 inet addr: 192.168.155.200/24 -> This address has been randomly choose from subnet
ans> ip route show
ANS IP routing table 192.168.155.0/24 via dev veth0 src 192.168.155.200
With this configuration a ping from VM2 to 192.168.155.200 is supposed to work if I understand correctly how ans works.
Trying to add a default gateway inside ans I got: ans> ip route add 0.0.0.0/0 via 192.168.153.200 Add route failed, error code 3000 In ans terminal: USER8: LCORE[-1] Default gateway address(0xc0a899c8) is unreachable. How can the address be unreachable if it is literally inside the stack? Any basic concept I have missed?
Any help on how to get this very very simple environment test up and running will be highly appreciated. Thank you. Jorge Martinez Garcia