Created: 2024-09-08 dom 17:53
pathping
en Windows
mtr
en Linux
route
o ip route
route print
ROUTE ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
0.0.0.0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IpEnableRouter
debe estar a 1route
alvaro@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 route
alvaro@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 default
ip
)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 default
sysctl net.ipv4.ip_forward
sysctl -w net.ipv4.ip_forward=1
/etc/sysctl.conf
:
net.ipv4.ip_forward = 1