static路由

https://www.fukudat.com/wiki/ja/永続的な静的ルーティング

this :  https://blog.masasuzu.net/entry/20110204/1296827618

raspberry
To add a persistent static route, create or edit the following file
/lib/dhcpcd/dhcpcd-hooks/40-route
and use the following syntax
ip route add 192.168.100.0/24 via 192.168.0.2

manjaro

sudo vi /etc/network/if-up.d/static-routes
#!/bin/sh
/shin/route add -net 192.168.7.0 gw 9.1.1.1 metric 1 netmask 255.255.255.0 eth0
sudo chmod +x /etc/network/if-up.d/static-routes

windows

route -p add 9.0.0.0 mask 255.0.0.0 192.168.0.33

 

 

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注