AWS second elastic IP not working after correct dhclient results

后端 未结 2 1321
闹比i
闹比i 2021-01-28 10:27

EDIT: Solved, routing table did not update properly. as was answered.

On AWS and Ubuntu 16.04, a 2nd network interface is attached with 2nd elastic IP.

Instance

相关标签:
2条回答
  • 2021-01-28 10:49

    This is because you have multiple network interfaces on the same subnet, so your OS is not sending it out of the right interface. You will need to use source based routing on your instance to make this work.

    0 讨论(0)
  • 2021-01-28 11:08
    echo 2 > /proc/sys/net/ipv4/conf/default/rp_filter
    echo 2 > /proc/sys/net/ipv4/conf/all/rp_filter
    

    To make this change persistence

    net.ipv4.conf.default.rp_filter = 2
    net.ipv4.conf.all.rp_filter = 2
    

    ** Tested AWS Environment

    0 讨论(0)
提交回复
热议问题