log up or down interface end change physical address

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

log up or down interface end change physical address

Krzysztof Strzeszewski-2
Hi,

How to log up or down (connect or not connect cable) interface end
change physical address on OpenBSD?


------------------------------
Regards,
Krzysztof Strzeszewski

Reply | Threaded
Open this post in threaded view
|

Re: log up or down interface end change physical address

trondd-2
On Thu, September 21, 2017 9:29 am, Krzysztof Strzeszewski wrote:

> Hi,
>
> How to log up or down (connect or not connect cable) interface end
> change physical address on OpenBSD?
>
>
> ------------------------------
> Regards,
> Krzysztof Strzeszewski
>

ifstated(8) and some scripts?

Reply | Threaded
Open this post in threaded view
|

Re: log up or down interface end change physical address

George Brown
In reply to this post by Krzysztof Strzeszewski-2
There's ifstated - http://man.openbsd.org/ifstated

On 21 September 2017 at 14:29, Krzysztof Strzeszewski <[hidden email]> wrote:

> Hi,
>
> How to log up or down (connect or not connect cable) interface end change
> physical address on OpenBSD?
>
>
> ------------------------------
> Regards,
> Krzysztof Strzeszewski
>

Reply | Threaded
Open this post in threaded view
|

Re: log up or down interface end change physical address

Karsten Horsmann
Hello,

as before discussed Ifstated is the right tool.

Here you see an nice example for in kernel pppoe that runs scripts on the
different states:

http://www.pro-bono-publico.de/openbsd/pppoe/

Kind regards
Karsten

Am 21.09.2017 5:32 nachm. schrieb "George Brown" <[hidden email]>:

> There's ifstated - http://man.openbsd.org/ifstated
>
> On 21 September 2017 at 14:29, Krzysztof Strzeszewski <[hidden email]>
> wrote:
> > Hi,
> >
> > How to log up or down (connect or not connect cable) interface end change
> > physical address on OpenBSD?
> >
> >
> > ------------------------------
> > Regards,
> > Krzysztof Strzeszewski
> >
>
>