Ubuntu comes with two network cards that are assigned addresses through dhcp. How to configure which one will take the data from the external network?

Ubuntu comes with two network cards that are assigned addresses through dhcp. How to configure which card to transfer the data from the external network? I don"t know the gateway ip in advance.

Oct.25,2021

you must know in advance, otherwise you can't configure routing.

this needs to be done by configuring routing. If your network system has a network administrator, you can ask them for configuration.

for a dual Nic environment, the administrator should configure DHCP routing rules beforehand.

Menu