Set up routing and links