1. 程式人生 > >Make Secondary Network Interface Work in Ubuntu EC2 Instance

Make Secondary Network Interface Work in Ubuntu EC2 Instance

Adding a secondary network interface to a non-Amazon Linux EC2 instance causes traffic flow issues. These issues occur because both the primary and the secondary network interfaces are in the same subnet, and there is only one routing table with one gateway. Traffic that comes into the secondary network interface leaves the instance using the primary network interface. But this isn't allowed, because the secondary IP address doesn't belong to the MAC address of the primary network interface.

To make the secondary interface work, create a secondary network configuration file, configure the routing table, and then set up rules in the custom routing table policy database so that traffic for the secondary interface uses the new routing table.

Note: The steps for adding a secondary network interface are different for each of the following Ubuntu versions:

  • Ubuntu 14.04
  • Ubuntu 16.04
  • Ubuntu 18.04

相關推薦

Make Secondary Network Interface Work in Ubuntu EC2 Instance

Adding a secondary network interface to a non-Amazon Linux EC2 instance causes traffic flow issues. These issues occur because both the primary

Make Secondary Network Interface Work in CentOS or RHEL Instance

Adding a secondary network interface to a non-Amazon Linux instance causes traffic flow issues. This is because both the primary and the second

Restore Disabled Network Connectivity to a Windows EC2 Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Use Swap File to Allocate Memory as Swap Space in Amazon EC2 Instance

Swap space is commonly used as a short-term replacement for physical RAM on an Amazon EC2 instance that's experiencing demand for physical RAM

Add a Second Elastic IP Address with a Single Elastic Network Interface to an EC2 Instance

When you add a second Elastic IP address to an elastic network interface, that Elastic IP address is lost when the interface is rebooted. To ma

更換oracle 集群網卡(Changing a Network Interface

post data crs 52.0 network ifconf down oracle 更換 ?? 更換oracle 集群網卡(Changing a Network Interface) 假設換網卡前後 網卡名。ip,網關,子網掩碼都不變的話,集群層面不許要做額外

JAVA_HOME not recognized by tomcat7 in Ubuntu

chang fault .bashrc point source port missing tomcat7 openjdk vi .bashrc 添加: export JAVA_HOME=/usr/lib/jvm/java-8-oracle export JRE_HOM

a start job is running for Raise network interface (5min 3s)

interface network following running editing a start job is running for Raise network interface (5min 3s)Maybe it is a workaround but I could redu

LWIP network interface 網卡 初始化 以 STM32 為例子 後面會有 用 2G 或者4G 模塊 用 PPP撥號的 形式 虛擬出網卡 所以先以 這個為 前提

lan 函數 網卡 描述 ane details 我們 err img LWIP network interface 網卡 初始化 以 STM32 為例子 後面會有 用 2G 或者4G 模塊 用 PPP撥號的 形式 虛擬出網卡 所以先以 這個為

Issues in using gym-gazebo in Ubuntu 14.04

creat issues fur tensor learning tps cat -i don Overview OpenAI-gym (Git Repo) provides a great toolkit and a playgroud for research on D

Install MongoDB in Ubuntu 16.04 LTS

enable linuxmint script main ted systemctl ech python3 rem MongoDB是一個高性能的NoSQL數據庫,相比於關系型數據庫,它同時具備高性能與高靈活性,這裏講解一下如何在Ubuntu 16.04 LTS上安裝與配置

Install Docker in Ubuntu 16.04 LTS

erp dbf deb arguments doc sin onf server keys add key sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118

Install Virtualbox 5.2 in Ubuntu 16.04 LTS

box debian vbox 6.0 ora sta tps update oracle add key wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key

Install Oracle jdk8 in Ubuntu 16.04 LTS

rac ppa acl sta tor oracle 6.0 web add 1.add repository apt add-repository ppa:webupd8team/java 2.update apt update 3.install apt install

Install Chrome in Ubuntu 16.04 LTS

Chrome Ubuntu add key wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - add sources sudo sh -c ‘echo "deb [arch=a

Install Oracle JDK 9 in Ubuntu 16.04 LTS

Oracle Java Ubuntu JDK9 add repository apt add-repository ppa:webupd8team/java update apt update install apt install oracle-java9*Install Oracle JD

Install Influxdb in Ubuntu 16.04 LTS

Influxdb Ubuntu add key curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - add sources echo "deb https://repos.influxdata.com/ubun

Install Mariadb in Ubuntu 16.04 LTS

Mariadb Ubunut MariaDB官網提供了repository https://downloads.mariadb.org/mariadb/repositories/#mirror=tuna 在這裏可以查詢到各類系統的安裝方法,這裏僅對Ubuntu 16.04 LTS講解。 add key

Install Visual Studio Code in Ubuntu 16.04 LTS

Visual Studio Code Ubuntu add key curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/

Install Telegraf in Ubuntu 16.04 LTS

Telegraf Ubuntu add key curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - add sources echo "deb https://repos.influxdata.com/ubun