sudo vim /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
dns-search google.bg
----
sudo vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
eth0:
# dhcp4: true
addresses: [192.168.0.100/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1]
version: 2
sudo netapply try
# sudo netapply
----
nmap 192.168.1.0/24
sudo nmap 192.168.1.0/24
nmap -sn 192.168.1.0/24
sudo nmap -sn 192.168.1.0/24
sudo nmap -Pn 192.168.1.100
вторник, 22 септември 2020 г.
Setup static ip address on Ubuntu 20.04.1
Абонамент за:
Коментари за публикацията (Atom)
Няма коментари:
Публикуване на коментар