Como fixar um ip no Linux na rede interna:

 Exemplo abaixo:

ARM V7 - Orange PI


| | | | __ _  ___| | __ | |_| |__   ___   / ___|_   _  __ _ _ __ __| |___  ___ 

| |_| |/ _` |/ __| |/ / | __| '_ \ / _ \ | |  _| | | |/ _` | '__/ _` / __|/ _ \

|  _  | (_| | (__|   <  | |_| | | |  __/ | |_| | |_| | (_| | | | (_| \__ \  __/

|_| |_|\__,_|\___|_|\_\  \__|_| |_|\___|  \____|\__,_|\__,_|_|  \__,_|___/\___|

                                                                               


root@OrangeHack:~# cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 9 (stretch)"

NAME="Debian GNU/Linux"

VERSION_ID="9"

VERSION="9 (stretch)"

VERSION_CODENAME=stretch

ID=debian

HOME_URL="https://www.debian.org/"

SUPPORT_URL="https://www.debian.org/support"

BUG_REPORT_URL="https://bugs.debian.org/"


root@OrangeHack:~# cat /etc/network/interfaces.d

cat: /etc/network/interfaces.d: Is a directory

root@OrangeHack:~# cat /etc/network/interfaces  

# interfaces(5) file used by ifup(8) and ifdown(8)

# Include files from /etc/network/interfaces.d:

source-directory /etc/network/interfaces.d


auto eth0

iface eth0 inet static

    address 192.168.1.5

    netmask 255.255.255.0

    gateway 192.168.1.1

    dns-nameservers 8.8.8.8 8.8.4.4




                                              


Comentários

Postagens mais visitadas deste blog

Tcpdump

Wireshark