Re: AW: may be problem on NAT?
"Alejandro Feijoo" <[email protected]> Mon, 6 Mar 2006 17:24:37 +0100 (CET)
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Well i dont understand so much .... i create a bond0 on the servers, but what ip?.... can u explain much please :( and if u can... can u make an example? A lot of tanks! > Hi, > > i also had some troubles to create a two nodes LVS Cluster. Currently > i'm using the direct routing method on two nodes. I made two bonding > interfaces in the same ip subsegment. Why you aren't using the same - > direct routing - method, or is there any matter that you have to use > the NAT method? > > If you are using the Direct Routing Method you must to enter an > iptables rulte on the real-sever interface. in my case that was the > bond0 interface. > > E.G: iptables -t nat -A PREROUTING -i bond0 or eth0/1 -p tcp -d > 193.144.34.ZZZ --dport 80(what application is running on the Real > Servers?) -j REDIRECT > > I hope this summary is useful for you! > > Regards, > Philipp > > > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Alejandro > Feijoo Gesendet: Montag, 6. März 2006 16:50 > An: [email protected] > Betreff: may be problem on NAT? > > > I want to create a cluster using piranha but i only have 2 servers, one > for > LVS router, one for LVS backup and both for Real Servers. > The conf is the follow: > > ProliantA: > public ip: 193.144.34.XXX > private ip 10.1.1.1 > virtual public ip: 193.144.34.ZZZ > virtual private ip: 10.1.1.3 > ProliantB: > public ip: 193.144.34.YYY > private ip 10.1.1.2 > > > I run piranha and make the following config: > serial_no = 143 > primary = 193.144.34.XXX > > > primary_private = 10.1.1.1 > service = lvs > backup_active = 1 > backup = 193.144.34.YYY > backup_private = 10.1.1.2 > heartbeat = 1 > heartbeat_port = 539 > keepalive = 6 > deadtime = 18 > network = nat > nat_router = 10.1.1.3 eth1:1 > nat_nmask = 255.255.255.240 > debug_level = NONE > monitor_links = 1 > virtual WEB { > active = 1 > address = 193.144.34.ZZZ eth0:1 > vip_nmask = 255.255.255.0 > port = 80 > send = "GET / HTTP/1.0\r\n\r\n" > expect = "HTTP" > use_regex = 0 > load_monitor = ruptime > scheduler = rr > protocol = tcp > timeout = 6 > reentry = 15 > quiesce_server = 0 > server proliantA { > address = 10.1.1.1 > active = 1 > weight = 2000 > } > server proliantB { > address = 10.1.1.2 > active = 1 > weight = 1000 > } > } > > > But the result is, nat not work... because when i active pulse on > both servers eth0:1 not start propietly and... if any petition to > 193.144.34.ZZZ may pass to other server this service not work > > > any can help me? > > > Tanks! and sorry my english > > ++-------------------------++ > Alejandro Feijóo Fraga > Tecnico de Sistemas. > Centro de supercomputación de Galicia > Avda. de Vigo s/n. Campus Sur. > 15705 - Santiago de Compostela. Spain > Tlfn.: 981 56 98 10 Extension: 216 > Fax: 981 59 46 16 > > > _______________________________________________ > Piranha-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/piranha-list ++-------------------------++ Alejandro Feijóo Fraga Tecnico de Sistemas. Centro de supercomputación de Galicia Avda. de Vigo s/n. Campus Sur. 15705 - Santiago de Compostela. Spain Tlfn.: 981 56 98 10 Extension: 216 Fax: 981 59 46 16