为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工具添加网络打印机

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7272495/viewspace-982712/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7272495/viewspace-982712/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值