How do I change ip without restart Mac

I have an iMac that has the 2.9 GHz Intel Core i5, 8 GB RAM, 1 TB HDD, Nvidia GeForce GT 650M Graphics processor and OSx Mountain Lion.
How do I change IP without restart Mac?
Can I do that without logging into the router?
Thanks in advance.
