TS-7250-V3 Buster Network: Difference between revisions

From embeddedTS Manuals
(Created page with "The network in Debian is configured /etc/network/interfaces.d/. For complete documentation, see [https://wiki.debian.org/NetworkConfiguration Debian's documentation here] So...")
 
No edit summary
Line 19: Line 19:
     address 192.0.2.7/24
     address 192.0.2.7/24
     gateway 192.0.2.254
     gateway 192.0.2.254
</source>
These will take effect on the next boot, or by restarting the networking service:
<source lang=bash>
service networking restart
</source>
</source>

Revision as of 09:41, 22 March 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:

tee /etc/network/interfaces.d/eth0 <<'EOF' >/dev/null
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
EOF

Static IP on eth0:

tee /etc/network/interfaces.d/eth0 <<'EOF' >/dev/null
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