1. Network Structure Machine 1: The operating system is Redhat LiUux9.0, and Internet access through the intranet gateway 192.168.0.252. 2 blocks, ETH0 and Eth1 are installed, and the network is set as follows: Eth0: IP = 192.168.0.180 / 24, netgate = 192.168.0.0.181: IP = 192.168.0.181 / 24 Machine 1 also installed Squid Agent software. Machine 1 can be accessible normally. Machine 2: Windows, IP = 192.168.0.182 / 24, a network card, directly connected to the network card Eth1 of the machine 1 (equivalent to the network card of the machine 1 to one switch). 2, machine 2 through the machine 1 Agent Internet machine 2 PING 192.168.0.181 and 192.168.180, normal communication. Machine 2 does not ping a machine 10, 11 such as machine 1, and the IP address is 192.168.0.10/24 and 192.168.0.11/24, respectively, indicating that the dual network card of the machine 1 can effectively isolate the two segments, Even if the IP address of the machine 2 is the same as the IP address of the machine 10, the IP address conflict will not occur. Since the machine 1 sets the agent, the machine 2 can be accessed through the machine 1, as long as the "Internet Options" / "Connection" / "LAN Setting" / "Proxy Server" setting is set to: Address = 192.168.0.181 or 192.168.0.180, the port corresponds to the port set by the Squid agent (I am set to 8080). 3, Machine 2 Online Method 2 If the machine 1 does not set the agent, the machine 2 must be online, you must do routing settings in the machine 1, and put the machine 1 as a software router. 4. Reference (1) Since the dual network card is installed by the machine 1, the machine 2 can be set to any one of the dual network cards of the machine 1 by the agent 1 of the machine 1. (2) The network card of the Eth1 and Machine 2 of the machine 1 can be internet access. For example, their IP is 10.0.0.1/24 and 10.0.0.2/24, respectively. Surprisingly, when the IP of the machine 2 is 10.0.0.2, it can still ping through 192.168.0.180! At this time, the settings of the above (1) are still valid. (3) If the machine 1 and the machine 2 are connected via a switch, the machine 2 can be connected to the network through the agent 1, the settings of the above (1) and (2) can be unchanged (I don't have verified this point, I think it can be ). (4) If the machine 1 has only one network card, the machine 2 must be connected to the machine 1 through the machine 1, it must be connected to a switch. At this time, the IP of the machine 2 must be associated with the machine 1 in the same network, and cannot conflict with other machine IP, such as the 192.168.0.10, machine 2 IE IE IE set to: IP = 192.168.180, port is 8080. (5) Machine 1 Internet is the NAT software for installation of Windows2000 Server through another dual network. Machine 1 The setting of the Internet is not set in the "agent" of the IE browser, but is set in the properties of the "network" TCP / IP protocol.
This shows: 1 The network can be counted by a number of grade agent or gateway; 2NAT software is more like a software support, and is used as a gateway, not as "Internet Sharing", is a proxy software. (6) "Internet Connection Sharing" and NAT and Squids generally have functions with firewalls. Zhang Qing 2003.12.12 zhangking@263.net QQ: 9365822