Multiple network interfaces - No SSH access

0

Hi!

I've created a t2.medium instance (Singapore region) with two network interfaces (eth0 and eth1) and I've tried using both the Ubuntu AMI from Amazon, and the Debian 9/Stretch AMI from Debian.

So far for both setups, I've enabled an Elastic IP for eth0, with a correspoding security group which lets me SSH into my server. My problem occurs straight away when I attach the second network interface (eth1), this interface is being attached without any Elastic IP (but it will have one in the future), once the eth1 interface is attached to the instance, the Elastic IP for eth0 stops responding on SSH, and I cannot SSH into my server anymore.

Does anyone have any tips on what is happening here, and how to resolve it?

hegga
asked 4 years ago857 views
2 Answers
0

Got this working by adding the code below into the netplan configuration for Ubuntu. The problem was caused by double default routes. The configuration below removes the default route for eth1.

dhcp4-overrides:
use-routes: false

hegga
answered 4 years ago
0

Hi hegga,

I'm glad that you were able to solve the issue. Please let us know if you need any further help.

Regards,
awstomas

AWS
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions