Solaris 11 Network
Quote from SUN Doc.
Oracle Solaris 11 uses profile-based network configuration, which is comprised of two network configuration modes: manual (fixed) and automatic (reactive). Depending on which network configuration mode you choose during an installation, either the DefaultFixed network configuration profile (NCP) or the Automatic NCP is activated on the system. If the DefaultFixed NCP is active, the network is manually configured by using the dladm and ipadm commands . If the Automatic NCP or a user-defined NCP that you previously created is active, the netcfg and netadm commands (formerly nwamcfg and nwamadm) are used to create and manage network configuration.
To determin either eanual or automatic, to run the following command:
Note that in this example, a user-defined Location profile called myloc is also online. When using automatic network configuration, at least one NCP and one location must be active on the system at all times.
$ netadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:phys net0 online
ncu:ip net0 online
ncu:phys net1 offline
ncu:ip net1 offline
ncu:phys net2 offline
ncu:ip net2 offline
ncu:phys net3 offline
ncu:ip net3 offline
loc Automatic offline
loc NoNet offline
loc myloc online
loc User disabled
When the DefaultFixed NCP is active, the network must be manually configured by using the dladm and ipadm commands.
# netadm list
netadm: DefaultFixed NCP is enabled; automatic network management is not available.
'netadm list' is only supported when automatic network management is active.
When you perform a fresh installation, all datalinks are automatically assigned generic names by using a net0, net1, and netN naming convention, depending on the total number of network devices on a system. After installing, you can use different datalink names. See How to Rename a Datalink in Oracle Solaris Administration: Network Interfaces and Network Virtualization.
Note - During an upgrade, link names that were used previously are retained.
Display information about the datalinks on a system as follows:
The ipadm command is used to manually configure IP interfaces and addresses. For example, a static IPv4 interface is configured as follows:
The -T option can be used to specify three address types: static, dhcp, and addrconf (for auto-configured IPv6 addresses). In this example, the system is configured with a static IPv4 address. Use the same syntax to specify a static IPv6 address.
Configure an interface with DHCP as follows:
Use the addrconf argument with the -T option to specify an automatically generated IPv6 address:
If the net0 interface in this example was created, and you then wanted to change the IP address that was provided for this interface, you would need to first remove the interface and then re-add it:
For more info, please check http://docs.oracle.com/cd/E23824_01/html/E24456/gliyc.html#scrolltoc
Oracle Solaris 11 uses profile-based network configuration, which is comprised of two network configuration modes: manual (fixed) and automatic (reactive). Depending on which network configuration mode you choose during an installation, either the DefaultFixed network configuration profile (NCP) or the Automatic NCP is activated on the system. If the DefaultFixed NCP is active, the network is manually configured by using the dladm and ipadm commands . If the Automatic NCP or a user-defined NCP that you previously created is active, the netcfg and netadm commands (formerly nwamcfg and nwamadm) are used to create and manage network configuration.
To determin either eanual or automatic, to run the following command:
Note that in this example, a user-defined Location profile called myloc is also online. When using automatic network configuration, at least one NCP and one location must be active on the system at all times.
$ netadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:phys net0 online
ncu:ip net0 online
ncu:phys net1 offline
ncu:ip net1 offline
ncu:phys net2 offline
ncu:ip net2 offline
ncu:phys net3 offline
ncu:ip net3 offline
loc Automatic offline
loc NoNet offline
loc myloc online
loc User disabled
When the DefaultFixed NCP is active, the network must be manually configured by using the dladm and ipadm commands.
# netadm list
netadm: DefaultFixed NCP is enabled; automatic network management is not available.
'netadm list' is only supported when automatic network management is active.
Displaying and Configuring Link Interfaces When in Manual Mode
When you perform a fresh installation, all datalinks are automatically assigned generic names by using a net0, net1, and netN naming convention, depending on the total number of network devices on a system. After installing, you can use different datalink names. See How to Rename a Datalink in Oracle Solaris Administration: Network Interfaces and Network Virtualization.
Note - During an upgrade, link names that were used previously are retained.
Display information about the datalinks on a system as follows:
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net2 Ethernet up 10000 full hxge0 net3 Ethernet up 10000 full hxge1 net4 Ethernet up 10 full usbecm0 net0 Ethernet up 1000 full igb0 net1 Ethernet up 1000 full igb1 net9 Ethernet unknown 0 half e1000g0 net5 Ethernet unknown 0 half e1000g1 net10 Ethernet unknown 0 half e1000g2 net11 Ethernet unknown 0 half e1000g3
Configuring Network Interfaces When in Manual Mode
The ipadm command is used to manually configure IP interfaces and addresses. For example, a static IPv4 interface is configured as follows:
# ipadm create-ip net0 # ipadm create-addr -T static -a local=10.9.8.7/24 net0/addr
The -T option can be used to specify three address types: static, dhcp, and addrconf (for auto-configured IPv6 addresses). In this example, the system is configured with a static IPv4 address. Use the same syntax to specify a static IPv6 address.
Configure an interface with DHCP as follows:
# ipadm create-ip net0 # ipadm create-addr -T dhcp net0/addr
Use the addrconf argument with the -T option to specify an automatically generated IPv6 address:
# ipadm create-ip net0 # ipadm create-addr -T addrconf net0/addr
If the net0 interface in this example was created, and you then wanted to change the IP address that was provided for this interface, you would need to first remove the interface and then re-add it:
# ipadm delete-ip net0 # ipadm create-ip net0 # ipadm create-addr -T addrconf net0/new-add
For more info, please check http://docs.oracle.com/cd/E23824_01/html/E24456/gliyc.html#scrolltoc
Comments