Hi, Thank you for your help!
I'm using the latest release for my testing.
1)The output of `show version` command as follow:
vpp# show version
vpp v20.01-rc0~694-g11e9e35 built by root on kean at Fri Nov 22 16:12:07 HKT 
2019
2)The configurations of NAT testing as follows:
ip netns add ns1
ip link add vpp1 type veth peer name vethns1
ip link set vethns1 netns ns1
ip netns exec ns1 ip link set lo up
ip netns exec ns1 ip link set vethns1 up
ip netns exec ns1 ip addr add 10.10.0.2/24 dev vethns1
ip netns exec ns1 ethtool -K vethns1 rx off tx off
ip link set vpp1 up

ip netns add ns2
ip link add vpp2 type veth peer name vethns2
ip link set vethns2 netns ns2
ip netns exec ns2 ip link set lo up
ip netns exec ns2 ip link set vethns2 up
ip netns exec ns2 ip addr add 10.10.1.1/24 dev vethns2
ip netns exec ns2 ethtool -K vethns2 rx off tx off
ip link set vpp2 up

ip netns exec ns0 ip route add default via 10.10.0.10
ip netns exec ns1 ip route add default via 10.10.0.10
ip netns exec ns2 ip route add default via 10.10.1.10

create host-interface name vpp0
create host-interface name vpp1
create host-interface name vpp2
set interface state host-vpp0 up
set interface state host-vpp1 up
set interface state host-vpp2 up

set interface l2 bridge host-vpp0 3
set interface l2 bridge host-vpp1 3
set interface ip address host-vpp2 10.10.1.10/24
create loopback interface
set interface l2 bridge loop0 3 bvi
set interface state loop0 up
set interface ip address loop0 10.10.0.10/24

nat44 add interface address host-vpp2
set interface nat44 in loop0 out host-vpp2

Best Regards,
Xiaopeng
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14909): https://lists.fd.io/g/vpp-dev/message/14909
Mute This Topic: https://lists.fd.io/mt/68755389/21656
Mute #nat44: https://lists.fd.io/mk?hashtag=nat44&subid=1480452
Mute #nat: https://lists.fd.io/mk?hashtag=nat&subid=1480452
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