Network Configuration
On newer Ubuntu releases, you may not have "ifconfig" command by default. Instead, you have "ip" command out-of-box. "ip" is starting to replace "ifconfig" in newer Linux distributions.
You can still install ifconfig if it's not present in the system:
Similarly, you can manually install the ip tool:
- Display Current Network Settings
- Enable and Disable an Interface
- Assign a IP/Netmask to an Interface
$ sudo ifconfig eth0 192.168.0.2
$ sudo ifconfig eth0 netmask 255.255.255.0
$ sudo ifconfig eth0 del 192.168.1.10
$ sudo ifconfig eth0 mtu 1080
$ sudo ip addr add 192.168.0.2/24 dev eth0
$ sudo ip addr del 192.168.0.2/24 dev eth0
$ sudo ip link set dev eth0 mtu 1500
- Show Routing Table