1. A method for configuring a logical router in a logical network, the method comprising: receiving a configuration of a rule for network address translation (NAT) used by a first logical router to translate a set of network addresses to a particular network address; automatically configuring advertisement of a route for the particular network address to a second logical router; and automatically adding the advertised route for the particular network address to a routing table for at least one component of the second logical router.