Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas Proyectos Sobre

Configurar interfaz de red en BSD

Read in English
Configurar interfaz de red en BSD

Tabla de contenidos

Para configurar una IP estática, puerta de enlace y DNS en BSD es muy sencillo, en esta ocasión vamos a ver como configurar la interfaz de red en FreeBSD y OpenBSD.

FreeBSD

Para configurar el direccionamiento ip y el gateway debemos añadir lo siguiente en el fichero /etc/rc.conf

bash
ifconfig_em0=»inet 192.168.1.110 netmask 255.255.255.0″

defaultrouter=»192.168.1.1″

Para configurar la resolución DNS es en /etc/resov.conf

text
search red-orbita.com

nameserver 192.168.1.10

nameserver 192.168.1.11

Reiniciamos el servicio de red

text
/etc/rc.d/netif restart

OpenBSD

En caso de OpenBSD, para configurar el direccionamiento IP debemos añadir lo siguiente en /etc/hostname.em0

bash
cat /etc/hostname.em0
inet 192.168.1.110 255.255.255.0 192.0.0.255

Para configurar el gateway creamos el fichero /etc/mygate

bash
cat /etc/hostname.em0

192.168.1.1

Para configurar la resolución DNS es en /etc/resov.conf

text
search red-orbita.com

nameserver 192.168.1.10

nameserver 192.168.1.11

lookup file bind

Reiniciamos el servicio de red

text
sh /etc/netstart

un saludo.

:wq!

Comentarios