Patent attributes
Some embodiments provide a method for implementing a logical router (LR) in a logical network. The method receives configuration data connecting a first LR to a second LR, which includes several logical routing components with separate routing tables. For each of one or more routes configured for the first LR, the method adds a route to the routing table of a distributed routing component of the second LR. The added route has a next hop address of an interface of the first LR. The method also adds, for each of the one or more routes configured for the first LR, a route to the routing tables of each of one or more centralized routing components of the second LR. The next hop address of the added route is an address of an interface of the distributed routing component that is internal to the second LR.