Layer 3 Routing Commands 1245distribute-list prefix inUse this command to configure a filter that restricts the routes that BGPaccepts from all neighbors based on destination prefix.Syntaxdistribute-list prefix list-name inno distribute-list prefix list-name in• list-name—A prefix list used to filter routes received from all peers basedon destination prefix.Default ConfigurationNo distribute lists are defined by default.Command Mode• BGP Router Configuration mode• IPv6 Address Family Configuration modeUser GuidelinesThe distribute list is applied to all routes received from all neighbors. Onlyroutes permitted by the prefix list are accepted. If the command refers to aprefix list that does not exist, the command is accepted and all routes arepermitted.Command HistoryIntroduced in version 6.2.0.1 firmware.Exampleconsole(config-router)#distribute-list prefix 255 indistribute-list prefix out (BGP RouterConfiguration)Use this command to configure a filter that restricts the advertisement ofroutes based on destination prefix.