You are not logged in.

#1 2015-09-18 15:05:56

francois.e
Member
Registered: 2011-11-02
Posts: 61

Setting up a static IP

It has been a while since I had a try with arch linux. I hope this one will be the good one. It seems that my arch installation does not have the right networking setup.

I used the beginners guide and the installation went well using the ipxe.lkrn imageand everything went fine.
1.0 Until reboot where I wanted to install xorg-server with pacman.
2.0 I realised that pacman would not fetch the packages, I am working in root mode
3.0 I have a wired connection to a router and the same computer connects the internet with another linux distribution.

I have tried to setup internet connection in my new archlinux installation thru the proposed way of the beginners guide:
- the wired static ip method, my wired link name is enp2s0, and changed accordingly the /etc/dhcpcd.conf file backing up the original one thus the only info in the /etc/dhcpcd.conf being:
interface enp0s25
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8

- ping www.google.com and ping 8.8.8.8 would yield host unreacheable

Here is the output of dhcpcd -k followed by dhcpcd:
wlp3s0: starting wpa_supplicant
dev: loaded udev
DUID 00:01:00:01:1d:8e:37:57:00:21:5d:c8:cd:8a
enp2s0: IAID 21:64:78:8e
wlp3s0: waiting for carrier
enp2s0: soliciting an IPv6 router
enp2s0: soliciting a DHCP lease
enp2s0: offered 10.0.0.17 from 10.0.0.1
enp2s0: probing static address 10.0.0.17/24
enp2s0: leased 10.0.0.17 for 86400 seconds
enp2s0: router 192.168.0.1 requires a host route
enp2s0: adding route to 10.0.0.0/24
enp2s0: adding host route to 192.168.0.1
enp2s0: adding default route via 192.168.0.1
forked to background, child pid 879

What is missing here to establish a wire internet connection.

Last edited by francois.e (2015-09-18 15:07:32)

Offline

#2 2015-09-18 21:57:41

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: Setting up a static IP

https://releng.archlinux.org/pxeboot/ says:

"A computer that connects to the internet via LAN and DHCP."

So we can assume DHCP worked on the installation iso, including ping www.google.com ? From your log, it does seem you're getting a lease.

The question is, why are you trying to configure a static IP? Also, the values there should not be taken literally from the guide, but adapted to your config.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-09-18 22:02:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: Setting up a static IP


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2015-09-18 22:10:58

francois.e
Member
Registered: 2011-11-02
Posts: 61

Re: Setting up a static IP

@alad:
Things went find with the iso.

I am not able to connect to the wired internet. So where do I read next on the config? Should I provide lspci output? The problem is that I am away from this first linux box. On this second one I would rather try to install in virtual box.

Last edited by francois.e (2015-09-18 22:20:46)

Offline

#5 2015-09-18 22:27:26

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: Setting up a static IP

Restore the original /etc/dhcpcd.conf, disable the dhcpcd service (if you've enabled any), and follow the steps here:

https://wiki.archlinux.org/index.php/Be … uide#Wired


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2015-09-18 22:32:27

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,961

Re: Setting up a static IP

enp2s0: soliciting an IPv6 router
enp2s0: soliciting a DHCP lease
enp2s0: offered 10.0.0.17 from 10.0.0.1
enp2s0: probing static address 10.0.0.17/24
enp2s0: leased 10.0.0.17 for 86400 seconds
enp2s0: router 192.168.0.1 requires a host route
enp2s0: adding route to 10.0.0.0/24

Those lines suggest your router is 10.0.0.1 and handles addresses in the 10.0.0.0/24 network range .
You are telling your pc to use the 192.168.0/24 network range, and use 192.168.0.1 to connect to outside world.
try pinging 192.168.0.1 , it will fail.

Use a static address in the 10.0.0.0/24 range instead.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2015-09-26 08:24:39

francois.e
Member
Registered: 2011-11-02
Posts: 61

Re: Setting up a static IP

@lone_wolfe:
Your remark makes a lot of sense. My router setup does not fit with the proposed address. I will look at this one, presently I am not on the same router.

Meanwhile working under a new installation under vbox trying to get networking going on, the network was not working.

I installed networkmanager and nm-applet with the help of the archlinux.iso thru the chroot procedure. Rebooted the system without the iso and started networkmananger with:
sytemctl start NetworkManager.service

Is there a way to start networkmanager automatically at each bootup?

Last edited by francois.e (2015-09-26 08:26:45)

Offline

#8 2015-09-26 09:52:35

thatsallyourspaceships
Member
Registered: 2012-06-03
Posts: 24

Offline

#9 2015-09-26 16:31:10

francois.e
Member
Registered: 2011-11-02
Posts: 61

Re: Setting up a static IP

This is what I thought meanwhile.

systemctl enable NetworkManager.service

did the job

I am begining to get the DIY philosohy, though it is really nice to have some people around, pinpointing or commenting.

Thanks.

Offline

#10 2015-09-27 09:14:03

thatsallyourspaceships
Member
Registered: 2012-06-03
Posts: 24

Re: Setting up a static IP

u might aswell read the manpages, it is imho just not as beginner friendly as the wiki...especially when eng is not ur native languagge...

Offline

Board footer

Powered by FluxBB