BGP can import the routes from other routing protocols. When BGP needs to import routes from a dynamic routing protocol, you need to specify the process ID of the protocol.
BGP itself cannot discover routes. Therefore, it needs to import routes from other protocols, such as IGP or static routes and adds the routes to the BGP routing table so that these imported routes can be transmitted within an AS or between ASs.
BGP can import routes in either Import or Network mode:
Import mode: BGP imports routes by protocol type, such asRIP, OSPF, IS-IS, static routes, and direct routes.
Network mode: BGP imports a route with the specified prefix and mask. This mode is more precise than the Import mode.