Re: Predictable Network Interface Names
> Some people get excessively worked up over things like interface names
> and like to throw around strong words for dramatic effect. Just ignore
> the noise.
I've just come to accept that the actual interface name is going to be some
bizarre name. So I look it up, and then promptly rename it in "/etc/network/
interfaces" like so:
- - - snip - - -
iface enp18s0f0 inet manual
auto LAN
iface LAN inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.1.1
dns-nameservers 192.168.168.1
dns-search locallan.net
bridge_ports enp18s0f0
- - - snip - - -
This uses Debian's bridge-utils package to rename the interface.
From then on, my machines have an interface named LAN, WAN, DMZ, etc. --
all "logical" names and I don't have to deal with enp18s0f0 or enp18s1e0 or
some such nonsense.
--
"When law and morality contradict each other, the citizen has the cruel
alternative of either losing his moral sense or losing his respect for the
law." -- Frederic Bastiat, 19th century French author and economist.
Reply to: