I required your comments on a scenario of multihoming to a single provider.RouterA have 2 links with upstream provider and using maximum-path command to install more than 1 path in routing table for a prefix learned from both eBGP sessions.RouterA have iBGP session with RouterB also in its AS, now my question is that when I check BGP table for a prefix ( suppose 22.214.171.124 /16 ) at RouterB then it shows next hop ip address of its peer i.e RouterA although I am not using nexthop-self command on RouterA.Is this behaviour is due to maximum-path command ??
You are correct. In this scenario, the next-hop-self is set to self by router A because "maximum-paths" is configured and as a result of that multiple BGP paths are installed in the RIB.
Hope this helps,