Michael Feng
===========================================================
为SOLARIS 10 添加网络打印机
===========================================================

因为要跨网段使用几个打印机,所以必须添加DNS,才能解析到其他网段的IP,

创建/etc/resolv.conf

内容如下:

domain tenpao.com

nameserver 127.0.0.1

nameserver 172.16.0.244

第一行表示你注册的域名,后面几行是DNS的服务器地址,最多只能是三个,

如果本机就是DNS,那么就写成

nameserver #意思就是省略后面的IP地址即可

然后修改/etc/nsswitch.conf,

  #
  # /etc/nsswitch.files:
  #
  # An example file that could be copied over to /etc/nsswitch.conf; it
  # does not use any naming service.
  #
  # "hosts:" and "services:" in this file are used only if the
  # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

  passwd: files
  group: files
  hosts: files
  networks: files
  protocols: files
  rpc: files
  ethers: files
  netmasks: files
  bootparams: files
  publickey: files
  # At present there isn't a 'files' backend for netgroup; the system will
  # figure it out pretty quickly, and won't use netgroups at all.
  netgroup: files
  automount: files
  aliases: files
  services: files
  sendmailvars: files

在hosts:files 和networks:files 后面添加dns即可,

创建/etc/defaultrouter文件,在里面写入网关的IP地址,

重新启动机器,

然后使用/usr/sadm/admin/bin/printmgr工具添加网络打印机


bomei 发表于:2007.11.16 17:10 ::分类: ( Linux & Solaris ) ::阅读:(318次) :: 评论 (0)

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)

 authimage


自我介绍
切换风格
新闻聚合
博客日历
文章归档...
最新发表...
最新评论...
最多阅读文章...
最多评论文章...
博客统计...
网站链接...