Você está na página 1de 14

1 Config IP for stand alone NIC

Step 1 : Check the link status


# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0

Step 2 : Create a new interface
# ipadm create-ip net0
Check the newly created interface :
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes ---
net0 ip down no ---
Step 3: Creating IP address
# ipadm create-addr T static a 192.168.145.61/24 net0/v4
-T specifies either static, dhcp or addrconf (for IPv6) types of addresses.
The string v4 can be any random string used to identify the interface.
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/geeklab static ok 192.168.1.20/24
lo0/v6 static ok ::1/128
Unplumb/delete the interface
# ipadm delete-ip net0
2 Change hostname
1 - To check the current environment properties:
# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/nodename astring solaris
config/loopback astring solaris
2 - Set the new hostname
# svccfg -s system/identity:node setprop config/nodename="my-host-name"
# svccfg -s system/identity:node setprop config/loopback="my-host-name"
3- Refresh the properties:
# svccfg -s system/identity:node refresh
4 - Restart the service:
# svcadm restart system/identity:node
5 - verify that the changes took place:
# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/nodename astring my-host-name
config/loopback astring my-host-name
# hostname
my-host-name
The hostname in the prompt will appear the next time a shell is open.
6 - Changes to /etc/hosts
3 Default route add/delete
#netstat -nr
#route -p delete default 10.153.125.1 -ifp net0
#route -p add default 10.153.125.1
4 IPMP - Link-base
1 - Config NCP
Check the ncp DefaultFixed is online or not ?
# netadm list
TYPE PROFILE STATE
ncp Automatic disabled
ncp DefaultFixed online
loc Automatic offline
loc NoNet offline
loc DefaultFixed online
Enable if need
# netadm enable -p ncp DefaultFixed
2 - Show port - mac
# dladm show-linkprop -p mac-address
LINK PROPERTY PERM VALUE DEFAULT POSSIBLE
net1 mac-address rw 0:50:56:9f:6b:7a 0:50:56:9f:6b:7a --
net0 mac-address rw 0:50:56:9f:27:60 0:50:56:9f:27:60 --
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 1000 full e1000g1
net0 Ethernet up 1000 full e1000g0
# ipmpstat -p
ipmpstat: probe-based failure detection is disabled
3 - Active - Active config
# ipadm create-ipmp ipmp0
# ipadm create-ip net1
# ipadm create-ip net2
# ipadm add-ipmp -i net1 -i net2 ipmp0
# ipmpstat -g
GROUP GROUPNAME STATE FDT INTERFACES
ipmp0 ipmp0 ok -- net2 net1
# ipadm create-addr -T static -a 192.168.1.10/24 ipmp0/data1
# ipmpstat -a
ADDRESS STATE GROUP INBOUND OUTBOUND
ipmp0-data1 up ipmp0 net1 net2 net1
# ipmpstat -an
ADDRESS STATE GROUP INBOUND OUTBOUND
192.168.1.10 up ipmp0 net1 net2 net1
# ipmpstat -i
INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE
net2 yes ipmp0 ------- up disabled ok
net1 yes ipmp0 --mb--- up disabled ok
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
ipmp0/data1 static ok 192.168.1.10/24
4 - Active - Standby config
To set the net2 interface as standby interface :
# ipadm set-ifprop -p standby=on -m ip net2
# ipmpstat -i
INTERFACE ACTIVE GROUP FLAGS LINK PROBE STATE
net2 no ipmp0 is----- up disabled ok
net1 yes ipmp0 --mb--- up disabled ok
5 IPMP - Probe-base (Active/Active - Active/Standby like link base)
1 - Using test addreses
IF you config a IP for a NIC in ipmp group ---> this nic will change to probe-base IPMP (check fail with a target IP - default is default gateway)
2 - Transitive probe-base
To enable transitive probing :
# svccfg -s svc:/network/ipmp setprop config/transitive-probing=true
# svcadm refresh svc:/network/ipmp:default
To disable transitive probing :
# svccfg -s svc:/network/ipmp setprop config/transitive-probing=false
# svcadm refresh svc:/network/ipmp:default
To check the Probing method :
# ipmpstat -p
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
# svccfg -s system/identity:node setprop config/nodename="my-host-name"
# svccfg -s system/identity:node setprop config/loopback="my-host-name"
LINK PROPERTY PERM VALUE DEFAULT POSSIBLE
net1 mac-address rw 0:50:56:9f:6b:7a 0:50:56:9f:6b:7a --
net0 mac-address rw 0:50:56:9f:27:60 0:50:56:9f:27:60 --
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 1000 full e1000g1
net0 Ethernet up 1000 full e1000g0
IF you config a IP for a NIC in ipmp group ---> this nic will change to probe-base IPMP (check fail with a target IP - default is default gateway)
# svccfg -s svc:/network/ipmp setprop config/transitive-probing=true
# svccfg -s svc:/network/ipmp setprop config/transitive-probing=false
1
2
3
# cd /media/SOL_11_1_REPO_FULL/
# zfs set atime=off datapool/repo
# pkgrepo create /datapool/repo
# mount -F hsfs /solrepo/sol-11_1-repo-full.iso /mnt
# rsync -aP /media/SOL_11_1_REPO_FULL/repo/ /datapool/repo/
# pkgrepo -s /datapool/repo/ refresh
# pkg set-publisher -G '*' -M '*' -g /datapool/repo/ solaris
# pkg list -g /datapool/repo/
2 - Install gnome desktop
# pkg install solaris-desktop
# shutdown -i6 -g0 -y
3 - Creating a Remote IPS repository
Share nfs on repo filesystem on server
# zfs set sharenfs=on datapool/repo
# grep repo /etc/dfs/sharetab
Set on client
# pkg set-publisher -G '*' -M '*' -g /net/192.168.1.105/datapool/repo/ solaris
Root loggin SSH
Change file /etc/default/login comment the param CONSOLE
Change file /etc/ssh/sshd_config edit the param PermitRootLogin
# svcadm refresh ssh
# svcadm restart ssh
# rolemod -K type=normal root
Enable xdmcp
Edit file /etc/gdm/custom.conf param [xdmcp] Enable=true
# svcadm restart gdm
Install repo and Gnome-Destop for text only install
1 - Create local repo from ISO
# zfs create datapool/repo
# zfs set quota=20G datapool/repo
# cd /media/SOL_11_1_REPO_FULL/
# zfs set atime=off datapool/repo
# pkgrepo create /datapool/repo
# mount -F hsfs /solrepo/sol-11_1-repo-full.iso /mnt
# rsync -aP /media/SOL_11_1_REPO_FULL/repo/ /datapool/repo/
# pkgrepo -s /datapool/repo/ refresh
# pkg set-publisher -G '*' -M '*' -g /datapool/repo/ solaris
# pkg list -g /datapool/repo/
2 - Install gnome desktop
# pkg install solaris-desktop
# shutdown -i6 -g0 -y
3 - Creating a Remote IPS repository
Share nfs on repo filesystem on server
# zfs set sharenfs=on datapool/repo
# grep repo /etc/dfs/sharetab
Set on client
# pkg set-publisher -G '*' -M '*' -g /net/192.168.1.105/datapool/repo/ solaris
1 Mirror rpool
1 - x86 - EFI
# zpool status rpool
# zpool attach -f rpool c8t0d0 c8t1d0
2 - SPARC - VTOC
# prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c0t2d0s2
# zpool status rpool
# zpool attach -f rpool c0t0d0s0 c0t2d0s0
Theo k hoch d n FMIS trong thng 6/2014 c kha a to Oracle Solaris trong 3 ngy ti Cambodia t ngy 24June - 26june.
Ni dung o to theo h s thu nh sau:
S/N Course Name
1
FMIS System Administration: Oracle
Solaris 11 System Administration
Theo k hoch d n FMIS trong thng 6/2014 c kha a to Oracle Solaris trong 3 ngy ti Cambodia t ngy 24June - 26june.
Course Contents Location
This course aims to provide trainees with knowledge and skill on:
- Installing Oracle Solaris 11 Using an Interactive Installer
- Updating the Oracle Solaris 11 OS Using IPS
- Managing Software Packages
- Administering SMF Services
- Booting and Shutting Down a System
- Managing ZFS Storage Pools
- Managing ZFS File Systems
Using ZFS Snapshots and Clones
- Administering an Oracle Solaris Zone
- Administering a Physical Network
Setting Up and Maintaining User Accounts
- Configuring User Shells and User Disk Quotas
- Controlling Access to Systems
- Controlling Access to Files
- Configuring and Using Secure Shell
- Managing System Processes
- Scheduling System Tasks
- Monitoring System Logs and Crash and Core Dump Files
- Performing Basic Troubleshooting
Cambodia
Estimated Duration
(days)
Estimated No. of Trainees
3 5

Você também pode gostar