What are the two advantages of following this advice?

Your mentor suggests using the dladm rename-link command to rename the network datalinks.
What are the two advantages of following this advice?

Your mentor suggests using the dladm rename-link command to rename the network datalinks.
What are the two advantages of following this advice?

A.
It can clarify which network interface has what purpose.

B.
It can simplify specifying the network interface with the dladm modify-aggrcommand.

C.
It can simplify specifying the network interface with the dladmmodify-bridge command.

D.
Itcan simplify IP filter rule changes if the network interface is replaced with a different type.

E.
It can prevent accidental deletion of the network interface with the dladm delete-phys
command.

F.
It can prevent accidental deletion of the network interface configuration with the ipadm deleteaddr command.

Explanation:
A: To rename the bge0 link to mgmt0, enter the following command:
# dladm rename-link bge0 mgmt0
E: Consider that the bge0 device, whose link was named mgmt0 as shown in the previous
example, needs to be replaced with a ce0 device because of a hardware failure. The bge0 NIC is
physically removed, and replaced with a new ce0 NIC. To associate the newly added ce0 device
with the mgmt0 configuration previously associated with bge0, enter the following command:
# dladm rename-link ce0 mgmt0
Note: How to Rename a Datalink
Use this procedure if you want to change a datalink name to a customized name. For example,
some of the datalinks in upgraded system might have retained legacy hardware-based names and
you want to change these names to generic ones.
Note: dladm rename-link [-R root-dir] link new-link
Rename link to new-link. This is used to give a link a meaningful name, or to associate existing
link configuration such as link properties of a removed device with a new device.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


johny

johny

correct is A and D

D: Some rules in a Solaris IP Filter configuration apply to specific links. When you change a link’s name, the filter rules continue to refer to the link’s original name. Consequently, these rules no longer behave as expected after you rename the link. You need to adjust the filter rules to apply to the link by using the new link name.

ragnor

ragnor

I’ve given this one a bit of thought:

A – Correct common sense.
B – Correct, as you can use -l linkname, and it will be easier if it is more familiar to you
C – incorrect command syntax.
D – It actually creates issues with IP filter
E – nothing is stopping you from deleting the link 🙂
F – again, I don’t see why there is more risk of deleting an addr of a link with the default name

see https://docs.oracle.com/cd/E19120-01/open.solaris/819-6990/gdyrg/index.html for some clarifications.