TS-7250-V3 Buster Network: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The network in Debian is configured /etc/network/interfaces.d/. | The network in Debian is configured /etc/network/interfaces.d/. For complete documentation, see [https://wiki.debian.org/NetworkConfiguration Debian's documentation here] | ||
Some common examples are shown below. | Some common examples are shown below. | ||
DHCP on eth0: | DHCP on eth0. Create the file: /etc/network/interfaces.d/eth0 | ||
<pre> | |||
auto eth0 | auto eth0 | ||
allow-hotplug eth0 | allow-hotplug eth0 | ||
iface eth0 inet dhcp | iface eth0 inet dhcp | ||
</pre> | |||
</ | |||
Static IP on eth0 | Static IP on eth0. Create the file /etc/network/interfaces.d/eth0 | ||
<pre> | |||
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
address 192.0.2.7/24 | address 192.0.2.7/24 | ||
gateway 192.0.2.254 | gateway 192.0.2.254 | ||
</pre> | |||
</ | |||
These will take effect on the next boot, or by restarting the networking service: | These will take effect on the next boot, or by restarting the networking service: |
Latest revision as of 11:39, 15 October 2021
The network in Debian is configured /etc/network/interfaces.d/. For complete documentation, see Debian's documentation here
Some common examples are shown below.
DHCP on eth0. Create the file: /etc/network/interfaces.d/eth0
auto eth0 allow-hotplug eth0 iface eth0 inet dhcp
Static IP on eth0. Create the file /etc/network/interfaces.d/eth0
auto eth0 iface eth0 inet static address 192.0.2.7/24 gateway 192.0.2.254
These will take effect on the next boot, or by restarting the networking service:
service networking restart