Type sudo nano /etc/network/interfaces to open the file in the nano editor. Editing your configuration file will keep your changes every time the system restarts. Find the section for the adapter you want to change the default gateway for. For a wired connection, this is usually eth0. gateway IP Address to the section. For example, type gateway 192.168.1.254 to make the default gateway 192.168.1.254. Press Ctrl+X and then Y to save your changes and exit. Restart your network by typing sudo /etc/init.d/networking restart.
افتح ملف الضبط في محرر نصوص. توجّه إلى القسم الصحيح. أضِف . احفظ التغييرات واخرج من التطبيق. أعد تشغيل الشبكة.