A method of automatically configuring a port of a network element
comprises the steps of discovering information that identifies or
describes a second network element that is coupled to a port of a first
network element; associating the port with a port role definition
selected from a plurality of port role definitions based on the
discovered information; retrieving one or more configuration settings
that are associated with the selected port role definition; and applying
the one or more configuration settings to the port.