Stop DHCP services on Linux - Ubuntu

5,477

As far as an interface getting an IP via DHCP, that's controlled by /etc/network/interfaces - change any dhcp you find in the appropriate stanzas to static.

Share:
5,477

Related videos on Youtube

Jean
Author by

Jean

Updated on September 18, 2022

Comments

  • Jean
    Jean over 1 year

    How do I stop DHCP services on a particular ethernet port in Linux ? I was trying to take full control of an ethernet port of my computer to inject packets into the device plugged into it without being interfered by DHCP request traffic.

  • Jean
    Jean over 10 years
    This is what I am trying to do. stackoverflow.com/questions/18621261/masquerading-a-webserve‌​r I want to setup a connection with my network device and respond to the GET request it is sending with my local webserver Perl script. I thought I should disable all system service before I can inject http traffic into the port.
  • LawrenceC
    LawrenceC over 10 years
    Probably want to disable NetworkManager if it's running, service stop NetworkManager or similar. Then you may want to run lsof -i or netstat to see what else is listening, and stop programs or disable services accordingly if you want absolutely no other traffic on that interface.