On Thu, Mar 27, 2014 at 6:58 PM, sven falempin <sven.falem...@gmail.com> wrote:
> On Thu, Mar 27, 2014 at 6:42 PM, Alexander Hall <alexan...@beard.se> wrote:
>> On 03/27/14 23:36, Adam Thompson wrote:
>>
>>>   my $src = system('/usr/bin/pkill -HUP -f "^dhclient: trunk0"');
>>
>>
>> my $src = system('/usr/bin/pkill', '-HUP', '-f', '^dhclient: trunk0');
>>
>> /Alexander
>>
>

Because you was all so helpful,
i now have the reflex to ask, nevertheless it is not that good to
abuse good think,

Because i saw pkill -HUP was kinda restarting the dhclient,
and because i did read the manpage, AND alexander mail I <simply> did:

system('/sbin/dhclient', '-l', '/run/dhclient.leases.trunk0', 'trunk0');

(instead of sendind -HUP)
how foolish of me !
The dhclient start, get a lease ...

and die (leaving the trunk0 unconfigured) !!!!

logs :

  DB<7>
DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 10.0.0.254 (96:4f:87:9c:ad:67)
DHCPREQUEST on trunk0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.254 (96:4f:87:9c:ad:67)
bound to 10.0.0.101 -- renewal in 21600 seconds.
main::(/etc/network.pl:202):      });
  DB<7> n
route: writing to routing socket: Network is unreachable
add host 10.0.0.171: gateway 10.0.0.254: Network is unreachable
  DB<7> q

# ifconfig trunk0
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr fe:e1:ba:d1:b4:76
        priority: 0
        trunk: trunkproto roundrobin
                trunkport tun1 active
                trunkport tun0 master,active
        groups: trunk
        media: Ethernet autoselect
        status: active
        inet6 fe80::200:24ff:fed0:8ed0%trunk0 prefixlen 64 scopeid 0xb

-- 
---------------------------------------------------------------------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\

Reply via email to