Professional Documents
Culture Documents
Network Configuration: Oracle Solaris 11 - Hands On Lab
Network Configuration: Oracle Solaris 11 - Hands On Lab
Network Configuration
1 Introduction
Participants will gain example-led awareness and understanding of how network
configuration is accomplished in Oracle Solaris 11.
With a few basic exercises we will introduce the learner to some new ways to
administer network properties in Oracle Solaris 11. Upon completion of this lab,
participants will have learned how to do some basic configuration and setup and be
prepared to explore more detailed and expand their knowledge into the powerful
Solaris network abilities.
2 Overview
In this lab well be practicing with some of the new Oracle Solaris 11 network
commands. Well briefly review basic network planning and then execute setup of
our network links and ip addressing. Well also review the updated method for
configuring name service mapping in the Solaris 11 operating system.
Some of the commands and concepts well review are listed below.
Page 1 of 19
A current laptop with at least 3GB memory and 100GB free disk space
Oracle VirtualBox Software (4.0.16 with Extension Pack installed)
Oracle Solaris 11 11/11 VirtualBox prebuilt image.
o Provided by instructor or downloaded on your own
o Oracle Solaris VM for Oracle VM VirtualBox
The following assumptions have been made regarding the environment where this
lab is being performed:
1. Network connectivity to the Internet is not necessary
2. 4 virtual network interfaces are setup in the VirtualBox environment
(instructions below)
3. Your Oracle Solaris 11 VirtualBox instance has been installed and youve
assigned a normal user/password and a root password.
a. The recommended user name is labuser
b. The recommended password is solaris11
c. The recommended root password is solaris11
Page 2 of 19
Be patient while
your image imports
into the application.
The process
shouldnt take more
than 5-10 minutes
depending on the
speed of your
system.
Page 3 of 19
Select Adapter 2,
click on the check
box to Enable
Network Adapter
and make sure the
drop down is
selected as NAT
Network Address
Translation
Do the same thing
for Adapter 3 and
Adapter 4 so all 4
virtual network
adapters are
enabled.
Page 4 of 19
Page 5 of 19
Page 6 of 19
Description
For more information on network planning see the Oracle Solaris 11 System
Administration Guide: IP Services
Page 7 of 19
Page 8 of 19
As you can see from the output the Automatic NCP is enabled and active. We will
need to switch to the DefaultFixed NCP in order to complete the rest of the lab.
Lets familiarize ourselves with the new network commands and see what our
network looks like. Type to following commands to investigate your network based
on its automatically obtained information.
#dladm show-phys (shows us the physical interfaces)
#dladm show-link (shows us the link state for the physical addresses)
Page 9 of 19
Now lets look at the ip layer and see whats going on.
# ipadm show-if (this will show us the existing interfaces on the system)
# ipadm show-addr (this will show us the mac addresses and IP addresses)
Now lets switch to manual mode in order to see whats involved in manual network
configuration.
# netadm enable p ncp DefaultFixed
# netadm list
Page 10 of 19
We can easily switch back to the Automatic NCP using the following command:
# netadm enable -p ncp Automatic
# netadm list
It might take a few minutes for your instance to regain its network information but
soon you will be back to your original state.
Now that weve gone back to the manual network profile, lets look at our interfaces
again and see whats happened.
Page 11 of 19
# ipadm show-if
# ipadm show-addr
None of the interfaces should be configured. Now we have some work to do.
Page 12 of 19
Now lets assign an IP address to our interface with the following command:
# ipadm create-addr T static a local=10.9.8.7/24 \
net0/v4static
# ipadm show-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 with our second virtual interface.
#
#
#
#
ipadm
ipadm
ipadm
ipadm
create-ip net1
create-addr T addrconf net1/v6auto
show-if
show-addr
For Oracle employees and authorized partners only. Do
not distribute to third parties.
2011 Oracle Corporation
Page 13 of 19
Now lets create a dhcp interface using the same commands and our 3rd interface.
#
#
#
#
ipadm
ipadm
ipadm
ipadm
create-ip net2
create-addr T dhcp net2/v4auto
show-if
show-addr
If an interface has already been configured and you want to change the address or
type, you will need to remove it and then re-add it. Execute the following
commands to change the address on net0 from 10.8.7.6 to 10.8.7.4. Then type the
ipadm show-addr command to verify your changes.
# ipadm delete-ip net0
# ipadm create-ip net0
# ipadm create-addr T static a local=10.9.8.4/24 \
net0/v4static
# ipadm show-addr
Page 14 of 19
Display a datalink name, its device name, and its location in this manner:
# dladm show-phys L net0
Page 15 of 19
Since we dont have net3 configured at this time lets rename the link using the
following commands:
# dladm rename-link net3 onboard3
# dladm show-phys
Page 16 of 19
Files
Description
svc:/system/name-service/switch:default
/etc/nsswitch.conf
svc:/system/nameservice/cache:default
/etc/nscd.conf
svc:/network/dns/client:default /etc/resolv.conf
svc:/network/nis/domain:default /etc/defaultdomain
/var/yp/binding/$DOMAIN/*
svc:/network/nis/client:default N/A
svc:/network/ldap/client:default /var/ldap/*
svc:/network/nis/server:default N/A
svc:/network/nis/passwd:default N/A
N/A
svc:/network/nis/xfr:default
svc:/network/nis/update:default N/A
N/A
svc:/system/nameservice/upgrade:default
Page 17 of 19
Now well need to enable the service, refresh the database and then well confirm
our work and make sure the files have been changed for us.
#
#
#
#
Page 18 of 19
6 Lab Summary
In this lab you learned about the new networking commands, dladm and ipadm.
You practiced using network configuration profiles and we created ip interfaces and
assigned them to different IP protocols. We renamed links and took our first look at
configuring name services through the SMF facility. Theres a ton more to
networking in Oracle Solaris 11. Its a very powerful feature that allows complete
networks to be set up in the box including switches, routers, and bridges. See the
references section below on how to go deeper in your knowledge and discover all
the powerful network features of Oracle Solaris 11.
7 References
For more information and next steps, please consult additional resources: Click the
hyperlinks to access the resource.
Oracle Solaris 11 General Cheatsheet (includes networking commands)
Networking Command Quick Reference
Documentation: Configuring an IP Interface
Documentation: How to rename a Datalink
Oracle Solaris 11 Technology Spotlights
Oracle Solaris 11 Information Library
Oracle Solaris 11 Product Documentation
Page 19 of 19