2nd network card do not ping on VM

BOYER Thomas 21 Reputation points
2021-03-23T19:29:51.857+00:00

Hello,

I have 2 network card on VM.

The first as local IP : 10.0.1.9 and a WAN ip : 40.xxx.xxx.xxx.
The second as local IP : 10.0.1.10 and a WAN ip : 20.xxx.xxx.xxx.

The first reponds corectly to ping from a other VM on the local network (exemple:from 10.0.1.4)
The second do not responds to ping from a other VM on the local network.

Question : How to configure the route table for use the 2 interface ?

Its on Red Hat 8

My actual route table :

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.1.1        0.0.0.0         UG    100    0        0 eth0
10.0.1.0        0.0.0.0         255.255.255.0   U     100    0        0 eth0
10.0.1.0        0.0.0.0         255.255.255.0   U     101    0        0 eth1
168.63.129.16   10.0.1.1        255.255.255.255 UGH   100    0        0 eth0
169.254.169.254 10.0.1.1        255.255.255.255 UGH   100    0        0 eth0

ip route

default via 10.0.1.1 dev eth0 proto dhcp metric 100
10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.9 metric 100
10.0.1.0/24 dev eth1 proto kernel scope link src 10.0.1.10 metric 101
168.63.129.16 via 10.0.1.1 dev eth0 proto dhcp metric 100
169.254.169.254 via 10.0.1.1 dev eth0 proto dhcp metric 100

Thanks for your response.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,278 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,602 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-03-23T19:32:04.31+00:00
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.