About Lesson
-
Viewing Network Interfaces:
-
Command:
ip addr
orifconfig
-
-
Assigning an IP Address (Temporary):
-
Command:
sudo ip addr add 192.168.1.100/24 dev eth0
-
-
Assigning an IP Address (Permanent):
-
Edit the network configuration file:
-
Debian/Ubuntu:
/etc/network/interfaces
or/etc/netplan/*.yaml
-
Red Hat/CentOS:
/etc/sysconfig/network-scripts/ifcfg-eth0
-
-
-
Restarting Network Services:
-
Systemd-based systems:
sudo systemctl restart networking sudo systemctl restart NetworkManager
-