Raspbian kullanıyorum ve lanO'mdaki herhangi bir şeye ethO aracılığıyla erişebiliyorum ama internet adresine ping atamıyorum. route -n şöyle diyor:
Çekirdek IP yönlendirme tablosu
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
sonra sudo / sbin / route add -net 0.0.0.0 gw 192.168.1.1 eth0 komutunu ve ardından -n yolunu çalıştırıyorum
Çekirdek IP yönlendirme tablosu
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Ve her şey işe yarıyor. PI, bunu nasıl kalıcı hale getirebilirim, böylece PI'yi her başlattığımda route komutunu çalıştırmam gerekmez mi?