How Do I Change the Netmask in Linux?
Contents How Do I Change My Network Mask in Linux? to Change Your Ip Address on Linux, Use the “Ifconfig” Command Followed by the Name of Your Network...
Contents
How do I change my network mask 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.
Must Read
How do I find my netmask in Linux?
Ubuntu Linux
- Launch the Terminal application.
- Type “ifconfig” at the terminal prompt, then press the “Enter” key. The IP address is labeled as “inet addr.” The subnet is labeled as “Mask.”
- Type “netstat -r” at the command prompt, then press the “Enter” key to view the gateway address.