EIGRP
The summarisation command is done on the interface you can summarise or prevent some route to be advertise with summarisation .
(config-if)#ip summary-address eigrp # ( summary address ) ether all network or the one you want to advertise .
To prevent an EIGRP adjacency to be form by sending hello you can use the Passive-interface command
(config-router)#passive-interface ( interface )
OSPF
External route summarisation use : (config-router)#summary-address ( summary address )
Internal route summarisation use : (config-router)#area 1 range ( summary address )