Hi all
Have installed Ubuntu server 16.04 on a test server and would like to allocate a LAN ip address on startup through /etc/network/interfaces.
Current code is
Code:
# The primary network interface
auto enp17s0
iface enp17s0 inet dchp
On Ubuntu server 14.04 the code was changed to either
Code:
# The primary network interface
auto p3p1
iface p3p1 inet static
address 192.168.0.49
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4
or
Code:
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.49
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4
depending on the interface.
What should it be now, please?
TIA
feed all...
ما را در سایت feed all دنبال می کنید
برچسب : نویسنده : استخدام کار feedoll بازدید : 321 تاريخ : جمعه 31 ارديبهشت 1395 ساعت: 16:53