Jump to content

ArchLinux network config

Go to solution Solved by Sauron,

If you want to use a static IP you need to make sure the router is willing to lease you that IP. Given your other PC's IP address you're using the wrong subnet entirely, your address should be 10.49.111.<something between 1 and 253>. 192.168.1.1 is just an example, not every router is configured like that. Also the address you hardcoded there might not even be available.

 

But... why do you want a static IP in the first place? Just use dhcp.

Hello,
I installed Archlinux recently, it's installed correctly and boot correctly but I can not connect to my network (it's a pro network important for ip or gateway i think).
I followed this tutorial in addition to the official tutorial and everything went well: https://arcolinuxd.com/5-the-actual-installation-of-arch-linux-phase-1-uefi/


From my work pc I have the following ip/gateway: 

Adresse IPv4. . . . . . . . . . . . . .: 10.49.111.11
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Passerelle par défaut. . . . . . . . . : 10.49.111.254

 

From the pc archlinux I have the following interfaces: 

1: lo: [...]
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
	link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.102/24 brd 192.168.1.255 scope global enp8s0
    	valid_lft forever preferred_lft forever
    inet6 xxxx::xxxx:xxxx:xxxx:xxxx/xx scope link
    	valid_lft forever preferred_lft forever
3: wlp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
	link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff

 

My / etc / netctl / enp8s0 file contains: 

Description='A basic static ethernet connection'
Interface=enp8s0
Connection=ethernet
IP=static
Address('192.168.1.102/24' '10.49.111.0/255')
#Routes=('192.168.0.0/24' via '192.168.1.2')
Gateway=('192.168.1.1' '10.49.11.254')
DNS=('192.168.1.1' '10.49.11.254' '8.8.8.8' '8.8.8.4.4')


My / etc / hostname file contains:

helyxportalan

 

The log message is :

for ping 8.8.8.8 
the network is not accessible

for ping google.com
temporary failure in resolving the name

 

Do you have an idea ?
(and yes I read the doc and followed the official tutorial as well, but nothing changes)

Link to comment
https://linustechtips.com/topic/1099173-archlinux-network-config/
Share on other sites

Link to post
Share on other sites

If you want to use a static IP you need to make sure the router is willing to lease you that IP. Given your other PC's IP address you're using the wrong subnet entirely, your address should be 10.49.111.<something between 1 and 253>. 192.168.1.1 is just an example, not every router is configured like that. Also the address you hardcoded there might not even be available.

 

But... why do you want a static IP in the first place? Just use dhcp.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

24 minutes ago, Sauron said:

But... why do you want a static IP in the first place? Just use dhcp.

you're absolutely right, I think I'm staying focused on this static ip solution because of the installation where the dhcp did not work.

I made a dhcpcd and everything works!

thank you for clarifying my ideas! 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×