мак

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

мак

Сообщение ya »

Для win
Покажет список всех имеющихся в подсети
arp -a | findstr 192.168.2

либо найти нужный айпишник по маку:
arp -a | findstr мак

Код: Выделить всё

arp -a | findstr 04-d9-f5-8a-e4-3a
Для linux:
arp -n | grep 192.168.2
arp -n | grep мак
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

Re: мак

Сообщение ya »

Код: Выделить всё

gt@deb11:~$ cat /etc/network/interfaces
# 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

# The primary network interface
#allow-hotplug enp8s0
#iface enp8s0 inet dhcp

auto enp8s0
iface enp8s0 inet static
 address 192.168.7.253
 netmask 255.255.240.0
 gateway 192.168.1.3
# dns-domain sweet.home
 dns-nameservers 192.168.2.5 192.168.2.6 1.1.1.1 8.8.8.8

Ответить