Hi guys,

 

I modified the startup.conf and enabled the tuntap interface.

After vpp (vpp20.01) startup, it will create a tun interface named “vnet” in 
host linux. If I add an ip address to the physical interface, the same ip 
address will be added to vnet. But if I add an route entry, it will not. So the 
question is : Why vpp not synchronize route to host linux?

 

 

DBGvpp# set  interface state TenGigabitEthernet7/0/0 up

DBGvpp# set interface ip address TenGigabitEthernet7/0/0 10.161.26.9/24

DBGvpp# ip route add 10.161.55.0/24 via 10.161.26.1

 

 

DBGvpp# show interface addr

TenGigabitEthernet7/0/0 (up):

  L3 10.161.26.9/24

local0 (dn):

tuntap-0 (up):

 

 

DBGvpp# show fib entry

FIB Entries:

0@0.0.0.0/0

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]]

    [0] [@0]: dpo-drop ip4

1@0.0.0.0/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]

    [0] [@0]: dpo-drop ip4

2@240.0.0.0/4

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]]

    [0] [@0]: dpo-drop ip4

3@224.0.0.0/4

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]]

    [0] [@0]: dpo-drop ip4

4@255.255.255.255/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]]

    [0] [@0]: dpo-drop ip4

5@::/0

  unicast-ip6-chain

  [@0]: dpo-load-balance: [proto:ip6 index:6 buckets:1 uRPF:5 to:[0:0]]

    [0] [@0]: dpo-drop ip6

6@fe80::/10

  unicast-ip6-chain

  [@0]: dpo-load-balance: [proto:ip6 index:7 buckets:1 uRPF:6 to:[0:0]]

    [0] [@14]: ip6-link-local

7@10.161.26.0/24

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:8 to:[0:0]]

    [0] [@4]: ipv4-glean: TenGigabitEthernet7/0/0: mtu:9000 
ffffffffffff00a0c90000000806

8@10.161.26.0/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:9 to:[0:0]]

    [0] [@0]: dpo-drop ip4

9@10.161.26.255/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:11 to:[0:0]]

    [0] [@0]: dpo-drop ip4

10@10.161.26.9/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:12 buckets:1 uRPF:13 to:[0:0]]

    [0] [@2]: dpo-receive: 10.161.26.9 on TenGigabitEthernet7/0/0

11@10.161.55.0/24

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:14 buckets:1 uRPF:14 to:[0:0]]

    [0] [@12]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:12 to:[0:0]]

          [0] [@3]: arp-ipv4: via 10.161.26.1 TenGigabitEthernet7/0/0

12@10.161.26.1/32

  unicast-ip4-chain

  [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:12 to:[0:0]]

[0] [@3]: arp-ipv4: via 10.161.26.1 TenGigabitEthernet7/0/0

 

 

 

 

[root@localhost ~]# ip route

default via 192.169.46.1 dev eth0

10.161.26.0/24 dev vnet  proto kernel  scope link  src 10.161.26.9

169.254.0.0/16 dev eth0  scope link  metric 1011

169.254.0.0/16 dev eth3  scope link  metric 1012

169.254.0.0/16 dev eth6  scope link  metric 1013

169.254.0.0/16 dev eth4  scope link  metric 1015

169.254.0.0/16 dev eth2  scope link  metric 1016

169.254.0.0/16 dev eth5  scope link  metric 1017

192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1

192.169.46.0/24 dev eth0  proto kernel  scope link  src 192.169.46.244

[root@localhost ~]# ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

       valid_lft forever preferred_lft forever

    inet6 ::1/128 scope host

       valid_lft forever preferred_lft forever

9: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state 
DOWN                                                                            
                                                                                
  qlen 1000

    link/ether 52:54:00:0d:71:d9 brd ff:ff:ff:ff:ff:ff

    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0

       valid_lft forever preferred_lft forever

10: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 
st                                                                              
                                                                               
ate DOWN qlen 1000

    link/ether 52:54:00:0d:71:d9 brd ff:ff:ff:ff:ff:ff

11: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000

    link/ether 00:a0:c9:20:00:06 brd ff:ff:ff:ff:ff:ff

    inet 192.169.46.244/24 brd 192.169.46.255 scope global eth0

       valid_lft forever preferred_lft forever

    inet6 fe80::2a0:c9ff:fe20:6/64 scope link

       valid_lft forever preferred_lft forever

12: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000

    link/ether 00:a0:c9:06:11:13 brd ff:ff:ff:ff:ff:ff

    inet6 fe80::2a0:c9ff:fe06:1113/64 scope link

       valid_lft forever preferred_lft forever

13: eth6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 
                                                                                
                                                                             
1000

    link/ether 00:a0:c9:20:00:07 brd ff:ff:ff:ff:ff:ff

15: eth4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 
                                                                                
                                                                             
1000

    link/ether 34:12:78:56:01:01 brd ff:ff:ff:ff:ff:ff

16: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000

    link/ether 00:a0:c9:00:00:02 brd ff:ff:ff:ff:ff:ff

    inet6 fe80::2a0:c9ff:fe00:2/64 scope link

       valid_lft forever preferred_lft forever

17: eth5: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 
                                                                                
                                                                             
1000

    link/ether 34:12:78:56:01:03 brd ff:ff:ff:ff:ff:ff

18: vnet: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 4352 qdisc pfifo_fast 
st                                                                              
                                                                               
ate UP qlen 500

    link/none

    inet 10.161.26.9/24 scope global vnet:0

       valid_lft forever preferred_lft forever




Thanks

Jerry


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18456): https://lists.fd.io/g/vpp-dev/message/18456
Mute This Topic: https://lists.fd.io/mt/79415753/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