Configuring Network Services Flashcards

1
Q

How to configure IP address 10.0.80.53/24 on interface ens3?

A

sudo ip addr add 10.0.80.53/24 dev ens3

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

How to configure a default route via 10.0.80.1?

A

sudo ip route add default via 10.0.80.1

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

How to display status of interfaces?

A

ip link show

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

How to show configured IP addresses and MAC addresses on interfaces?

A

ip addr show

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

How to shutdown ens3 interface?

A

sudo ip link set down ens3

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

How to enable ens3 interface?

A

sudo ip link set up ens3

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

How to remove a configured IP address of 10.0.0.1/24 from interface eth1?

A

sudo ip addr del 10.0.0.1/24 dev eth1

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

How to display routing table?

A

ip route show

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

How to display configuration for the DNS name assignment?

A

/etc/hosts

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

How to display information about DNS servers that a Linux host talks to for DNS resolution?

A

cat /etc/resolv.conf

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