Replacing all instances of an IP address in a log file.

I know this should be simple but the periods in the string replacement are throwing me off.

What I want to do is replace 1.1.1.1 in my access.log file with 2.2.2.2

I have tried using 'tr' but its being thrown off by the periods and replacing all sorts of stuff in the file.

What do I need to do to just have something run through the whole file replacing any instance of one ip address with another?

how about sed:

sed 's/1\.1\.1\.1/2.2.2.2/g' filename > newfilename

A small observation when I checked the above line... not sure, what addition is required to complete it though

**1.1.1.1** ip as well to **2.2.2.2**

viz. 191.1.1.120 to 192.2.2.220 et cetra....

Cheers, Bru.