AWS second elastic IP not working after correct dhclient results

后端 未结 2 1320
闹比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 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

提交回复
热议问题