You are not logged in.

#1 2022-02-26 21:23:06

xabdax
Member
Registered: 2021-09-12
Posts: 4

[Solved] Assigning a static IP to an ethernet port

I was trying to follow this answer:

https://unix.stackexchange.com/a/295403

and while the command ifconfig was working in Ubuntu I found out that Arch is not using the package net-tools (which ifconfig is part of) anymore as explained in http://www.archlinux.org/news/deprecation-of-net-tools/.
In order to set the interface ip address of my ethernet port to a static ip address, I was therefore hoping to find something similar to

sudo ifconfig eth2 192.168.9.1

as given in that stackexchange answer. I found a bunch of manuals that require to edit files and disable certain daemons, but I was hoping to find something that is as elegant as the one line above, and only temporary so that if I rebooted my system everything would go back to normal.

Last edited by xabdax (2022-02-26 22:57:02)

Offline

#2 2022-02-26 21:32:24

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

Re: [Solved] Assigning a static IP to an ethernet port


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

Board footer

Powered by FluxBB