You are on page 1of 2

Ricardo Nutz 4ºESO A

Configuración TCP-IP de nuestro ordenador

Dirección IP: 10.2.4.240


Máscara de Red: 255.255.255.0
03014538AU400
Puerta de enlace (Pasarela, Gateway, Router): 10.2.4.254
Servidores de DNS (pueden ser varios): 10.2.4.254

• Para averiguar mi dirección IP, en un terminal (CTRL+ALT+T) ejecuto el comando:


lliurex@03014538AU400:~$ ifconfig
eth0 Link encap:Ethernet direcciónHW 78:e3:b5:99:6b:a3
Direc. inet:10.2.4.240 Difus.:10.2.4.255 Másc:255.255.255.0
Dirección inet6: fe80::a62:66ff:fe2f:aaed/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:1781127 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:4169474 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:629543714 (629.5 MB) TX bytes:5373812801 (5.3 GB)

• Para averiguar mi puerta de enlace, en un terminal ejecuto el comando:


lliurex@03014538AU400:~$ route
Tabla de rutas IP del núcleo
Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
default 03014538AU400.lliurex 0.0.0.0 UG 0 0 0 eth0
10.2.4.0 * 255.255.255.0 U 0 0 0 eth0

Esto me dice el nombre de mi puerta de enlace o “gateway”,


y para saber su dirección IP, escribo la orden:

lliurex@03014538AU400:~$ ping 03014538AU400


PING 03014538AU400.lliurex (10.2.4.254) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.122 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.234 ms
...
^C

• Para averiguar mis servidores de nombre de dominio (DNS), ejecuto los comandos:
lliurex@03014538AU400:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.2.4.254
search lliurex
Ricardo Nutz 4ºESO A

• Para averiguar mis servidores de nombre de dominio (DNS) EN EL SERVIDOR,


ejecuto los comandos:

lliurex@03014538AU400:~$ cat /etc/dnsmasq.conf


#
# This file has been generated by n4d-dnsmasq plugin.
#

# DNS CONFIGURATION
domain-needed
bogus-priv
strict-order
expand-hosts
no-hosts
addn-hosts=/var/lib/dnsmasq/hosts
domain=lliurex
local=/lliurex/
address=/preseed/mirror/proxy/10.2.4.254
# DHCP CONFIGURATION
interface=eth0
dhcp-authoritative
dhcp-ignore-names
dhcp-option=option:router,0.0.0.0
dhcp-option=option:dns-server,10.2.4.254
dhcp-option=option:domain-name,lliurex
dhcp-option=option:domain-search,lliurex
dhcp-range=10.2.4.100,10.2.4.242,12h

# CONF DIRS
conf-dir=/var/lib/dnsmasq/macs
conf-dir=/var/lib/dnsmasq/config
conf-dir=/etc/dnsmasq.d/

lliurex@03014538AU400:~$ cat /var/lib/dnsmasq/config/cname-server


cname=server.lliurex,03014538AU400.lliurex
cname=cups.lliurex,03014538AU400.lliurex
cname=www.lliurex,03014538AU400.lliurex
cname=ntp.lliurex,03014538AU400.lliurex
cname=share.lliurex,03014538AU400.lliurex
cname=srv.lliurex,03014538AU400.lliurex
cname=servidor.lliurex,03014538AU400.lliurex
cname=jclic-aula.lliurex,03014538AU400.lliurex
cname=lliurexlab.lliurex,03014538AU400.lliurex
cname=error.lliurex,03014538AU400.lliurex
cname=ipxeboot.lliurex,03014538AU400.lliurex

lliurex@03014538AU400:~$ cat /var/lib/dnsmasq/config/extra-dns


server=172.27.111.5
server=172.27.111.6

You might also like