快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

solaris 10网络配置

  激活网卡,配置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

  本文出自 51CTO.COM技术博客

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论