lol. ok, i'll bite...
nationalism is a term for those with common interests as citizens of the same country working together for mutual benefit and/or pride.
racism is a hatred of one or more person/s where skin colour is the basis used for the defining attribute.
neither is mandatory last I heard.