Created: 2025-02-15 sáb 19:06
pathping en Windows
mtr en Linux
route o ip routeroute print
ROUTE ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
0.0.0.0HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IpEnableRouter debe estar a 1routealvaro@alvaro-vaio$ route  
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    600    0        0 wlan0
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.1.0     *               255.255.255.0   U     600    0        0 wlan0
192.168.56.0    *               255.255.255.0   U     0      0        0 vboxnet0
ip routealvaro@alvaro-vaio~ ip route
default via 192.168.1.1 dev wlp0s20f3 proto dhcp metric 600 
169.254.0.0/16 dev docker0 scope link metric 1000 
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 
192.168.1.0/24 dev wlp0s20f3 proto kernel scope link src 192.168.1.13 metric 600 
route)eth0, con métrica 3. Se envía al router 157.55.80.1sudo route add -net 157.0.0.0 netmask 255.0.0.0 gw 157.55.80.1 metric 3 dev eth0
0.0.0.0 o como defaultip)eth0, con métrica 3. Se envía al router 157.55.80.1sudo ip route add 157.0.0.0/8 via 157.55.80.1 dev eth0 weigth 3
0.0.0.0/0 o como defaultsysctl net.ipv4.ip_forwardsysctl -w net.ipv4.ip_forward=1/etc/sysctl.conf:
net.ipv4.ip_forward = 1