Please don’t SHOUT by capitalizing; especially in a case like this which 
amounts to trying (unsuccessfully) to put two interfaces on the same subnet.

What this trace actually shows is that the dhcp client received two addresses.

D.

[0] GigabitEthernet2/1/0 state DHCP_BOUND installed 1 addr 192.168.128.98/17 gw 
192.168.128.1 server 192.168.128.1 dns 192.168.128.1
[1] GigabitEthernet2/2/0 state DHCP_BOUND installed 1 addr 192.168.128.97/17 gw 
192.168.128.1 server 192.168.128.1 dns 192.168.128.1
DBGvpp#


HOWEVER ABOVE OUTPUT SHOWS THAT BOTH INTERFACE HAS AN IP address ASSIGNED . BUT 
'show int address' does not show ip on second interface:


From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of ais...@gmail.com
Sent: Tuesday, July 28, 2020 4:50 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Not getting DHCP ip on second DPDK interface

Hi,

I created two DPDK interface on ubuntu VM and setting them to DHCP client. But 
only one interface gets DHCP IP.

1. BGvpp# show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     
Counter          Count
GigabitEthernet2/1/0              1     down         9000/0/0/0
GigabitEthernet2/2/0              2     down         9000/0/0/0
local0                            0     down          0/0/0/0
DBGvpp#

2. session  set
DBGvpp# set interface state GigabitEthernet2/1/0 up
DBGvpp# set dh
dhcp    dhcpv6
DBGvpp# set dhcp client intfc GigabitEthernet2/1/0
DBGvpp# show int address
GigabitEthernet2/1/0 (up):
  L3 192.168.128.98/17
GigabitEthernet2/2/0 (dn):
local0 (dn):
DBGvpp# set interface state GigabitEthernet2/2/0 up
DBGvpp# et dhcp client intfc GigabitEthernet2/2/0
unknown input `et dhcp client intfc GigabitEt...'
DBGvpp# set dhcp client intfc GigabitEthernet2/2/0
DBGvpp# show int address
GigabitEthernet2/1/0 (up):
  L3 192.168.128.98/17
GigabitEthernet2/2/0 (up):
local0 (dn):
DBGvpp# show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     
Counter          Count
GigabitEthernet2/1/0              1      up          9000/0/0/0     rx packets  
                 827
                                                                    rx bytes    
              113977
                                                                    tx packets  
                   5
                                                                    tx bytes    
                1330
                                                                    drops       
                 827
                                                                    ip4         
                 460
                                                                    ip6         
                 326
GigabitEthernet2/2/0              2      up          9000/0/0/0     rx packets  
                 512
                                                                    rx bytes    
               63609
                                                                    tx packets  
                   4
                                                                    tx bytes    
                1288
                                                                    drops       
                 512
                                                                    ip4         
                 294
                                                                    ip6         
                 202
local0                            0     down          0/0/0/0
DBGvpp# show dhc
dhcp    dhcp6   dhcpv6
DBGvpp# show dhcp client
[0] GigabitEthernet2/1/0 state DHCP_BOUND installed 1 addr 192.168.128.98/17 gw 
192.168.128.1 server 192.168.128.1 dns 192.168.128.1
[1] GigabitEthernet2/2/0 state DHCP_BOUND installed 1 addr 192.168.128.97/17 gw 
192.168.128.1 server 192.168.128.1 dns 192.168.128.1
DBGvpp#


HOWEVER ABOVE OUTPUT SHOWS THAT BOTH INTERFACE HAS AN IP address ASSIGNED . BUT 
'show int address' does not show ip on second interface:
DBGvpp# show int address
GigabitEthernet2/1/0 (up):
  L3 192.168.128.98/17
GigabitEthernet2/2/0 (up):
local0 (dn):

Also noticed that ping to Internet works only until first interface gets IP 
address. The moment the second interface is set to DHCP Client, ping stops 
working.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17100): https://lists.fd.io/g/vpp-dev/message/17100
Mute This Topic: https://lists.fd.io/mt/75840242/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