Sharing a printer with different network segments

Source: Internet
Author: User
Cause:

Because the Internet IP address is limited, a vro is added to bind an Internet IP address and a MAC address to a vro. Then, the machines under the vro can access the Internet.

But we cannot connect to the printer of our team lead, because we are in Segment 2 (192.168.2.1) and the team lead is in Segment 1 (192.168.1.1 ).

The company also has a large printer (with its own Nic, which can be configured with IP addresses) that can be printed smoothly.

So I went to the Internet to find information and see if I could share the printers in different network segments.

Du Niang:

Baidu has a bit of information, the milk Burst information, the specific attachment and post. Here, of course, it is simple and beautiful.

Solution:

1. in Windows XP, go to the "C:/Windows/system32/Drivers/etc/" directory. Open the "hosts" file, start another line at the end of the file, add "192.200.240.10 boss", save and exit.

Note that the machine name of the boss is Chinese, so you don't have to worry about it. It can also be Chinese here.

2. Click Start → printer and fax. In the printer window, double-click Add Printer ". In the "Add Printer wizard" window, click "Next. On the "local or network printer" selection page, select "Network Printer" and click "Next. In the "Find printer" window, click "Next. Enter the "Browse printer" window, enter "// boss/FX docuprint CP 105 B (Copy 1)" in the "Printer" column, and then click "Next, the wizard prompts you to automatically install the printer driver. Then, on the "default printer" Page, select "yes ". On the "adding a printer in progress" page, click "finish" to share the printer across network segments.

Result:

Print it. it's normal!

Question:

1. I feel unfamiliar with the core of windows. Why do I need to set the host where the printer is located.

2. How long is the range of another line added to the hosts file? Why can the Chinese host name be supported? What time is it re-interpreted.

3. After Entering the name of the shared printer, the system prompts that the printer cannot be found for the first time. After n times, the printer will be automatically displayed. After the selection, everything will go with the flow.

4. Although the core things can be avoided sometimes, this time we are lucky enough to solve the problem. The next time we encounter a more complex problem, we may not be able to understand it thoroughly. However, if you fully understand it, it may exceed my capabilities. Very tangled. So Microsoft is always in my heart!

Appendix:

Methods for printer sharing between different network segments

Category:
Boutique favorites 7245 people read comments (0)
Collect reports

Internet network interface server firewall

The following are some methods for sharing printers between different subnets (network segments:
First (experiment passed ):

This method allows two users in different subnets to share a printer. If possible, they can even share a printer over the Internet. 1. Set a firewall for the machine on which the printer is installed-except --> file and printer sharing (double-click) =, 445,137,138 change range --> "any computer" 2. Add method my computer enter // ip address of the machine associated with the printer in the address bar/printer sharing full name press enter to prompt installation. Example: // 192.168.0.8/hp5550

Second:

One organization has two local networks, one for internal office work and the other for Internet access. The two networks are connected through switches. Now, a network printer is connected to the Internet, can an intranet workstation share printers on the Internet?
A: Obviously, the two LAN networks are in different CIDR blocks. Therefore, we are not able to use our network neighbors on the Intranet workstation to directly access the Internet shared printer. However, considering that the two networks are still associated with each other through a vswitch on the physical connection, you can set the printer to network sharing based on the IPX/SPX protocol. When setting the sharing, you must first connect directly to obtain some technical parameters of the printer under the IPX/SPX protocol, for example, IPX address, IPX name, hardware address, and printer name (note that these parameters are not provided by every printer, the printer must support IPX/SPX network sharing.) Of course, you can also view these technical parameters through web browsing, log on to the printer server as the super administrator and enter a URL in the format of "http: // printer Server IP Address: Port Number" in the IE Address Bar, you can obtain the technical parameters under the IPX/SPX protocol. In the workstation where you want to install a network printer, click the "Add Printer" command to open the Network Printer Installation Wizard interface. When the screen prompts you to install a type of printer, you must select "local print"
Host option, and select LPT1 port as the default print port. Then, open the attribute settings page of the local printer, find the "print to the following port" option, and add a port by yourself, in the pop-up "protocol" box, select "IPX/SPX printer" and enter the above collected IPX/SPX technical parameters. After completing the above settings, the workstation in the Intranet will automatically create a network printer icon, and then set the network printer to the default state, so that you can complete the sharing print between different network segments.

Third:

Assume that the internal lan has two subnets: "192.200.240. *" and "21.55.8 .*". Computers in the "21.55.8. *" subnet want to use printers in the "192.200.240. *" subnet. However, because the IP addresses are in different network segments, computers in the two network segments cannot share the printer.

So how to achieve cross-network shared printer? Assume that the computer IP address of the shared printer is "192.200.240.10", the name is lsswhp, and the name of the shared printer is HP. The IP address of the computer on which you want to use the printer in the "21.55.8. *" subnet is "21.55.8.10". The following two steps are performed on this computer (Windows2000.

Step 1: in Windows 2000, open the "command prompt" window and go to the "C:/winnt/system32/Drivers/etc/" directory. Enter "Edit hosts" to edit the hosts file, start another line at the end of the file, add "192.200.240.10 lsswhp", save and exit.

Step 2: Click Start> Settings> printer. In the printer window, double-click Add Printer ". In the "Add Printer wizard" window, click "Next. On the "local or network printer" selection page, select "Network Printer" and click "Next. In the "Find printer" window, click "Next. Enter the "Browse printer" window, enter "// lsswhp/HP" in the "Printer" column, and then click "Next". The Wizard will automatically install the printer driver. Then, on the "default printer" Page, select "yes ". On the "adding a printer in progress" page, click "finish" to share the printer across network segments.

Others:

Method 1: The ROs server uses two network cards to connect two local areas. One IP address is 192.168.0.1 and 192.168.0.0 is disconnected. The other IP address is 192.168.1.1 and 192.168.1.0 is disconnected.

Method 2: set two IP addresses for one Nic, 192.168.0.1: 192.168.1.1/IP addressadd address = 192.168.0.1interface = lanadd address = 192.168.1.1 interface = lanros

Method 3: The Mask Length is set to 23, that is, 192.168.0.0/23 and 192.168.1.0/23 are disconnected from the same network.

 

New:

Go to the advanced settings of IP settings and check the local connection properties ~~ Double-click Internet Protocol ~~ Go to advanced ~~ Add the IP address

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.