first of all, you can configure "switchport host" command only in a port which is already a switchport (i.e: "switchport" is already configured on that port).
if it is a routed port, you get an error.
Command rejected: Gi2/4 not a switching port.
This MACRO does 3 things.
1. switchport mode access
2. spanning-tree portfast
3. disables port-channeling.