Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Information Library |
1. Overview of the Networking Stack
Network Configuration in This Oracle Solaris Release
The Network Stack in Oracle Solaris
Network Devices and Datalink Names
Administration of Other Link Types
3. NWAM Configuration and Administration (Overview)
4. NWAM Profile Configuration (Tasks)
5. NWAM Profile Administration (Tasks)
6. About the NWAM Graphical User Interface
Part II Datalink and Interface Configuration
7. Using Datalink and Interface Configuration Commands on Profiles
8. Datalink Configuration and Administration
9. Configuring an IP Interface
10. Configuring Wireless Interface Communications on Oracle Solaris
Administering Bridges (Task Map)
How to View Information About Configured Bridges
How to View Configuration Information About Bridge Links
How to Modify the Protection Type for a Bridge
How to Add One or More Links to an Existing Bridge
12. Administering Link Aggregations
16. Exchanging Network Connectivity Information With LLDP
Part III Network Virtualization and Resource Management
17. Introducing Network Virtualization and Resource Control (Overview)
18. Planning for Network Virtualization and Resource Control
19. Configuring Virtual Networks (Tasks)
20. Using Link Protection in Virtualized Environments
21. Managing Network Resources
Oracle Solaris uses the dladm command and the SMF feature to administer bridges. Use SMF commands to enable, disable, and monitor bridge instances by using the fault-managed resource identifier (FMRI) of the instance, svc:/network/bridge. Use the dladm command to create or destroy bridges, as well as to assign links to bridges or to remove links from them.
The following table points to the tasks that you can use to administer bridges.
|
This procedure shows how to use the dladm show-bridge command with various options to show different kinds of information about configured bridges.
For more information about the dladm show-bridge command options, see the dladm(1M) man page.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
View the list of bridges.
# dladm show-bridge
Show link-related status for the bridge.
# dladm show-bridge -l bridge-name
Show statistics for the bridge.
# dladm show-bridge -s bridge-name
Note - The names and definitions of the statistics reported are subject to change.
Show link-related statistics for the bridge.
# dladm show-bridge -ls bridge-name
Show kernel forwarding entries for the bridge.
# dladm show-bridge -f bridge-name
Show TRILL information about the bridge.
# dladm show-bridge -t bridge-name
Example 11-1 Viewing Bridge Information
The following are examples of using the dladm show-bridge command with various options.
The following shows information about all bridges that are configured on the system:
# dladm show-bridge BRIDGE PROTECT ADDRESS PRIORITY DESROOT goldengate stp 32768/8:0:20:bf:f 32768 8192/0:d0:0:76:14:38 baybridge stp 32768/8:0:20:e5:8 32768 8192/0:d0:0:76:14:38
The following dladm show-bridge -l command shows link-related status information for a single bridge instance, tower. To view configured parameters, use the dladm show-linkprop command instead.
# dladm show-bridge -l tower LINK STATE UPTIME DESROOT hme0 forwarding 117 8192/0:d0:0:76:14:38 qfe1 forwarding 117 8192/0:d0:0:76:14:38
The following dladm show-bridge -s command shows statistics for the specified bridge, terabithia:
# dladm show-bridge -s terabithia BRIDGE DROPS FORWARDS terabithia 0 302
The following dladm show-bridge -ls command shows statistics for all of the links on the specified bridge, london:
# dladm show-bridge -ls london LINK DROPS RECV XMIT hme0 0 360832 31797 qfe1 0 322311 356852
The following dladm show-bridge -f command shows kernel forwarding entries for the specified bridge, avignon:
# dladm show-bridge -f avignon DEST AGE FLAGS OUTPUT 8:0:20:bc:a7:dc 10.860 -- hme0 8:0:20:bf:f9:69 -- L hme0 8:0:20:c0:20:26 17.420 -- hme0 8:0:20:e5:86:11 -- L qfe1
The following dladm show-bridge -t command shows TRILL information about the specified bridge, key:
# dladm show-bridge -t key NICK FLAGS LINK NEXTHOP 38628 -- london 56:db:46:be:b9:62 58753 L -- --
The dladm show-link output includes a BRIDGE field. If a link is a member of a bridge, this field identifies the name of the bridge of which it is a member. This field is shown by default. For links that are not part of a bridge, the field is blank if the -p option is used. Otherwise, the field shows --.
The bridge observability node also appears in the dladm show-link output as a separate link. For this node, the existing OVER field lists the links that are members of the bridge.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# dladm show-link [-p]
The -p option produces output in a parseable format.
This procedure shows how to use STP to create a bridge, which is the default. For more information about bridge creation options, see the description of dladm create-bridge in the dladm(1M) man page.
Note - To use TRILL to create a bridge instead, add -P trill to the dladm create-bridge command line, or use the dladm modify-bridge command to enable TRILL.
The dladm create-bridge command creates a bridge instance and optionally assigns one or more network links to the new bridge. Because no bridge instances are present on the system by default, Oracle Solaris does not bridge between network links by default.
To bridge between links, you must create at least one bridge instance. Each bridge instance is separate. Bridges do not include a forwarding connection between them, and a link is a member of at most one bridge.
bridge-name is an arbitrary string that must be a legal SMF service instance name. This name is a FMRI component that has no escape sequences, which means that whitespace, ASCII control characters, and the following characters cannot be present:
; / ? : @ & = + $ , % < > # "
The name default is reserved, as are all names beginning with the SUNW string. Names that have trailing digits are reserved for the creation of “observability devices.” Because of the use of the observability devices, the names of legal bridge instances are further constrained to be a legal dlpi(7P) name. The name must begin and end with an alphabetic character or an underscore character. The rest of the name can contain alphanumeric and underscore characters.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# dladm create-bridge [-l link]... bridge-name
The -l link option adds a link to the bridge. Note that if any of the specified links cannot be added, the command fails and the bridge is not created.
The following example shows how to create the brooklyn bridge by connecting the hme0 and qfe1 links:
# dladm create-bridge -l hme0 -l qfe1 brooklyn
This procedure shows how to use the dladm modify-bridge command to modify the protection type from STP to TRILL or from TRILL to STP.
# dladm modify-bridge -P protection-type bridge-name
The -P protection-type option specifies which protection type to use. By default, the protection type is STP (-P stp). To use the TRILL protection type instead, use the -P trill option.
The following example shows how to modify the protection type for the brooklyn bridge from the default STP to TRILL:
# dladm modify-bridge -P trill brooklyn
This procedure shows how to add one or more links to a bridge instance.
A link can be a member of at most one bridge. So, if you want to move a link from one bridge instance to another, you must first remove the link from the current bridge before adding it to another one.
The links that are assigned to a bridge cannot be VLANs, VNICs, or tunnels. Only links that would be acceptable as part of an aggregation, or links that are aggregations themselves can be assigned to a bridge.
Links that are assigned to a bridge must all have the same MTU value. Note that Oracle Solaris allows you to change the MTU value on an existing link. In this case, the bridge instance goes into maintenance state until you remove or change the assigned links so that the MTU values match before you restart the bridge.
The links that are assigned to the bridge must be an Ethernet type, which includes 802.3 and 802.11 media.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# dladm add-bridge -l new-link bridge-name
The following example shows how to add the qfe2 link to the existing bridge rialto:
# dladm add-bridge -l qfe2 rialto
This procedure shows how to remove one or more links from a bridge instance. Use this procedure if you intend to delete a bridge. Before the bridge can be deleted, all of its links must first be removed.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# dladm remove-bridge [-l link]... bridge-name
The following example shows how to remove the hme0, qfe1, and qfe2 links from the bridge charles:
# dladm remove-bridge -l hme0 -l qfe1 -l qfe2 charles
This procedure shows how to delete a bridge instance. Before you can delete a bridge, you must first deactivate any attached links by running the dladm remove-bridge command. See How to Remove Links From a Bridge.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# dladm delete-bridge bridge-name
The following example shows how to first remove the hme0, qfe1, and qfe2 links from the coronado bridge, and then remove the bridge itself from the system:
# dladm remove-bridge -l hme0 -l qfe1 -l qfe2 coronado # dladm delete-bridge coronado