You are not logged in.

#1 2021-01-12 07:34:19

chomwitt
Member
Registered: 2021-01-12
Posts: 2

Setting a network interface in my vps

Greetings and happy new year.

I've installed arch in my vps , but i have installed only base and sshd.
I have set an ip with :
$ ip addr add 10.0.0.1/24 dev eth0

Now when i reboot my ip configuration is lost.
Should i install a systemd network manager?

Offline

#2 2021-01-12 13:05:49

Sffred
Member
Registered: 2020-08-30
Posts: 55

Re: Setting a network interface in my vps

Please refer to https://wiki.archlinux.org/index.php/Ne … figuration.
ip set by

ip addr add 10.0.0.1/24 dev eth0

will be lost. You need to use a network manager. The default network manager is systemd-networkd (which does not require an additional package). Refer to this page for configuration:https://wiki.archlinux.org/index.php/Systemd-networkd
By the way, don't forget to enable systemd-resolved for dns support.

Offline

#3 2021-01-12 13:52:57

chomwitt
Member
Registered: 2021-01-12
Posts: 2

Re: Setting a network interface in my vps

Thanks for the reply. indeed i managed to set my network interface correctly by :

# nano /etc/systemd/network/ens3.network

The content should be as follows:

[Match]
Name=ens3

[Network]
DHCP=ipv4

Last edited by chomwitt (2021-01-12 13:54:36)

Offline

#4 2021-01-17 02:12:01

Sffred
Member
Registered: 2020-08-30
Posts: 55

Re: Setting a network interface in my vps

I am glad that you get this fixed. Maybe you should mark this topic as [SOLVED] to let others know.

Offline

Board footer

Powered by FluxBB