Re: Installation problems
Horms <[email protected]>
| Newsgroups | gmane.linux.highavailability.ultramonkey |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 10, 2005 at 07:35:16PM -0700, Robert Bates wrote: > Hi Simone and Rick, > > I found problem number 2. I did something wrong with the loopback which > killed network and generated the IP conflict errors but removed them and now > at least they can see the network. > > On problem 1 I don't have the virtual IPs in haresources. For some reason I > can't seem to get the syntax right because it keeps throwing errors. This > is what I have > > 192.168.0.100 virtual web server > 192.168.0.101 real web server 1 > 192.168.0.102 real web server 2 > > 192.168.0.200 virtual mysql server > 192.168.0.201 real mysql server 1 > 192.168.0.202 real mysql server 2 Adding IPaddr2::192.168.0.100/24/eth0 and IPaddr2::192.168.0.200/24/eth0 to your haresourses should add this. To elaborate slightly on ip vs ifconfig, which came up in another mail. ifconfig is the old-school way of configuring interfaces. It along with route is what the IPaddr resource uses. This works, mostly, but it turns out that ifconfig is not very well suited to this kind of work for a variety of reasons. IPaddr2 is a reimlimentation of IPaddr which makes use if the ip command, and as a result is a lot cleaner, and provides some features that are either impossible, or to complex to provide using IPaddr. For your purposes either should do, the syntax is the same. But IPaddr2 is the way of the future, so I recommend using that. ip is a more powerful tool that allows you to configure interfaces, routing, policy routing, and all sorts of other fun stuff. As mentioned above, this is what IPaddr2 uses. The main catch is that the model that ifconfig uses to add additional addresses to an interface - called an alias - basically sets up a separate virtual interface. Whereas ip just adds a secondary address to the interface. This is important because while ip can see aliases set up using ifconfig, ifconfig can't see secondary addresses added using ip. So if you use ifconfig (which lets face it is a bit easier to type, especially if you have been using it for years) and you think there are some addresses missing, double check using ip addr sh -- Horms -- Ultra Monkey - http://www.ultramonkey.org/ To UNSUBSCRIBE, email to [email protected], with a body: unsubscribe ultramonkey-users [email protected] where "[email protected]" is YOUR email address.