Article 5H5FQ Disable static IP access automatically once DHCP is enabled

Disable static IP access automatically once DHCP is enabled

by
rk_25
from LinuxQuestions.org on (#5H5FQ)
I have a linux machine configured with both static IP and DHCP. I got a requirement that when the linux machine got IP using DHCP then that linux machine should only be accessible using DHCP IP, It should never be accessible by static IP which was configured already manually.

But when DHCP is down then the linux machine needs to be accessible by static IP automatically.

For example: -> LinuxMachine is configured manually with static IP 192.168.1.1. - > the same machine is configured with DHCP(client) enabled -> Now the machine got DHCP IP 192.168.1.15 (Automatically) after bootup

Requirement is the Linux machine to be accessible by DHCP IP 192.168.1.15 only and it should not be accessible by static IP 192.168.1.1.

Is this possible to disable/enable static IP access automatically?latest?d=yIl2AUoC8zA latest?i=TE6lnIQOSUs:FQV5s57QU1g:F7zBnMy latest?i=TE6lnIQOSUs:FQV5s57QU1g:V_sGLiP latest?d=qj6IDK7rITs latest?i=TE6lnIQOSUs:FQV5s57QU1g:gIN9vFwTE6lnIQOSUs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments