Article title: PLIP-Linux parallel network solution. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
As we all know, in the DOS environment, we can connect two PCs using a parallel port or serial port. one serves as the server and the other serves as the customer, but the machine that acts as the server cannot perform other operations, it can only serve clients. Although it is not as convenient and fast as the NIC, it provides a "poor" solution. If only a small amount of data is copied
Can meet the needs of ordinary people. The parallel port speed is much faster than the serial port speed.
In the Linux kernel, there is a network device named Parallel Line Internet Protocol. It provides network support for the Parallel port and maps the Parallel port to a network device. It supports standard and extended parallel ports. The transfer speed depends on the quality of the parallel line and the configuration of the machine.
Next, I will briefly introduce the system configuration.
1. support PLIP in the kernel
Cd/usr/src/linux
Make menuconfig
# Select Network device support
Select PLIP as modules
2. Compile the kernel
Cd/usr/src/linux
Make dep; make bzImage; make modules; make modules_install;
3. configure the new kernel to Lilo.
4. restart
5. open Ipforward.
Echo 1>/proc/sys/net/ipv4/ip_forward
6. run the network configuration tool to configure PLIP
Turbonetcfg
# Add new interface
# Select PLIP
# Add the ipaddress and mask to that
# Save & exit
7. start PLIP
Modprobe plip
# If it does not work
# Echo 7>/proc/parport/0/irq
# Modprobe plip
Ifup plip0
8. configure the gateway.
# Eg. Machine:
# PLIP0 -- 10.0.0.1
# B -- gateway
# PLIP0 -- 10.0.0.2
# Eth0 -- 172.16.69.12
# In B Machine, we setup ipchains
/Sbin/ipchains-A forward-j MASQ-s 10.0.0.0/255.255.255.0-d 0.0.0.0/0
Through our experiment, the use of WWW and TELNET is no different from that of common NICs, but when using FTP, the speed is a little slow, about 35 K/s, and at the same time while FTP, we also found that the system occasionally experienced Timeout, and when you do other things, the system was very slow. The driver of PLIP needs to be improved.
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