為SOLARIS 10 新增網路印表機

bomei發表於2007-11-16

因為要跨網段使用幾個印表機,所以必須新增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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章