Specifically, 제대 means that a soldier starts not to serve his/her service anymore.
On the other hand, 전역 means that a status of soldier turns into the others like a normal civilian.
However, you do not have to differenciate the meanings between them. They share the same meaning.