Sunday, December 7, 2014

Openindiana



openindiana initial configuration:
-> svcadm disable svc:/network/physical:nwam
-> svcadm enable svc:/network/physical:default
-> create a file as shown below.
root@namchi:~# cat /etc/hostname.e1000g0
10.193.186.82
-> vi /etc/netmasks
10.193.184.0 255.255.252.0
10.193.186.0 255.255.252.0
-> add route
root@namchi:~# cat /etc/defaultrouter
10.193.184.1
-> vi /etc/hosts
10.193.186.82 namchi namchi.blr.asicdesigners.com
Enable SSH
Vi /etc/ssh/sshd_config
Root enable yes
Svcadm restart svc:/network/ssh:default
List interfaces with ipadm
root@namchi:~# ipadm show-if
IFNAME     STATE    CURRENT      PERSISTENT
lo0        ok       -m-v------46 ---
e1000g0    ok       bm--------4- ---
cxgbe0     ok       bm--------4- ---
cxgbe1     ok       bm--------4- ---
cxgbe2     ok       bm--------4- ---
cxgbe3     ok       bm--------4- ---
Creating vnic:
# dladm create-vnic -l cxgbe0 vnic_1
#dladm show-vnic
Creating VLAN:
root@namchi:~# dladm create-vlan -v 5 -l cxgbe0 port0
root@namchi:~# dladm show-vlan
LINK            VID      OVER         FLAGS
port0           5        cxgbe0       -----
Setting MTU:
# dladm set-linkprop -t -p mtu=9000 cxgbe0
Verification:
#dladm show-linkprop cxgbe0 | less
#dladm show-link
Crashdump:
dumpadm -c all -d /dev/zvol/dsk/rpool/dump -m 10%
root@namchi:/var/crash/namchi# savecore -vf /var/crash/namchi/vmdump.0
savecore: System dump time: Thu Sep 27 09:58:43 2012

savecore: saving system crash dump in /var/crash/namchi/{unix,vmcore}.0
Constructing namelist /var/crash/namchi/unix.0
Constructing corefile /var/crash/namchi/vmcore.0
pfn 2201262 not found for as=fffffffffbc302e0, va=ffffff000ff00000
pfn 2201263 not found for as=fffffffffbc302e0, va=ffffff000ff01000
pfn 2201136 not found for as=fffffffffbc302e0, va=ffffff000ff02000
pfn 2201137 not found for as=fffffffffbc302e0, va=ffffff000ff03000
pfn 2201138 not found for as=fffffffffbc302e0, va=ffffff000ff04000
pfn 2228014 not found for as=fffffffffbc302e0, va=ffffff000fe00000
pfn 2228015 not found for as=fffffffffbc302e0, va=ffffff000fe01000
pfn 2228016 not found for as=fffffffffbc302e0, va=ffffff000fe02000
pfn 2228017 not found for as=fffffffffbc302e0, va=ffffff000fe03000
pfn 2228146 not found for as=fffffffffbc302e0, va=ffffff000fe04000
savecore: stream tag 529 not in range 1..4
savecore: LZJB STREAMSTART: bad stream header
root@namchi:/var/crash/namchi# ls
bounds  unix.0  vmcore.0  vmdump.0
root@namchi:/var/crash/namchi#

static ip config:
1.       Disable the auto-magic network daemon
# svcadm disable physical:nwam
2.       Define in /etc/hosts, if not already, an entry for this host. For example:
192.168.1.1 solexpress
3.       then, enable the default physical service with svcadm and configure the interface:
4.       Enable manual mode for the default physical service via SMF
# svcadm enable physical:default
5.       Configure interface with ipadm
# ipadm create-addr -T static -a local=192.168.1.1/24 bge0/v4static
You cannot just specify the interface ‘bge0′, but must also include a ‘user_specified_string’ like ‘/v4static’ or ‘/ipv4static’.
Checking interrupts:
mdb –k
::echo interrupts


No comments: