How Do I Permanently Change My Default Gateway in Linux?
Contents

How do I permanently change my IP address in Linux?

To change your IP address on Linux, use the “ifconfig” command followed by the name of your network interface and the new IP address to be changed on your computer. To assign the subnet mask, you can either add a “netmask” clause followed by the subnet mask or use the CIDR notation directly.

How do I permanently delete a default route in Linux?

How to Delete a Persistent Route on CentOS

  1. Open the terminal. …
  2. Type vi /etc/sysconfig/network-scripts/route-interface_name at the command prompt except replace the “interface_name” with the name of the network interface associated with the route. …
  3. Locate the route you wish to delete in the text file that appears.
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest