Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifcfg script is not triggered when cable is disconnected #992

Open
Trekky12 opened this issue Nov 16, 2023 · 0 comments
Open

ifcfg script is not triggered when cable is disconnected #992

Trekky12 opened this issue Nov 16, 2023 · 0 comments

Comments

@Trekky12
Copy link

I have two network interfaces eth0 and eth1 on openSUSE 15.4. While eth1 is static in the air-gapped local network I want to be able to update the server and connect a cable to eth0 for internet access (dhcp).
I then need to delete the default gateway published by dhcp when the cable on eth0 is disconnected.
Therefore I have added a POST_DOWN_SCRIPT variable on ifcfg-eth0.

Unfortunately this script is not triggered when the cable is disconnected but only when using wicked ifdown eth0.

wicked ifstatus eth0 shows no-carrier but state device-up which maybe is the problem here?

Is there any solution to trigger a script when the interface has no-carrier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant