Debian Buster Network
From embeddedTS Manuals
A file with the name of each network device to be configured is placed in /etc/network/interfaces.d/. The example below demonstrates configuration and use of the wired Ethernet device 'eth0'. For complete documentation, see Debian's documentation here
Some common examples are shown below.
DHCP on eth0:
cat > /etc/network/interfaces.d/eth0 <<EOF
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
EOF
Static IP on eth0:
cat > /etc/network/interfaces.d/eth0 <<EOF
auto eth0
iface eth0 inet static
address 192.0.2.7/24
gateway 192.0.2.254
EOF
The network can then be brought up with the command:
ifup eth0