Have Both Dynamic and Static IP Setting at the Same time

Due to who we carry a notebook from home to office facing a problem of dynamic IP address at home and static IP address at the office. So is there any way to keep both setting configurations without changing IP address each time you change each location?
