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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5d180-44e8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5d180-44e8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?