How do I find my default gateway Linux?

How do I find my default gateway Linux?
Answer
Debian / Ubuntu
Linux Setting a
Default Gateway

  1. ip command to set a
    default router to 192.168.1.254. Login as the root and type: …
  2. route command to set a
    default router to 192.168.1.254. Login as the root and type: …
  3. Save routing information to a configuration file /etc/network/interfaces. Open /etc/network/interfaces file.
 

Tìm kiếm

Back
Top