i follow this post, but it need extra script for floating ip,
i had followed most steps in above digital ocean
then
i change to create resource with
crm resource create livefrontendIP0 ocf:heartbeat:IPaddr2 ip=192.168.1.9 cidr_netmask=32 op monitor interval=30s
in GNS3
3 VM in GNS3, one switch,
two act as primary and secondary web server and run pjango
python manage.py runserver --noreload 192.168.1.2:80
python manage.py runserver --noreload 192.168.1.3:80
i use 192.168.1.8 as third computer to access 192.168.1.9 which act as floating ip, however third computer can not ping 192.168.1.9 or use web browser to access the web
conf t
int vlan 10
ip address 192.168.1.1 255.255.255.0
no shut
exit
int f1/0
switchport access vlan 10
switchport mode access
no shut
int f1/1
switchport access vlan 10
switchport mode access
no shut
end
conf t
int f1/2
switchport access vlan 10
switchport mode access
no shut
end
برچسب:
نویسنده: استخدام کار