没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
本文档由一江风倾情制作,联系方式:guoyin0612@163.com,
若有疑问,联系我,帮你答疑!
实验 2 squid 反向代理服务器加速 web
一、实验环境
(1)两台 linux 主机(Red Hat Enterprise Linux),分别是 RHEL1 和 RHEL2,squid 代理服务器
和 DNS 服务器在 RHEL2 上,apache 服务器在 RHEL1 上
RHEL1(内网)上
IP
网关
域名
192.168.1.51/24(eth0)
192.168.1.1
10.1.1.2/24(eth0:1)
10.1.1.1
Web1.zhang.com
10.1.1.3/24(eth0:2)
10.1.1.1
Web2.zhang.com
10.1.1.4/24(eth0:3)
10.1.1.1
Web3.zhang.com
RHEL2(squid 代理服务器)
外网网卡 eth0
192.168.1.52/24
内网网卡 eth1
10.1.1.1/24
(2)Win7 本地主机:
IP:192.168.1.104/24 gateway:192.168.1.1
(3)浏览器
Firefox 4.1
二、配置网卡的 IP
两台 linux 的网卡 eth0 上的 IP 事先已配好,且已设置开机启动此处略
[root@RHEL1 etc]# ifconfig eth0:1 10.1.1.2 netmask 255.255.255.0 up
[root@RHEL1 etc]# ifconfig eth0:2 10.1.1.3 netmask 255.255.255.0 up
[root@RHEL1 etc]# ifconfig eth0:3 10.1.1.4 netmask 255.255.255.0 up
[root@RHEL2 squid]# ifconfig eth1 10.1.1.1 netmask 255.255.255.0 up
其他网卡开机启动的设置
(1)RHEL1 上的 eth0:1、eth0:2、eth0:3
[root@RHEL1 conf]# cd /etc/sysconfig/network-scripts/
[root@RHEL1 network-scripts]# cp -p ifcfg-eth0 ifcfg-eth0:1
[root@RHEL1 network-scripts]# cp -p ifcfg-eth0 ifcfg-eth0:2
[root@RHEL1 network-scripts]# cp -p ifcfg-eth0 ifcfg-eth0:3
[root@RHEL1 network-scripts]# vi ifcfg-eth0:1
修改为以下内容
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.1.2
NETMASK=255.255.255.0
资源评论
guoyin0612
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功