I am administering a SSH server and trying to configure port forwarding through my router for access outside of the subnet. The server is located at subnet IP address 192.168.86.97
however, when I try to configure the router to port forward to this IP or any IP other than 192.168.0.X
, I get the error
Internal IP Address is not in LAN.
To solve this, I have tried assigning the device a static IP within the range 192.168.0.X
using:
sudo ip address add 192.168.0.97/24 dev eno1
However, this IP address assignment does not appear to be reflected on any other machine but the server itself. That is, the server may ping itself at 192.168.0.97
, but no other device on the subnet can ping 192.168.0.97
. I want to solve this, and my questions are
- What does it mean that the Internal IP address
192.168.86.97
is not in LAN? - How can I assign this machine an IP address in the range
192.168.0.X
so that the port forwarding works correctly?
I tried changing the router's LAN to 192.168.86.X
, but that just made all of the IP addresses on the network jump to 192.168.87.X
. After doing that, here are the results from these commands
ip addr show
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: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 30:9c:23:df:3a:f9 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.97/24 brd 192.168.0.255 scope global eno1
valid_lft forever preferred_lft forever
inet 192.168.87.32/24 brd 192.168.87.255 scope global noprefixroute eno1
valid_lft forever preferred_lft forever
inet6 fe80::d97d:409f:4793:c98e/64 scope link
valid_lft forever preferred_lft forever
3: wlp26s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 30:24:32:b8:4d:6d brd ff:ff:ff:ff:ff:ff
ip route show
default via 192.168.87.1 dev eno1 proto dhcp src 192.168.87.32 metric 202
192.168.0.0/24 dev eno1 proto kernel scope link src 192.168.0.97
192.168.87.0/24 dev eno1 proto dhcp scope link src 192.168.87.32 metric 202