Re: Wait for DHCP client on interface activation




Hi,


The first connection is fine. But my case is in second connection.
I call this command:

# date && nmcli c up prl_nettool-nm-eth0 && ip a && date                      
Sat Jun 18 04:01:32 EDT 2016
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc netem state UP qlen 1000
    link/ether 00:1c:42:ab:6a:cd brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21c:42ff:feab:6acd/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1c:42:7a:55:d3 brd ff:ff:ff:ff:ff:ff
    inet 10.30.19.193/16 brd 10.30.255.255 scope global dynamic eth1
       valid_lft 85889sec preferred_lft 85889sec
    inet6 fe80::21c:42ff:fe7a:55d3/64 scope link
       valid_lft forever preferred_lft forever
Sat Jun 18 04:01:34 EDT 2016

Here you can see start and end time. And in log dhcp response received after the end.
I attach new log. Configuration the same.

Thank you,

Alexander.


From: Beniamino Galvani <bgalvani redhat com>
Sent: Friday, June 17, 2016 11:46:06 PM
To: Alexander Pisarev
Cc: networkmanager-list gnome org
Subject: Re: Wait for DHCP client on interface activation
 
On Fri, Jun 17, 2016 at 02:17:07PM +0000, Alexander Pisarev wrote:
> Hi.
>
> Here it is. If need more data or I do something wrong tell me.

Hi,

in the log I see:

  10:04:50 NM[669]: <info>  Auto-activating connection 'prl_nettool-nm-eth0'.
  ...
  10:04:51 dhclient[729]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67
  10:04:51 dhclient[729]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
  10:04:51 dhclient[729]: DHCPOFFER from 10.30.0.25
  10:04:51 dhclient[729]: DHCPACK from 10.30.0.24 (xid=0x79722431)
  ...
  10:04:51 NM[669]: <info>  (eth0): DHCPv4 state changed unknown -> bound
  ...
  10:04:51 NM[669]: <info>  Policy set 'prl_nettool-nm-eth0' (eth0) as default for IPv4 routing and DNS.

At this point eth0 has an address, a gateway and the default
route. After, the connection becomes active:

  10:04:51 NM[669]: <info>  (eth0): Activation: successful, device activated.

When this message is printed nmcli should return successfully; so from
the log it seems that the activation is working as expected and the
interface is configured when nmcli returns. Can you please explain the
problem you are seeing?

Beniamino

Attachment: nm.log
Description: nm.log



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]