solaris 10 基本使用

1. 新增用户

注释掉home行
# cat /etc/auto_master # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)auto_master 1.8 03/04/28 SMI" # # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse #home auto_home -nobrowse

bash-3.00# automount -v

useradd -d /home/asn -s /usr/bin/bash -m asn

 

2. 虚拟机选择NAT和host-only这2中连接方式

NAT 为 dhcp 动态获取ip  用于上网

host-only 用于主机通过xshell连虚拟机

 

host-only配置

主机上的VirtualBox Host-Only Network网卡适配器的配置:

ip: 192.168.56.0  子网掩码: 255.255.255.0

 

虚拟机solaris中的IP配置:

ifconfig pcn0 192.168.56.103 netmask 255.255.255.0

 

 

3. 关闭防火墙

# svcs -a |grep network |egrep "pfil|ipf"

enable        4:36:25 svc:/network/pfil:default 
online         23:41:33 svc:/network/ipfilter:default 
#svcadm disable  svc:/network/ipfilter:default

posted @ 2015-01-28 21:05  asnjudy  阅读(324)  评论(0编辑  收藏  举报