Please be more specific about what ‘doesn’t work’.

You script on n1 does:

  #add gre tunnel
  create gre tunnel src 200.1.2.1 dst 200.1.2.2
  set interface state gre0 up
  set interface ip address gre0 10.10.10.11/32
  ip route add 2.1.1.0/24 via gre0

  #del gre tunnel
  set interface state gre0 down
  create gre tunnel src 200.1.2.1 dst 200.1.2.2 del
  ip route del 2.1.1.0/24 via 200.1.2.2.

that last route delete was not the route you added, so it won’t remove 
anything. What you need is
  ip route del 2.1.1.0/24 via gre0

and of course you need to do that before you delete the tunnel.

/neale




From: <[email protected]> on behalf of "abbas ali chezgi via Lists.Fd.Io" 
<[email protected]>
Reply to: "[email protected]" <[email protected]>
Date: Monday 17 February 2020 at 05:43
To: Vpp-dev <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: [vpp-dev] sub interface after virtual interfaces doesn't work


1- create gre tunnel between n1--n2
2- add ip and route . it works
3- delete ip and route from gre and delete gre tunnel
4- create sub interface
5- add ip and route.

it doesn't work


[VPP-1841] sub interface after gre doesn't work - FD.io 
Jira<https://jira.fd.io/browse/VPP-1841>

[VPP-1841] sub interface after gre doesn't work - FD.io Jira



where can i look for it
thanks.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15419): https://lists.fd.io/g/vpp-dev/message/15419
Mute This Topic: https://lists.fd.io/mt/71343791/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to