You are not logged in.
Hey, so I've been trying to set up a static private ip for my machine so that it doesn't get a new ip everytime I restart my router but nothing I did seem to work.
I tried to create a file "wlp2s0" in my /etc/netctl/ folder which contains:
Description='A basic static ethernet connection'
Interface=enp1s0
Connection=ethernet
IP=static
Address=('192.168.0.100/24')
Gateway=('192.168.0.1')
DNS=('192.168.0.1' '8.8.8.8' '8.8.4.4')the template is taken from /netctl/examples and I inputted my correct address, default gateway and Interface name.
I did
sudo netctl enable enp1s0and yet the ip still changes when I restart the router so I can't establish a successful port forwarding.
Last edited by hitman47 (2019-07-29 13:00:28)
Offline
Have you disabled whatever was previously managing your networking?
systemctl list-unit-files --state=enabledOffline
problem was solved by disabling dhcp@wlp2s0 service and dhcp service which didn't show up when I typed the command
systemctl list-unit-files --state=enabled
Offline