因为要跨网段使用几个打印机,所以必须添加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/