Browsed by
Tag: ip

Configure IP address on Ubuntu Linux from CLI

Configure IP address on Ubuntu Linux from CLI

Suppose we need to configure following IPv4 paratmeters: IP address: 10.10.10.1 Netmask: 255.255.255.0 Gateway: 10.10.10.254 First we need to identify our interface. Parameter “-a” command will show all interfaces even if they are down. ifconfig -a We will use interface ens160. Ip configurations needs to be done with super user privilages. Following command will set Ip and netmask: sudo ifconfig eth1 10.10.10.1 netmask 255.255.255.0 broadcast 10.10.10.255 Short form of the command could also be used. But it will set the…

Read More Read More