47 lvs-nat/dr

3台服务器:node1(vs),node2(rs),node3(rs)

lvs-nat

一、环境

1.时间同步

	node1
	tzselect 5 9 1 1
	TZ='Asia/Shanghai'; export TZ
	allow 192.168.146.0/24
	
	node2/3
	vim /etc/chrony.conf
	server 192.168.146.100 iburst
	ntpdate 192.168.146.100

2.vs2个物理网卡

	vs eth1  172.16.60.183/24
	vs eth2  192.168.146.100
	
	nmcli connection modify  eth1  ipv4.gateway 192.168.146.100
	nmcli connection eth 1 up
	
	rs1 192.168.146.101/24
		gw 192.168.146.100 网卡host-only
	rs2 192.168.146.102/24
		gw 192.168.146.100  网卡host-only

3.iptables -nL

		iptables -F
		systemctl stop firewalld
		systemctl disable firewalld

4.vs打开ipforward

	echo net.ipv4.ip_forward> /etc/sysctl.conf
		sysctl -p 

二.rs的服务

开启h

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值