[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What should I put inside the file called wlan0?



On Wed 02 Mar 2022 at 09:01:55 +0100, Stella Ashburne wrote:

> Dearie
> 
> > Sent: Wednesday, March 02, 2022 at 12:20 AM
> > From: "David Wright" <deblis@lionunicorn.co.uk>
> > To: debian-user@lists.debian.org
> > Subject: Re: What should I put inside the file called wlan0?
> >
> >
> > As long as you have "source /etc/network/interfaces.d/*" in your
> > /e/n/interfaces file, then you can call the file wlp7s0, or wlp3s0,
> > or anything else, and it will be read. That line in quotes is now
> > the default in Debian.
> >
> 
> Just so to be clear......
> 
> The contents of my /etc/network/interfaces file are:
> 
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> source /etc/network/interfaces.d/*
> 
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> #allow-hotplug enp2s0
> #iface enp6s0 inet static
> #	address 192.168.1.77/24
> #	gateway 192.168.1.1
> 	# dns-* options are implemented by the resolvconf package, if installed
> #	dns-nameservers 1.1.1.1 8.8.8.8
> 
> # The primary network interface
> allow-hotplug wlp7s0
> iface wlp7s0 inet static
>         wpa-ssid JupiterRising
>         wpa-psk (a long string of alphanumeric characters)
>         address 192.168.1.99/24
>         gateway 192.168.1.1
>         # dns-* options are implemented by the resolvconf package, if installed
>         dns-nameservers 1.1.1.1 8.8.8.8
> 
> If I have a file called dave in /etc/network/interfaces.d/ and its contents are:
> 
> 
> 
> # The primary network interface
> allow-hotplug wlp7s0
> iface wlp7s0 inet static
>         wpa-ssid JupiterRising
>         wpa-psk (a long string of alphanumeric characters)
>         address 192.168.1.99/24
>         gateway 192.168.1.1
>         # dns-* options are implemented by the resolvconf package, if installed
>         dns-nameservers 1.1.1.1 8.8.8.8
> 
> 
> Are you saying that my /etc/network/interfaces file may look like the following so long as the line "source /etc/network/interfaces.d/*" (without quotes) is present?

Correct, although I do nit understand what you gain from using
/etc/network/interfaces.d/.

> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> source /etc/network/interfaces.d/*
> 
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> #allow-hotplug enp2s0
> #iface enp6s0 inet static
> #	address 192.168.1.77/24
> #	gateway 192.168.1.1
> 	# dns-* options are implemented by the resolvconf package, if installed
> #	dns-nameservers 1.1.1.1 8.8.8.

(Nothing to do with your question but these two lines are superfluous:

auto lo
iface lo inet loopback).

-- 
Brian.


Reply to: