You are not logged in.
Some background info... I was attempting to set up a static IP for my desktop at home and get my router to forward there in order to ssh from outside of my network. In the process of doing so I completely messed something up and now I cannot connect via Ethernet at all ![]()
Here's the output of some relevant commands:
[juanes@juanes ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 18:60:24:71:32:9a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute enp2s0
valid_lft forever preferred_lft forever
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 92:21:e2:65:4d:76 brd ff:ff:ff:ff:ff:ff[juanes@juanes ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 18:60:24:71:32:9a brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
link/ether 92:21:e2:65:4d:76 brd ff:ff:ff:ff:ff:ffI attempted to configure a static IP address using netctl, following this guide step by step: https://ostechnix.com/configure-static- … rch-linux/
This means I ran
cp /etc/netcl/examples/ethernet-static /etc/netctl/enp2s0modified /etc/netctl/enp2s0 to look as follows:
Description='A basic static ethernet connection'
Interface=enp2s0
Connection=ethernet
IP=static
Address=('192.168.1.23/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.1')
## For IPv6 autoconfiguration
#IP6=stateless
or IPv6 static address configuration#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'ran the following series of commands:
sudo netctl enable enp2s0
sudo netctl start enp2s0
sudo systemctl stop dhcpcd
sudo systemctl disable dhcpcdand rebooted. However, when I run
ip a I get exactly what you see at the beginning of the post (i.e. the IP address on the enp2s0 file is nowhere to be seen.) In regards to the 192.168.1.2 IP address you see there (from running ip a), I think it was my attempt to set up the static IP address using something other than netctl but I cant recall now what I was using...
HELP PLEASE!
Last edited by imjuanes (2020-08-20 22:19:28)
Offline
Did you do any configuration to your router?
Offline
HELP PLEASE!
Don't do that. It's pitiful and pointless.
Let's first see what services are running:
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -fftr, you'd have to first stop dhcpcd, then start netctl.
Also as long as
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000]
the NIC is already up, netctl won't do anything with it - you likely got an error message and the suggestion to look at the service status?
Online
I'm thinking you might want to rethink your strategy.
If you assign a static ip address to that nic and then go to starbucks (or whatever) you are going to have a problem.
Your home router should have a facility to reserve an ip address for the mac address of the laptop.
Never mind, I misread.
Last edited by Zod (2020-08-20 13:07:16)
Offline
Can you ping 192.168.1.1 ?
What is the output of ip route ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Hi all, thanks for your responses.
ewaller,
Can you ping 192.168.1.1 ?
What is the output of ip route ?
No I cant, and below you'll find the output of ip route.
[juanes@juanes netctl]$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.2 icmp_seq=1 Destination Host Unreachable
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
From 192.168.1.2 icmp_seq=3 Destination Host Unreachable
From 192.168.1.2 icmp_seq=4 Destination Host Unreachable
From 192.168.1.2 icmp_seq=5 Destination Host Unreachable
From 192.168.1.2 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6080ms
pipe 4[juanes@juanes netctl]$ ip route
default via 192.168.1.1 dev enp2s0 src 192.168.1.2 metric 202
192.168.1.0/24 dev enp2s0 proto dhcp scope link src 192.168.1.2 metric 202 Don't do that. It's pitiful and pointless.
Let's first see what services are running:
seth: sorry, wont do that again. Here's the output of the command you issued.
[juanes@juanes netctl]$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
dbus-org.freedesktop.nm-dispatcher.service | system
dhcpcd@enp2s0.service | multi-user.target.wants
dirmngr.socket | sockets.target.wants
display-manager.service | system
getty@tty1.service | getty.target.wants
gpg-agent-browser.socket | sockets.target.wants
gpg-agent-extra.socket | sockets.target.wants
gpg-agent-ssh.socket | sockets.target.wants
gpg-agent.socket | sockets.target.wants
netctl.service | multi-user.target.wants
netctl@enp2s0.service | multi-user.target.wants
netctl@mynet.service | multi-user.target.wants
NetworkManager-wait-online.service | network-online.target.wants
NetworkManager.service | multi-user.target.wants
org.cups.cupsd.path | multi-user.target.wants
org.cups.cupsd.service | printer.target.wants
org.cups.cupsd.socket | sockets.target.wants
p11-kit-server.socket | sockets.target.wants
pipewire.socket | sockets.target.wants
pulseaudio.socket | sockets.target.wants
remote-fs.target | multi-user.target.wants
sshd.service | multi-user.target.wantsDid you do any configuration to your router?
d_fajardo: yes I did. I have an ARRIS BGW210-700 router and I was attempting do open up a port and forward it to my desktop's local ip address.
Offline
You've dhcpcd, 3 netctl and networkmanager enabled.
If you want to use netctl, stop and disable the dhcpcd and networkmanager services.
If netctl@enp2s0 and netctl@mynet operate on the same NIC, stop at least one of them.
Online
You've dhcpcd, 3 netctl and networkmanager enabled.
If you want to use netctl, stop and disable the dhcpcd and networkmanager services.
If netctl@enp2s0 and netctl@mynet operate on the same NIC, stop at least one of them.
seth,
I ran the following series of commands:
sudo systemctl stop dhcpcd@enp2s0.service
sudo systemctl disable dhcpcd@enp2s0.service
sudo systemctl stop netctl.service
sudo systemctl disable netctl.service
sudo systemctl stop netctl@mynet.service
sudo systemctl disable netctl@mynet.serviceI didnt disable networkmanager because that is what I am using to connect to the wifi in the mean time and communicate with you. This is the output of the command you gave me previously, after running the ones I just mentioned:
[juanes@juanes netctl]$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
dbus-org.freedesktop.nm-dispatcher.service | system
dirmngr.socket | sockets.target.wants
display-manager.service | system
getty@tty1.service | getty.target.wants
gpg-agent-browser.socket | sockets.target.wants
gpg-agent-extra.socket | sockets.target.wants
gpg-agent-ssh.socket | sockets.target.wants
gpg-agent.socket | sockets.target.wants
netctl@enp2s0.service | multi-user.target.wants
NetworkManager-wait-online.service | network-online.target.wants
NetworkManager.service | multi-user.target.wants
org.cups.cupsd.path | multi-user.target.wants
org.cups.cupsd.service | printer.target.wants
org.cups.cupsd.socket | sockets.target.wants
p11-kit-server.socket | sockets.target.wants
pipewire.socket | sockets.target.wants
pulseaudio.socket | sockets.target.wants
remote-fs.target | multi-user.target.wants
sshd.service | multi-user.target.wantsI turned off the wifi and attempted to connect via wire and it works perfectly! Before, it would connect, disconnect, and immediately connect, indefinitely. I assume it was all the services trying to go at it at the same time?
Offline