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?













0















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:
enter image description here



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










share|improve this question




























    0















    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:
    enter image description here



    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










    share|improve this question


























      0












      0








      0


      1






      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:
      enter image description here



      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










      share|improve this question
















      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:
      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago









      Rui F Ribeiro

      41.2k1481140




      41.2k1481140










      asked 5 hours ago









      user3299199user3299199

      31125




      31125




















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

          What is this called? Old film camera viewer?What makes a good film camera?What to do with an old film camera?What should one look for when buying a used film camera?What is the value and age of this pre-1967 Ricoh 35 mm camera?DSLR recommendation, question about old Canon 35mm film Camera & lensesCan anyone identify the silver rangefinder-style camera in this advertisement?What kind of a Polaroid 600-camera is this?Will an old film camera still work even when not used in a very long time?What is this camera / Can I develop the film?How to fit an action camera into antique (bellows) housing?What to check when buying used and old film bodies?

          Why is this plane circling around the Lucknow airport every day?Why do aircraft on Flight Radar 24 jump around randomly sometimes?What airport has this walkway over a taxiway?How does Chicago O'Hare's tower sequence aircraft at peak capacity?Which airport is featured in this Delta commercial?After a crash, for how long is the airport closed?Can a passenger plane stand still in the air, or hover at a fixed location above a ground?What are those trucks towing around, and why?What is this airport outside of Cairo, Egypt?Which US airport has the lowest circling MDH?What is this airport video?