You are not logged in.

#1 2019-01-13 06:03:04

h7x4abk3g
Member
Registered: 2019-01-13
Posts: 2
Website

[Solved] Nexthop error during direct eth connection configuration

I'm currently trying to configure direct networking between a small Linux server with an smb share and my laptop running arch. These are connected by ethernet via a switch.

The server is configured with an ip of 10.0.0.40/24 and the laptop with 10.0.0.41/24 while it's also connected to a normal router in 192.168.1.0/24. The servers network card is called "eth1" and laptop is called "eno1". I was able to set up this ip route on the smb share:

10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.40

but while trying to configure my laptop with this command:

ip route add 10.0.0.0/24 dev eno1 proto kernel scope link src 10.0.0.41

I'm getting this error:

Error: Device for nexthop is not up.

While looking around on the internet for solutions to this error, I'm just getting results of people explaining that my gateway is not set. In my case, I do not want to use a gateway. Am I making an obvious error?

Last edited by h7x4abk3g (2019-01-14 13:30:18)

Offline

#2 2019-01-13 09:59:14

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [Solved] Nexthop error during direct eth connection configuration

also connected to a normal router in 192.168.1.0/24

How? Ie. through what interface and what does the routing table look like before you try the 10.0.0.0/24 and is eno1 actually up?
Also ensure no other NM service wants to control the interface.

ip a
ip r
systemctl list-unit-files --state=enabled

Online

#3 2019-01-14 13:23:45

h7x4abk3g
Member
Registered: 2019-01-13
Posts: 2
Website

Re: [Solved] Nexthop error during direct eth connection configuration

I feel a little stupid now. Thanks for mentioning that eno1 also have to be up. Problem solved.

Offline

Board footer

Powered by FluxBB