The planned engineering works will affect cross-border and Northern Ireland rail lines.