Problem to make two interfaces work on linux in Azure

Dawid Moskalczuk 0 Reputation points
2023-03-22T19:03:59.42+00:00

I had problem with work two interfaces on Azure Ubuntu.

Interfaces eth0, eth1.

After adding default routing for eth1 working now:

eth0 in both ways (normally)

eth1 one way only(outbound)

I can't connect to eth1 from external. NSG had all port open etc (same like eth0).

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,664 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dawid Moskalczuk 0 Reputation points
    2023-03-22T21:31:25.4266667+00:00

    Routing added for eth1 and solved.

    ip route add 10.1.0.0/24 dev eth1 src 10.1.0.1 table rt2

    ip route add default via 10.1.0.1 dev eth1 table rt2

    ip rule add from 10.1.0.4/32 table rt2

    ip rule add to 10.1.0.4/32 table rt2

    file /etc/iproute2/rt_tables:

    1 rt2

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.