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

          Word for a person who has no opinion about whether god existsWord for having a definite opinion while simultaneously withholding judgment?What's the opposite of “newcomer? Is ”veteran" OK?What do you call an “atheist” who might believe in an afterlife?What's a word for someone who wants to voice opinions but not have them challenged?Word for someone who dismisses contrary opinions as irrational?Somone who thinks they are overly special/out of the ordinaryIs there a word, phrase or idiom for “a person who is incapable of thinking about the future”?The belief that a god is human-likeA word for a non-famous person/thing you have heard a lot aboutAdjective for a person who enjoys taking care of their appearance

          Can I redirect output to a log file and background a process at the same time?2019 Community Moderator ElectionUnable to write to file in shell script when running command in backgroundredirect and log script outputhow to properly log the output of a console program that frequently updates “parts” of the screen, resulting in a messy log file?How can I redirect the output of a child process?grep script - output lines at the same time into echoHow to run process in background and get its pid to create log file nameHow to redirect output to a log from expect commandHow to clear a redirect log file content in shell?Log background jobs started in all the manually started shells?Why do `jobs` and `dirs` run in command subsitution, process substitution, pipeline, and background jobs output the same as in original shell?How to redirect output to file to STDOUT?