I assume you have the older 580EX and not the newer 580EX II?
yes, It will work. The flash will behave just as though it is mounted on the camera. Because the 580EX is an older model, it is not compatible with the in-camera flash menu on the 6D Mk II. Most flash settings will have to be set on the flash itself.