A Two NIC Question
I have two NIC's in this box (with one active and managed), and I have the following in /etc/systemd/network/ 20-wired.network
[Match]
Name=eno1
[Network]
Address=10X.XXX.91.154/29
Gateway=10X.XXX.91.158
DNS=4.2.2.1
DNS=4.2.2.2
Do I need another file for the second NIC? If not, how do the stanza's work exactly since they are not nested in obvious stanzas? So does "[Match]" start a new stanza so to speak?
Also, the second NIC will be DHCP configured.
-KQ6UP
About this post
- Posted
- Archived
- Score
- 8 · 79% up
- Kind
- Text
- ID
- 10squp6
3 comments
You can wildcard the Name if you want multiple NICs to have the same config (e.g. DHCP). Otherwise yes, you need separate files.
So just add it in 30-wired and because it is by NIC udev name, order does not matter (eg what file matches first).
correct.