solaris 11 network configuration

NCP-network configuration profile
DefaultFixed of Automatic
DefaultFixed is manual config
Automatic is then userconfigured of previously configured is used

commands: netcfg netadm

(if DefaultFixed is enabled)
# netadm list
netadm: DefaultFixed NCP is enabled; automatic network management is not available.
'netadm list' is only supported when automatic network management is active.

# netadm enable -p ncp automatic
(!!! you will lose current!!!)

# netadm enable -p ncp defaultfixed

==========================================================================

change network interface names at the datalink level.

# ipadm delete-ip net1
# dladm show-phys net1
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 1000 full e1000g1
# dladm rename-link net1 nic1
dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
nic1 Ethernet unknown 1000 full e1000g1
nic2 Ethernet unknown 1000 full e1000g2
net3 Ethernet up 1000 full e1000g3

for more: http://docs.oracle.com/cd/E23824_01/html/821-1458/ggtuo.html#scrolltoc
==========================================================================

Configure IP interface

# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up --
nic1 phys 1500 unknown --
nic2 phys 1500 unknown --
net3 phys 1500 up --

# ipadm create-ip nic1
# ipadm create-addr -T static -a 192.168.1.230/24 nic1/v4
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
nic1 ip ok yes --

# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/? static ok 127.0.0.1/8
net0/v4 static ok 192.168.1.161/24
nic1/v4 static ok 192.168.1.230/24

for more:http://docs.oracle.com/cd/E23824_01/html/821-1458/gjwiq.html#gjgob
==========================================================================

Network Virtualization
vnics...

# dladm create-vnic -l nic2 vnic2
# ipadm create-ip vnic2
# ipadm create-addr -T static -a 192.168.1.231/24 vnic2/v4
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/? static ok 127.0.0.1/8
net0/v4 static ok 192.168.1.161/24
nic1/v4 static ok 192.168.1.230/24
vnic2/v4 static ok 192.168.1.231/24

etherstubs...
# dladm create-etherstub estub0
# dladm create-vnic -l estub0 stubvnic0

# dladm show-vnic
vnic2 nic2 1000 2:8:20:27:62:90 random 0
stubvnic0 estub0 0 2:8:20:40:5a:df random 0

Private Virtual Network
zonecfg:hrzone> remove net
zonecfg:hrzone> add net
zonecfg:hrzone:net> set physical=stubvnic0
zonecfg:hrzone:net> end
zonecfg:hrzone> commit
zonecfg:hrzone> exit

# zonecfg -z hrzone info net
net:
address not specified
allowed-address not specified
configure-allowed-address: true
physical: stubvnic0
defrouter not specified

# zlogin hrzone
# dladm show-link
LINK CLASS MTU STATE OVER
stubvnic0 vnic 9000 unknown ?

# ipadm create-ip stubvnic0
# ipadm create-addr -T static -a 10.10.0.100/24 stubvnic0/privaddr
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
stubvnic0/privaddr static ok 10.10.0.100/24
...snip...

# echo "10.10.0.100 hrzone #stubvnic0" >> /etc/hosts

to be continued

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.