Ubuntu/Static IP address: Difference between revisions

From Mana zināšanu grāmata
Jauna lapa: <div class="mw-parser-output"><pre># This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /...
 
m 1 revision imported
 
(No difference)

Latest revision as of 10:41, 16 April 2026

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# test

# The primary network interface
auto ens33
iface ens33 inet static
 address 192.168.1.100
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1
 dns-nameservers 8.8.8.8 8.8.4.4