Ubuntu/Static IP address

From Mana zināšanu grāmata
Revision as of 20:24, 27 March 2018 by Kaspars (talk | contribs) (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 /...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
# 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