JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: Network Interfaces and Network Virtualization     Oracle Solaris 11 Information Library
search filter icon
search icon

Document Information

Preface

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

Part I Network Auto-Magic

2.  Introduction to NWAM

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

11.  Administering Bridges

Bridging Overview

Link Properties

STP Daemon

TRILL Daemon

Debugging Bridges

Other Bridge Behaviors

DLPI Behavior

VLAN Administration

VLAN Behavior

Bridge Configuration Examples

Administering Bridges (Task Map)

How to View Information About Configured Bridges

How to View Configuration Information About Bridge Links

How to Create a Bridge

How to Modify the Protection Type for a Bridge

How to Add One or More Links to an Existing Bridge

How to Remove Links From a Bridge

How to Delete a Bridge From the System

12.  Administering Link Aggregations

13.  Administering VLANs

14.  Introducing IPMP

15.  Administering IPMP

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

22.  Monitoring Network Traffic and Resource Usage

Glossary

Index

Administering Bridges (Task Map)

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.

Task
Description
For Instructions
View information about configured bridges.
Use the dladm show-bridge command to view information about configured bridges on the system. You can view information about configured bridges, links, statistics, and kernel forwarding entries.
View configuration information about links that are attached to a bridge.
Use the dladm show-link command to view information about configured links on the system. If the link is associated with a bridge, see the output in the BRIDGE field.
Create a bridge.
Use the dladm create-bridge command to create a bridge and add optional links.

By default, bridges are created by using STP. 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.

Modify the protection type for a bridge.
Use the dladm modify-bridge command to modify the protection type for a bridge.

By default, bridges are created by using STP. To use TRILL to create a bridge instead, use -P trill with the dladm modify-bridge command to enable TRILL.

Add a link to a bridge.
Use the dladm add-bridge command to add one or more links to an existing bridge.
Remove links from a bridge.
Use the dladm remove-bridge command to remove links from a bridge. You cannot delete a bridge until all of its links are removed.
Delete a bridge from the system.
Use the dladm delete-bridge command to delete a bridge from the system.

How to View Information About Configured 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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. View information about a bridge or all configured bridges.
    • 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.

How to View Configuration Information About Bridge Links

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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. View configuration information about any link that is a member of a bridge.
    # dladm show-link [-p]

    The -p option produces output in a parseable format.

How to Create a Bridge

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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. Create the bridge.
    # 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

How to Modify the Protection Type for a Bridge

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.

How to Add One or More Links to an Existing Bridge

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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. Add a new link to the existing bridge.
    # 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

How to Remove Links From a Bridge

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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. Remove the links from the bridge.
    # 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

How to Delete a Bridge From the System

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.

  1. Become an administrator.

    For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.

  2. Delete the bridge from the system.
    # 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