Bollard for attaching and mooring