Hello Balaji

On Tue, Jan 21, 2020 at 8:31 PM Balaji Venkatraman (balajiv) <
bala...@cisco.com> wrote:

> Hi Sothy,
>
>
>
> I think you need to have a default route defined in table 1.
>
>
>
> ip route add 0.0.0.0/0 table 1 via 172.30.1.2 *host-vpp1eth1*
>
>
>
I guess you have typo in the command.host-vpp1eth1=> host-vpp1eth0
vpp# ip route add 0.0.0.0/0 table 1 via 172.30.1.1 host-vpp1eth1
vpp#
vpp#
vpp#
vpp# ping 172.30.1.1
Failed: no egress interface
Failed: no egress interface
Failed: no egress interface
Failed: no egress interface

Thanks
Sothy


> could u try that?
>
> --
>
> Regards,
>
> Balaji.
>
>
>
>
>
> *From: *<vpp-dev@lists.fd.io> on behalf of sothy <sothy....@gmail.com>
> *Date: *Tuesday, January 21, 2020 at 9:47 AM
> *To: *"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
> *Subject: *[vpp-dev] routing configuration other than default
>
>
>
> Hi,
>
> I'm following the UPF-VPP development in
> https://github.com/travelping/vpp/tree/feature/1908/upf
>
> VPP version is
>
>  show version
> vpp v19.08.1-393~g25cea519e-dirty built by root on buildkitsandbox at Tue
> Dec  3 14:06:31 UTC 2019
>
>
>
> I use the following the interfaces and routing tables.(init.conf). I dont
> use DPDK , but I used veth
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> ip table add 1
> ip table add 2
> ip6 table add 1
> ip6 table add 2
>
> create host-interface name vpp1eth0
> set interface mac address host-vpp1eth0 00:0c:29:46:1f:53
> set interface ip table host-vpp1eth0 1
> set interface ip6 table host-vpp1eth0 1
> set interface ip address host-vpp1eth0 172.30.1.2/24
> set interface state host-vpp1eth0 up
>
> create host-interface name vpp1eth1
> set interface mac address host-vpp1eth1 00:50:56:86:ed:f9
> set interface ip table host-vpp1eth1 2
> set interface ip6 table host-vpp1eth1 2
> set interface ip address host-vpp1eth1 172.31.1.2/24
> set interface state host-vpp1eth1 up
>
> create host-interface name vpp1eth2
> set interface mac address host-vpp1eth2 02:fe:f5:6f:45:72
> set int ip address host-vpp1eth2 172.32.1.2/24
> set int state host-vpp1eth2 up
>
> ip route add 0.0.0.0/0 table 2 via 172.31.1.2 host-vpp1eth1
>
> upf pfcp endpoint ip 172.32.1.2 vrf 0
>
> upf nwi name cp vrf 0
> upf nwi name internet vrf 1
> upf nwi name sgi vrf 2
>
> upf gtpu endpoint ip 172.32.1.2 nwi cp teid 0x80000000/2
> upf gtpu endpoint ip 172.30.1.2 nwi internet teid 0x80000000/2
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> When I ping from vpp,
>
> vpp#ping 172.30.1.1
> Failed: no egress interface
> Failed: no egress interface
> Failed: no egress interface
> Failed: no egress interface
> Failed: no egress interface
>
> Statistics: 0 sent, 0 received, 0% packet loss
>
> *********************************************
>
> When I ping from vpp for 172.32.1.1
>
> vpp# ping 172.32.1.1
> 116 bytes from 172.32.1.1: icmp_seq=1 ttl=64 time=.1633 ms
> 116 bytes from 172.32.1.1: icmp_seq=2 ttl=64 time=3.2511 ms
> Aborted due to a keypress.
>
> Statistics: 2 sent, 2 received, 0% packet loss
>
> **************************************************************
>
> Based on the above test, I feel I missed something in table 1. Default
> routing table configuration is working. I wish to know what I missed in
> table 1
>
>
>
> Thanks
>
> Sothy
>
>
>
> .
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15212): https://lists.fd.io/g/vpp-dev/message/15212
Mute This Topic: https://lists.fd.io/mt/69961536/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to