Configuring Network Services Flashcards
How to configure IP address 10.0.80.53/24 on interface ens3?
sudo ip addr add 10.0.80.53/24 dev ens3
How to configure a default route via 10.0.80.1?
sudo ip route add default via 10.0.80.1
How to display status of interfaces?
ip link show
How to show configured IP addresses and MAC addresses on interfaces?
ip addr show
How to shutdown ens3 interface?
sudo ip link set down ens3
How to enable ens3 interface?
sudo ip link set up ens3
How to remove a configured IP address of 10.0.0.1/24 from interface eth1?
sudo ip addr del 10.0.0.1/24 dev eth1
How to display routing table?
ip route show
How to display configuration for the DNS name assignment?
/etc/hosts
How to display information about DNS servers that a Linux host talks to for DNS resolution?
cat /etc/resolv.conf