Answer the question
In order to leave comments, you need to log in
Ubuntu connecting 2 networks and routing?
Good evening!
Help to deal with routing. I haven't been able to start my car for 6 hours now. I need the help of the audience)
I have a laptop, the Internet comes via LAN (enp3s0) via Mikrotik
On wi-fi (wlo1) the local network comes
With the default settings, it worked in turn, either lan (enp3s0) or wi-fi (wlo1)
Added routing for LAN, Internet works, the locale responds. But from another PC there is no ping and SSH access to the laptop.
The ultimate goal is to have SSH access from the local network + working Internet
Таблица маршутизации ядра протокола IP
Destination Gateway Genmask Flags Metric Ref Use Iface
default router.lan 0.0.0.0 UG 100 0 0 enp3s0
default _gateway 0.0.0.0 UG 600 0 0 wlo1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 wlo1
10.20.145.0 0.0.0.0 255.255.254.0 U 600 0 0 wlo1
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp3s0
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
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether b8:ee:65:53:d5:fc brd ff:ff:ff:ff:ff:ff
inet 10.20.145.243/23 brd 10.20.145.255 scope global noprefixroute wlo1
valid_lft forever preferred_lft forever
inet6 fe80::319e:1149:6e80:61d0/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a0:1d:48:b2:f9:e1 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.253/24 brd 192.168.1.255 scope global noprefixroute enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::bed:92d6:d56d:fa0d/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Answer the question
In order to leave comments, you need to log in
In the Wi-Fi connection settings on the IPv4 tab, set the switch to "Only for the local network".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question