Re: WiFi static IP address, no /etc/interfaces [SOLVED]

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
User avatar
ocpaul20
Posts: 33
Joined: Tue Jul 14, 2020 3:46 am
Location: PRC
Has thanked: 4 times
Been thanked: 1 time

Re: WiFi static IP address, no /etc/interfaces [SOLVED]

Post by ocpaul20 »

On my Debiandog there is nothing(much) in the /etc/network/interfaces file.
I am used to adding stuff to /etc/network/interfaces file and this is what all of the searches seem to do. However, obviously this way of doing things is no longer the right way.

In my /etc/network/interfaces file there is not much

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

In my /etc/network/interfaces.d directory there is nothing

So, I look in my /etc/frisbee directory and I have a
dhcpcd.conf
frisbee.conf
interface
wpa_supplicant.conf

Where and how should I tell my system I want a static IP address for both the eth0 and wlan0 interfaces please?

Thanks
Paul

Last edited by ocpaul20 on Wed Nov 17, 2021 11:43 pm, edited 1 time in total.

System: Fanless PC DebianDog Buster Frugal

User avatar
fredx181
Posts: 2680
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 295 times
Been thanked: 1056 times
Contact:

Re: WiFi static IP address, no /etc/interfaces

Post by fredx181 »

Hi ocpaul20, not sure if this helps, how I did was adding static IP for eth0 this way to /etc/frisbee/dhcpcd.conf:

Code: Select all

interface eth0
static ip_address=192.168.1.53
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

Where 192.168.1.1 is the address of my router, probably yours is different.

User avatar
ocpaul20
Posts: 33
Joined: Tue Jul 14, 2020 3:46 am
Location: PRC
Has thanked: 4 times
Been thanked: 1 time

Re: WiFi static IP address, no /etc/interfaces[SOLVED]

Post by ocpaul20 »

Thanks Fred, I will give it a try and come back and report what happened.

So, using /etc/frisbee/wpa_supplicant.conf attaches to the WiFi router and using /etc/frisbee/dhcpcd.conf hands out the IP addresses
Yes, this seems to have fixed it. That's great. Thanks.

System: Fanless PC DebianDog Buster Frugal

Post Reply

Return to “DebianDogs”