LINUX operating system debugging: vro configuration and implementation

Source: Internet
Author: User
LINUX operating system debugging: configuration and implementation of vrouters-Linux Enterprise Application-Linux server application information. For details, see the following. 1. Network Topology
2. IP Address Allocation
CLIENT: 192.168.2.2
Linux server:
Eth0: 192.168.2.1
Eth1: 199.229.194.161
CISCO2514: 202.99.30.66 (valid address)
Squid server:
Eth0: 199.229.194.20
Eth0: 1: 202.99.30.67

3. Purpose:
Through the routing configuration on linux server, CLINET can find the proxy to go to squid server;
Then, go to the INTERNET.

4. configuration on linux server:
1) related commands:
Ifconfig route
2) Nic configuration (linux server ):
# Ifconfig eth0 192.168.2.1 netmask 255.255.255.0
# Ifconfig eth1 199.229.194.161 netmask 255.255.255.0
3) configure the route:
# Route add? Net 192.168.2.0/24 gw 192.168.2.1 dev eth0
# Route add? Net 199.229.194.0/24 gw 199.229.194.0/24 dev eth1
# Route add default gw 199.229.194.161
4) set startup
Add the preceding commands to/etc/rc. d/rc. local.
5) simple configuration:
You can start the routed process in setup without the above configurations.

5. configuration on suqid server:
1) related commands:
Ficonfig route
2) Nic Configuration:
# Ifconfig eth0 199.229.194.20 netmask 255.255.255.0
# Ifconfig eth0: 1 202.99.30.67 entmask limit 255.0
3) configure the route:
# Route add? Net 192.168.2.0/24 gw 199.229.194.161 dev eth0
# Route add default gw 202.99.30.66
4) squid Server Configuration:
The port number in the file/etc/squid. conf is 81.

6. CLIENT Configuration
Add the proxy SERVER, pointing to port 199.229.194.20 is 81 (consistent with that in dquid server ).

7. Conclusion:
So far, the client can access the Internet through the SQUID server. Technical prerequisites:
1), in the/etc/sysconfig/network file must have one: FORWARD-IPV4 = YES
2) "1" is displayed in/proc/sys/net/ipv4 ".
Related Article

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.