Networking Flashcards

1
Q

show ip address

A

ip address show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

show mac address

A

ip link show

or 1st 2 lines of ip address show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to add an ip address to a network interface

A

sudo ip addr add 192.168.1.10/24 enp0s3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to remove an ip address from a network interface

A

sudo ip addr delete 192.168.1.10/24 enp0s3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly