Networking Flashcards
1
Q
show ip address
A
ip address show
2
Q
show mac address
A
ip link show
or 1st 2 lines of ip address show
3
Q
how to turn off a network interface
A
sudo ip link set linkName down
linkName will be the network interface name for example enp0s3. It can be found by running ip address show
4
Q
how to add an ip address to a network interface
A
sudo ip addr add 192.168.1.10/24 enp0s3
5
Q
how to remove an ip address from a network interface
A
sudo ip addr delete 192.168.1.10/24 enp0s3