Postingan

Menampilkan postingan dengan label static route

static route di linux ubuntu/debian di /etc/network/interfaces

 Berikut ini panduan static route di linux ubuntu/debian,  Debian / Ubuntu lama (pakai /etc/network/interfaces ), bukan netplan 👍 Tinggal tambahkan baris up di konfigurasi eth1 . Edit file: nano /etc/network/interfaces Ubah jadi seperti ini: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 103.100.100.60/29 gateway 103.100.100.57 auto eth1 iface eth1 inet static address 172.25.255.106/24 up ip route add 172.25.224.0/24 via 172.25.255.1 dev eth1 down ip route del 172.25.224.0/24 via 172.25.255.1 dev eth1 ⚠️ Ganti 172.25.255.1 kalau IP router lokal kamu beda. Apply tanpa reboot (aman) ifdown eth1 && ifup eth1 Atau reboot kalau mau aman total: reboot Verifikasi ip route | grep 172.25.224 Output yang benar: 172.25.224.0/24 via 172.25.255.1 dev eth1