Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Express 11/10 |
2. NWAM Configuration and Administration (Overview)
3. NWAM Profile Configuration (Tasks)
4. NWAM Profile Administration (Tasks)
5. About the NWAM Graphical User Interface
Part II Administering Single Interfaces
6. Overview of the Networking Stack
7. Datalink Configuration and Administration
Configuration of Datalinks (Tasks)
How to Display Information About Physical Attributes of Datalinks
How to Display Datalink Information
Overview of Datalink Properties
Setting Datalink Properties With the dladm Command
How to Enable Support for Jumbo Frames
How to Change Link Speed Parameters
How to Obtain Status Information About Datalink Properties
How to Set the e1000g Driver to Use Direct Memory Access Binding
How to Manually Set the Interrupt Rate
Additional Configuration Tasks on Datalinks
How to Replace a Network Interface Card With Dynamic Reconfiguration
Configuring STREAMS Modules on Datalinks
How to Set STREAMS Modules on Datalinks
8. Configuring an IP Interface
9. Configuring Wireless Interface Communications on Oracle Solaris
Part III Administering Interface Groups
11. Administering Link Aggregations
Part IV Network Virtualization and Resource Management
15. Introducing Network Virtualization and Resource Control (Overview)
16. Planning for Network Virtualization and Resource Control
17. Configuring Virtual Networks (Tasks)
18. Using Link Protection in Virtualized Environments
19. Managing Network Resources
This section describes other common configuration procedures that have become simplified by using the dladm command, such as performing dynamic reconfiguration (DR) and working with STREAMS modules.
This procedure applies only to systems that support dynamic reconfiguration (DR). It shows how DR is now facilitated by the separation of the network link configuration from the network hardware configuration. You no longer need to reconfigure your network links after you complete DR. Instead, you just transfer the link configurations of the removed NIC to be inherited by the replacement NIC.
Procedures to perform DR vary with the type of system. Make sure that you complete the following first:
Ensure that your system supports DR.
Consult the appropriate manual that describes DR on your system.
To locate current documentation about DR on Sun servers, search for dynamic reconfiguration on http://docs.sun.com
Note - The following procedure refers only to aspects of DR that are specifically related to the use of flexible names for datalinks. The procedure does not contain the complete steps to perform DR. You must consult the appropriate DR documentation for your system.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# dladm show-phys
Consult your system's DR documentation to perform this step.
After you have installed the replacement NIC, proceed to the next step.
For example, the replacement NIC you install is bge0. If a file /etc/hostname.bge0 exists in the system, remove that file.
Note - If the IP interface in the system was configured by using the ipadm command, this step is unnecessary. With the ipadm command, configuration is persistent, and the /etc/hostname.interface file is not required nor should exist.
# dladm rename-link replacementNIC-linkname removedNIC-linkname
Refers to the default link name of the replacement NIC upon installation. When you insert a NIC into a system for the first time, the NIC's link name is hardware-based, such as bge0.
Refers to the customized link name of the NIC that you removed.
For example, you use the cfgadm command to configure the NIC. For more information see the cfgadm(1M) man page.
For example, you can use either dladm show-phys or dladm show-link to show information about the datalinks.
Example 7-10 Replacing a Network Card
This example shows how a bge card with link name net0 is replaced by a e1000g card. The link configurations of net0 are transferred from bge to e1000g after e1000g is connected to the system.
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE subitops1 Ethernet up 100Mb full nge3 net0 Ethernet up 100Mb full bge0
You perform the DR-specific steps such as using cfgadm to disconnect bge and then install e1000g. Then the procedure continues.
# ls /etc/hostname.* hostname.e1000g0 # rm /etc/hostname.e1000g0 # dladm rename-link e1000g0 net0 # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE subitops1 Ethernet up 100Mb full nge3 net0 Ethernet up 100Mb full e1000g0
If necessary, you can set up to eight STREAMS modules to be pushed on top of a datalink. These modules are typically used by third-party networking software such as virtual private networks (VPNs) and firewalls. Documentation about such networking software is provided by the software vendor.
The list of STREAMS modules to push on a specific datalink is controlled by the autopush link property. In turn, the value of the autopush link property is set by using the dladm set-linkprop subcommand.
A separate autopush command can also be used to set the STREAMS autopush modules on a per-driver basis. However, the driver is always bound to the NIC. If the datalink's underlying NIC is removed, then the link's autopush property information becomes lost as well.
To configure the STREAMS modules to be pushed on top of a datalink, use the dladm set-linkprop command in preference over the autopush command. If both per-driver and per-link types of autoputsh configuration exist for a specific datalink, the per-link information that is set with dladm set-linkprop is used and the per-driver information is ignored.
The following procedure describes how to configure STREAMS modules with the dladm set-linkprop command.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# dladm set-linkprop -p autopush=modulelist link
Specifies the list of modules that you want to be automatically pushed on to the stream. A maximum of eight modules can be pushed over a link. These modules are pushed in the order that they are listed in modulelist. Separate the modules in the list by using dots as delimiters.
Specifies the link on which the modules are pushed.
Example 7-11 Setting the autopush Link Property
In this example, you push the vpnmod and bufmod modules on top of the link net0. The link's underlying device is bge0.
# dladm set-linkprop -p autopush=vpnmod.bufmod net0
If you later replace the bge card with ce, you can switch to the new datalink without needing to reconfigure the autopush settings. You just assign the link name to the new datalink, as follows:
# dladm rename-link ce0 net0
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# dladm show-linkprop -p autopush [link]
If you do not specify link, then the information for all configured links is displayed.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# dladm reset-linkprop [-t] -p autopush link
Use the -t option to remove the property settings temporarily. The settings are restored when you reboot the system.