How Do I Permanently Add a Default Route in Linux?
Contents How Do I Set Permanent Default Route in Linux? Debian / Ubuntu Linux Setting a Default Gateway Ip Command to Set a Default Router to 192.168.1.254...
Contents
How do I set permanent default route in Linux?
Debian / Ubuntu Linux Setting a Default Gateway
- ip command to set a default router to 192.168.1.254. Login as the root and type: …
- route command to set a default router to 192.168.1.254. Login as the root and type: …
- Save routing information to a configuration file /etc/network/interfaces. Open /etc/network/interfaces file.
Must Read
How do I permanently add a route in Linux?
How to Add a Persistent Static Route by Specifying Destination and Gateway
- View the current state of the routing table by using your regular user account. % netstat -rn. …
- Become an administrator.
- (Optional) Flush the existing entries in the routing table. # route flush.
- Add a persistent route.