You are not logged in.
I have a Beagle Board and I want to SSH to it. So I connect it via USB, and it shows up in ip addr show:
Arch :: ~ » ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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
3: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 14:58:d0:c6:3c:27 brd ff:ff:ff:ff:ff:ff
4: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether f8:16:54:68:4b:0b brd ff:ff:ff:ff:ff:ff
inet 145.94.158.208/22 brd 145.94.159.255 scope global dynamic wlo1
valid_lft 630sec preferred_lft 630sec
inet6 fe80::fa16:54ff:fe68:4b0b/64 scope link
valid_lft forever preferred_lft forever
6: enp0s20u10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
link/ether 16:0f:15:5a:e1:21 brd ff:ff:ff:ff:ff:ff
inet6 fe80::140f:15ff:fe5a:e121/64 scope link tentative
valid_lft forever preferred_lft forever
So I want to assign an IP address to it:
Arch :: ~ » sudo ip addr add 192.168.0.201 dev enp0s20u10
Arch :: ~ » sudo ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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
3: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 14:58:d0:c6:3c:27 brd ff:ff:ff:ff:ff:ff
4: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether f8:16:54:68:4b:0b brd ff:ff:ff:ff:ff:ff
inet 145.94.158.208/22 brd 145.94.159.255 scope global dynamic wlo1
valid_lft 751sec preferred_lft 751sec
inet6 fe80::fa16:54ff:fe68:4b0b/64 scope link
valid_lft forever preferred_lft forever
6: enp0s20u10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
link/ether 16:0f:15:5a:e1:21 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.201/32 scope global enp0s20u10
valid_lft forever preferred_lft forever
inet6 fe80::140f:15ff:fe5a:e121/64 scope link
valid_lft forever preferred_lft forever
Yay, I thought. Here is the weird part: my Arch computer behaves now like the address 192.168.0.201 is his own address: when I ssh, I ssh to my own laptop.
Where did I go wrong?
Offline
Welp, I Fixed it with a different set of commands:
sudo ip link set up dev wlo1
sudo ip link set up dev enp0s20u10
sudo ip addr add 192.168.0.201/24 dev enp0s20u10
sudo sysctl net/ipv4/ip_forward=1
sudo ip addr add 192.168.0.200/24 dev wlo1
sudo ip route add default via 192.168.0.201 dev wlo1
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 root@192.168.0.202
Now there is a new, more subtle issue: I cannot be connected to the internet and the board at the same time. Does anyone have some toughts on this?
Offline
What is the output of ip route ?
I bet you are using the Beagleboard as your default gateway.
You may need a routers clause in your dhcpcd.conf file to tell it to not update the default gateway for the 192.x.x.x network
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline