书画联盟-古玩百科_琴棋书画_珠宝玉石_文玩瓷杂_收藏艺术_鉴赏交流
 找回密码
 立即注册

QQ登录

只需一步,快速开始

只需一步,快速开始

查看: 88|回复: 3

不在同一网段的两台电脑怎么让共享一台打印机?

[复制链接]
发表于 2022-5-13 10:36:57 | 显示全部楼层 |阅读模式
编辑hosts文件,在该文件末尾另起一行,添加“192.168.10.* PC1”,保存并退出。 第二步:依次点击“开始→设置→打印机”,在“打印机”窗口中,双击“添加打印机”。
进入“添加打印机向导”窗口,点击“下一步”按钮。
在“本地或网络打印机”选择界面中,选择“网络打印机”,然后点击“下一步”按钮。
在“查找打印机”窗口中,直接点击“下一步”按钮。
进入“浏览打印机”窗口,在“打印机”栏中输入“\\PC1\HP”,然后点击“下一步”按钮,向导会自动安装打印机驱动程序。
接着,在“默认打印机”界面中,选择“是”。
在“正在完成添加打印机向导”界面中,点击“完成”按钮,即可实现跨网段共享打印机。

回复

使用道具 举报

 楼主| 发表于 2022-5-13 10:42:52 | 显示全部楼层
  1. <table><tbody><tr><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">content</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">53</span>"></span></td></tr><tr><td class="line-number" value="535"></td><td class="line-content">要<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#990099</span>'></span>共享<span class="html-tag"></B></span>打印机,首先<span class="html-tag"><a <span class="html-attribute-name">name</span>=<span class="html-attribute-value">baidusnap0</span>></span><span class="html-tag"></a></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ffff66</span>'></span>两<span class="html-tag"></B></span>台<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>要<span class="html-tag"><a <span class="html-attribute-name">name</span>=<span class="html-attribute-value">baidusnap8</span>></span><span class="html-tag"></a></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#004699</span>'></span>能<span class="html-tag"></B></span>够相互访问。从IP地址上看<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ffff66</span>'></span>两<span class="html-tag"></B></span>台<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>处于<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span>同网络,<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#004699</span>'></span>能<span class="html-tag"></B></span>相互访问。分以下<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ffff66</span>'></span>两<span class="html-tag"></B></span>种情况。1.仅是IP地址和<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#886800</span>'></span>网关<span class="html-tag"></B></span>上的<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span>同。给A<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>添加一条B<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>所<span class="html-tag"><a <span class="html-attribute-name">name</span>=<span class="html-attribute-value">baidusnap4</span>></span><span class="html-tag"></a></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff66ff</span>'></span>在<span class="html-tag"></B></span>网络的IP地址即可。具体添加方法:高级TCP/IP设置--&gt;添加   添加<span class="html-tag"><a <span class="html-attribute-name">name</span>=<span class="html-attribute-value">baidusnap5</span>></span><span class="html-tag"></a></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#880000</span>'></span>一个<span class="html-tag"></B></span>192.168.1.X的空闲地址。<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#990099</span>'></span>共享<span class="html-tag"></B></span>B<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>的打印机,通过A<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>即可访问到。2.如果是从传输层或网络设备上做了逻辑隔离(VLAN、ACL)就需要修改配置了。<span class="html-tag"></div></span></td></tr><tr><td class="line-number" value="536"></td><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">head bd-b</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">54</span>"></span><span class="html-tag"><strong <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">55</span>"></span>全部回答<span class="html-tag"></strong></span><span class="html-tag"></div></span></td></tr><tr><td class="line-number" value="537"></td><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">list-user</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">56</span>"></span></td></tr><tr><td class="line-number" value="538"></td><td class="line-content"><span class="html-tag"><mip-img <span class="html-attribute-name">src</span>="<a class="html-attribute-value html-resource-link" target="_blank" href="https://mip.wujinjixie.net/static/img/defaultx48.jpg" rel="noreferrer noopener">https://mip.wujinjixie.net/static/img/defaultx48.jpg</a>" <span class="html-attribute-name">width</span>="<span class="html-attribute-value">32</span>" <span class="html-attribute-name">height</span>="<span class="html-attribute-value">32</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">57</span>"></span><span class="html-tag"></mip-img></span></td></tr><tr><td class="line-number" value="539"></td><td class="line-content"><span class="html-tag"><ul <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">58</span>"></span></td></tr><tr><td class="line-number" value="540"></td><td class="line-content"><span class="html-tag"><li <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">59</span>"></span><span class="html-tag"><span <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">60</span>"></span>1楼<span class="html-tag"></span></span>佘乐<span class="html-tag"></li></span></td></tr><tr><td class="line-number" value="541"></td><td class="line-content"><span class="html-tag"><li <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">61</span>"></span><span class="html-tag"><em <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">62</span>"></span>2022-02-05 02:29<span class="html-tag"></em></span><span class="html-tag"></li></span></td></tr><tr><td class="line-number" value="542"></td><td class="line-content"><span class="html-tag"></ul></span></td></tr><tr><td class="line-number" value="543"></td><td class="line-content"><span class="html-tag"></div></span></td></tr><tr><td class="line-number" value="544"></td><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">content</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">63</span>"></span>我估计你的这种情况是物理隔离,你可以先判断一下,把10.138.1.100那台改成自动获取看看获取到的IP是<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span>是192.168.1.xx如果<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span>是或者获取<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span>到。你就得通过<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff66ff</span>'></span>在<span class="html-tag"></B></span>任意一台机上面加<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#880000</span>'></span>一个<span class="html-tag"></B></span>局域网,也就是加一张网卡。把<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ffff66</span>'></span>两<span class="html-tag"></B></span>台机器连到同<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#880000</span>'></span>一个<span class="html-tag"></B></span>局域网内<span class="html-tag"></div></span></td></tr><tr><td class="line-number" value="545"></td><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">list-user</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">64</span>"></span></td></tr><tr><td class="line-number" value="546"></td><td class="line-content"><span class="html-tag"><mip-img <span class="html-attribute-name">src</span>="<a class="html-attribute-value html-resource-link" target="_blank" href="https://mip.wujinjixie.net/static/img/defaultx48.jpg" rel="noreferrer noopener">https://mip.wujinjixie.net/static/img/defaultx48.jpg</a>" <span class="html-attribute-name">width</span>="<span class="html-attribute-value">32</span>" <span class="html-attribute-name">height</span>="<span class="html-attribute-value">32</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">65</span>"></span><span class="html-tag"></mip-img></span></td></tr><tr><td class="line-number" value="547"></td><td class="line-content"><span class="html-tag"><ul <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">66</span>"></span></td></tr><tr><td class="line-number" value="548"></td><td class="line-content"><span class="html-tag"><li <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">67</span>"></span><span class="html-tag"><span <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">68</span>"></span>2楼<span class="html-tag"></span></span>摆渡翁<span class="html-tag"></li></span></td></tr><tr><td class="line-number" value="549"></td><td class="line-content"><span class="html-tag"><li <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">69</span>"></span><span class="html-tag"><em <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">70</span>"></span>2022-02-05 01:31<span class="html-tag"></em></span><span class="html-tag"></li></span></td></tr><tr><td class="line-number" value="550"></td><td class="line-content"><span class="html-tag"></ul></span></td></tr><tr><td class="line-number" value="551"></td><td class="line-content"><span class="html-tag"></div></span></td></tr><tr><td class="line-number" value="552"></td><td class="line-content"><span class="html-tag"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">content</span>" <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">71</span>"></span>只要你的<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>都<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff66ff</span>'></span>在<span class="html-tag"></B></span>同一局域网,没有<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff9999</span>'></span>不<span class="html-tag"></B></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#004699</span>'></span>能<span class="html-tag"></B></span>访问的<span class="html-tag"><br <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">72</span>"></span>先确保<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span><span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#004699</span>'></span>能<span class="html-tag"></B></span>够访问<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:white;background-color:#990099</span>'></span>共享<span class="html-tag"></B></span>,<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#ff66ff</span>'></span>在<span class="html-tag"></B></span>A<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>运行处输入:\\192.168.1.100 ,再确定,A<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>就可以访问B<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>。<span class="html-tag"><br <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">73</span>"></span>我下分几个路由器,都是这样访问其它<span class="html-tag"><B <span class="html-attribute-name">style</span>='<span class="html-attribute-value">color:black;background-color:#99ff99</span>'></span>电脑<span class="html-tag"></B></span>的<span class="html-tag"><br <span class="html-attribute-name">bdsfid</span>="<span class="html-attribute-value">74</span>"></span>祝你好运·<span class="html-tag"></div></span></td></tr></tbody></table>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-5-13 11:10:54 | 显示全部楼层

不同ip网段的路由器之间如何共享打印机?如果是同一个网段下的电脑和打印机,只需连接打印机并安装驱动即可,但是不同网段之间就没这么简单的,一些较大的公司有多个部门,路由器会有很多,比如一个是192.168.1.*,另一个是192.168.0.*,甚至是10.24.*这种。这边小编就跟大家介绍不同路由器之间共享打印机的方法。


操作步骤如下:

1、假设是本机要连接跨网段的打印机,先打开本电脑Hosts文件,在C:\Windows\System32\drivers\etc下,如果打开该文件提示“没有权限修改”,在附件中的“记事本”图标上右键单击出现选项卡里,选择“以管理员权限运行”,再在记事本里打开文件就可以修改保存了;

2、在打开的hosts文件里,添加上打印机所在的电脑的IP地址和计算机名称,格式如图,计算机名称和ip地址之间保留两个空格;

3、在“网络和共享中心”里打开“本地连接”,然后选择“属性”;

4、在属性里选择“Internet协议版本4”,在“属性”选项上单击,单击“高级”选项;

5、最后在“WINS”选项卡里,单击启用“TCP/IP 上的NetBIOS”;

6、设置完毕后,再在“运行输入口”里输入打印机的ip,假设是“\\10.24.**.**”回车即可出现共享打印机,在打印机图标上双击就可以安装驱动,使用局域网内的打印机了。

不同路由器之间共享打印机的步骤就是这样子,有遇到这个问题的朋友可以按照本文的步骤来操作,希望对大家有帮助。

相关教程:两个网络驱动器同步没有电脑 路由器怎么安装怎样安装打印机共享多个路由器打印机共享

回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-5-13 11:11:30 | 显示全部楼层
C:\Windows\System32\drivers\etc

# <PCMaster> has rewitten this hosts file
# ***************************************
# IP             Hosts
192.168.0.190    PRINTER-LY0918
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则