激活网卡,配置IP地址
假如网卡名称为pcn0
ifconfig -a #查看网卡信息
ifconfig pcn0 plumb #激活网卡
ifconfig pcn0 unplumb #关闭网卡
ifconfig pcn0 192.168.1.133 netmask 255.255.255.0 up #配置IP地址
solaris要上网还需要配置以下四个文件:
/etc/hosts or /etc/inet/hosts
/etc/defaultrouter
/etc/resolv.conf
/etc/nsswitch.conf
其中defaultrouter与resolv.conf两个文件需要新建
配置:
/etc/hosts or /etc/inet/hosts
127.0.0.1 localhost
192.168.0.3 lion loghost
/etc/defaultrouter
192.168.1.1
/etc/resolv.conf
nameserver 202.96.64.68
/etc/nsswitch.conf
hosts: files dns
相关文章
- [置顶] 史上最详细Solaris 10上Oracle 10g安装步骤图解新手教程
- Solaris 10下Qt编译Oracle 10g驱动
- 在solaris 10上安装oracle 10g数据库
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.5. 配置网络
- Linux学习笔记(10)linux网络管理与配置之一——主机名与IP地址,DNS解析与本地hosts解析(1-4)
- win10 下使用虚拟机安装ubuntu及其网络配置
- 10:win7下VMware虚拟机中CentOS6.5网络配置
- win10 下使用虚拟机安装ubuntu及其网络配置
- Solaris 10的mount 的操作
- Solaris 10 开启/关闭SFTP服务、SSH服务