How to add second IPv4 Public IP to amazon Linux EC2 instancemultiple default gateways for alias interfacestwo NICs in the same subnet— need to set up routingHow can I set the “default route” when an interface has multiple IPs?Can I use a single gateway with multiple/2 lan cards in linuxCan't SSH in to cloned EC2 server from public networkGetting Public IP address of EC2 instance from outside using AWS-cliNetwork interface crashes after disconnecting eth wire or restarting servicehow to redirect all outgoing traffic from default eth0 to eth1 in centos 6Networking configuration in linuxCan you assign different DNS servers to different network interfaces?
How to install "rounded" brake pads
How can I have x-axis ticks that show ticks scaled in powers of ten?
“I had a flat in the centre of town, but I didn’t like living there, so …”
Sort array by month and year
Will the concrete slab in a partially heated shed conduct a lot of heat to the unconditioned area?
The (Easy) Road to Code
How to educate team mate to take screenshots for bugs with out unwanted stuff
How to make sure I'm assertive enough in contact with subordinates?
Did Amazon pay $0 in taxes last year?
I am the light that shines in the dark
Trigger on Custom Object Share
Having the player face themselves after the mid-game
After Brexit, will the EU recognize British passports that are valid for more than ten years?
How do you make a gun that shoots melee weapons and/or swords?
Use Mercury as quenching liquid for swords?
Why isn't P and P/poly trivially the same?
Who has more? Ireland or Iceland?
Can I negotiate a patent idea for a raise, under French law?
Unidentified signals on FT8 frequencies
Short story about cities being connected by a conveyor belt
What would be the most expensive material to an intergalactic society?
Was it really inappropriate to write a pull request for the company I interviewed with?
An Undercover Army
Create chunks from an array
How to add second IPv4 Public IP to amazon Linux EC2 instance
multiple default gateways for alias interfacestwo NICs in the same subnet— need to set up routingHow can I set the “default route” when an interface has multiple IPs?Can I use a single gateway with multiple/2 lan cards in linuxCan't SSH in to cloned EC2 server from public networkGetting Public IP address of EC2 instance from outside using AWS-cliNetwork interface crashes after disconnecting eth wire or restarting servicehow to redirect all outgoing traffic from default eth0 to eth1 in centos 6Networking configuration in linuxCan you assign different DNS servers to different network interfaces?
I have EC2 instance (Linux OS) and I added second network interface to it. I got public Elastic IP and assigned to the network interface. Then I assigned network interface to the EC2 Instance.
When I run on EC2 Instance
ifconfig
I get eth0 and eth1 info with private IP addresses correctly assigned. When I select "Manage IP addresses" for my EC2 Instance on AWS I get: 
Both network interfaces are in the same subnet and security group. I can ping public IP for eth0 but I can not ping public IP for eth1.
What am I missing?
UPDATE:
I noticed that Public DNS of second (IP 52.27.x.x) is exactly the same as for first IP 34.212.x.x
linux network-interface aws
add a comment |
I have EC2 instance (Linux OS) and I added second network interface to it. I got public Elastic IP and assigned to the network interface. Then I assigned network interface to the EC2 Instance.
When I run on EC2 Instance
ifconfig
I get eth0 and eth1 info with private IP addresses correctly assigned. When I select "Manage IP addresses" for my EC2 Instance on AWS I get: 
Both network interfaces are in the same subnet and security group. I can ping public IP for eth0 but I can not ping public IP for eth1.
What am I missing?
UPDATE:
I noticed that Public DNS of second (IP 52.27.x.x) is exactly the same as for first IP 34.212.x.x
linux network-interface aws
add a comment |
I have EC2 instance (Linux OS) and I added second network interface to it. I got public Elastic IP and assigned to the network interface. Then I assigned network interface to the EC2 Instance.
When I run on EC2 Instance
ifconfig
I get eth0 and eth1 info with private IP addresses correctly assigned. When I select "Manage IP addresses" for my EC2 Instance on AWS I get: 
Both network interfaces are in the same subnet and security group. I can ping public IP for eth0 but I can not ping public IP for eth1.
What am I missing?
UPDATE:
I noticed that Public DNS of second (IP 52.27.x.x) is exactly the same as for first IP 34.212.x.x
linux network-interface aws
I have EC2 instance (Linux OS) and I added second network interface to it. I got public Elastic IP and assigned to the network interface. Then I assigned network interface to the EC2 Instance.
When I run on EC2 Instance
ifconfig
I get eth0 and eth1 info with private IP addresses correctly assigned. When I select "Manage IP addresses" for my EC2 Instance on AWS I get: 
Both network interfaces are in the same subnet and security group. I can ping public IP for eth0 but I can not ping public IP for eth1.
What am I missing?
UPDATE:
I noticed that Public DNS of second (IP 52.27.x.x) is exactly the same as for first IP 34.212.x.x
linux network-interface aws
linux network-interface aws
edited 4 hours ago
Rui F Ribeiro
41.2k1481140
41.2k1481140
asked 5 hours ago
user3299199user3299199
31125
31125
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505216%2fhow-to-add-second-ipv4-public-ip-to-amazon-linux-ec2-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505216%2fhow-to-add-second-ipv4-public-ip-to-amazon-linux-ec2-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown