You are not logged in.

#1 2012-09-26 10:51:32

m0rph
Member
Registered: 2007-07-28
Posts: 26

netcfg: POST_UP executed only once

I have a folowwing dhcp profile:

CONNECTION='ethernet'
DESCRIPTION='description"'
INTERFACE='corp-lan'
IP='dhcp'
POST_UP='ip route add 192.168.11.0/24 dev corp-lan'
PRE_DOWN='ip route del 192.168.11.0/24 dev corp-lan'


When the system boots, a static route is added successfully. But when I disconnect and connect the network cable, IP address is set, and my static route is not added. POST_UP command is not executed in such case. How I can run command after interface brought up?

Offline

Board footer

Powered by FluxBB