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

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



Note: This reply is addressed specifically to Brian.

Mon cheri

> Sent: Thursday, March 03, 2022 at 1:59 AM
> From: "Brian" <ad44@cityscape.co.uk>
> To: debian-user@lists.debian.org
> Subject: Re: What should I put inside the file called wlan0?
>
>
> (Nothing to do with your question but these two lines are superfluous:
>
> auto lo
> iface lo inet loopback).
>
> --
> Brian.
>
I just remembered I should seek more clarification about your above remark.

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



while in /etc/network/interfaces.d/brian they are:

# The loopback network interface
auto lo
iface lo inet loopback

# 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

Did you mean to tell me that the following lines can be omitted from both /etc/network/interfaces AND /etc/network/interfaces.d/brian ?

# The loopback network interface
auto lo
iface lo inet loopback


Best wishes.

Stella


Reply to: