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