Article 6ETP0 Network card without an IP address

Network card without an IP address

by
Jason.nix
from LinuxQuestions.org on (#6ETP0)
Hello,
I am using Debian version 12. I want to have two NICs without any IP address, but the NICs must be up. Should I use the DHCP protocol in the network card settings?
Code:auto eth0
allow-hotplug eth0
iface eth0 inet dhcpI found something like the below:
Code:iface eth0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE downBut, I don't know which one is correct!

Thank you.
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