You are not logged in.

#1 2021-03-01 12:37:09

Welt
Member
Registered: 2020-09-04
Posts: 66

[SOLVED] Setting static IP

Hi guys i want to set static ip on my arch setup. Im totally newbie and my configiration file looks like this.

[Match]

Name=wlan0

[Network]

Adress=192.168.1.111/24
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4

My porting configiration on my TP-Link TD-W9970 modem is like this.

At the moment my connection is configured but degraded.

Last edited by Welt (2021-03-02 08:38:40)

Offline

#2 2021-03-01 16:56:00

tdowling
Member
Registered: 2020-11-26
Posts: 9

Re: [SOLVED] Setting static IP

What file is this and it's location?  Also are you using a network manager? smile

Offline

#3 2021-03-01 19:14:39

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Setting static IP

Welt wrote:
Adress=192.168.1.111/24

Is that a typo in the mystery configuration file or is that a transcription error?

How have you enabled the relevant networking services? Have you ensured that only a single networking service is enabled and running? Use 'systemctl status' to see an overview of running services.

Welt wrote:

At the moment my connection is configured but degraded.

How are you determining this? Please post verbatim terminal output rather than vague descriptive (and potentially incorrect) summaries.


Jin, Jîyan, Azadî

Offline

#4 2021-03-01 19:18:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Setting static IP

And is wlan0 actually the name for your adaper?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2021-03-02 08:00:27

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Setting static IP

Head_on_a_Stick wrote:
Welt wrote:
Adress=192.168.1.111/24

Is that a typo in the mystery configuration file or is that a transcription error?

It is in my /etc/systemd/network/30-wireless network file. All of my config is in there.

Head_on_a_Stick wrote:

How have you enabled the relevant networking services? Have you ensured that only a single networking service is enabled and running? Use 'systemctl status' to see an overview of running services.

I used systemd-networkd to do that.

Head_on_a_Stick wrote:
Welt wrote:

At the moment my connection is configured but degraded.

How are you determining this? Please post verbatim terminal output rather than vague descriptive (and potentially incorrect) summaries.

I used systemctl network status -a to determine that.

Offline

#6 2021-03-02 08:01:18

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Setting static IP

Slithery wrote:

And is wlan0 actually the name for your adaper?

Wlan0 is name of my qualcomm atheros network adapter.

Offline

#7 2021-03-02 08:05:16

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Setting static IP

tdowling wrote:

What file is this and it's location?  Also are you using a network manager? smile

Im not using any network managers i just used systemd-networkd to enable my iternet connection. And if i use dynamic ip via typing DHCP=yes into that config file instead of static one i got my succesfull connection. But the main point is this gonna be my mini server computer so i need a static ip with proper port forwarding settings.

Offline

#8 2021-03-02 08:25:35

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,692
Website

Re: [SOLVED] Setting static IP

Assuming that you provided correct information, which I doubt, since your last statement is a proof against that, I see at least two problems:
1) The keyword "Address" (contains two ds in English) is misspelled as @Head_on_a_Stick pointed out.
2) Your config file is missing the suffix ".network". This, however, is disproved by your statement, that just changing its content to a DHCP configuration works, so you provided us with a wrong / incomplete filename above.

Welt wrote:

I used systemctl network status -a to determine that.

I assume you want to keep that output a secret to make us helping you more difficult?

Last edited by schard (2021-03-02 08:29:15)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#9 2021-03-02 08:34:46

Welt
Member
Registered: 2020-09-04
Posts: 66

Re: [SOLVED] Setting static IP

schard wrote:

Assuming that you provided correct information, which I doubt, since your last statement is a proof against that, I see at least two problems:
1) The keyword "Address" (contains two ds in English) is misspelled as @Head_on_a_Stick pointed out.
2) Your config file is missing the suffix ".network". This, however, is disproved by your statement, that just changing its content to a DHCP configuration works, so you provided us with a wrong / incomplete filename above.

Welt wrote:

I used systemctl network status -a to determine that.

I assume you want to keep that output a secret to make us helping you more difficult?

Yeah corrected it after a restart it started to work. It was totally my stupid mis spelling fault guys sorry for intruption.

Last edited by Welt (2021-03-02 08:38:18)

Offline

Board footer

Powered by FluxBB