You are on page 1of 3

Stop network manager: /etc/init.

d/network-manager stop service network-manager stop To quickly identify all available interfaces (even if down): ifconfig –a To quickly identify all available Ethernet interfaces: ifconfig -a | grep eth Another application that can help identify all network interfaces available to your system: sudo lshw -class network nterface configuration file: /etc/network/interfaces To restart networking (reinicia todos los servicios de red): /etc/init.d/networking restart Temporary IP Address Assignment ip, ifconfig, route !or temporary network configurations" you can use standard commands such as ip" ifconfig and route# These commands allow you to configure settings which take effect immediately" however they are not persistent and will !e lost after a re!oot# ifconfig eth0 10.0.0.100 netmask 255.255.255.0 route add default gw 10.0.0.1 eth0 => $uerta de enlace por defecto To verify your default gateway configuration: route n To purge all IP configuration from an interface ip addr flush eth"

f you no longer need this configuration and wish to purge all $ configuration from an interface# !lushing the $ configuration using the ip command does not clear the contents of %etc%resolv#conf# &ou must remove or modify those entries manually# #tatic / $ynamic IP Address Assignment %$&'P 'lient( To manually enable the interface: sudo ifup eth0 sudo ifconfig eth0 up To manually disable the interface: sudo ifdown eth0 sudo ifconfig eth0 down !"#$% &ara esta'lecer la configuraci(n de red a alto nivel, se desactiva la interfa) con el comando ifdown, se modifica el archivo de configuraci(n *etc*network*interfaces + finalmente se usa la orden ifup para activar la interfa). ,a diferencia entre if e ifconfig es -ue la primera es una orden de alto nivel + la segunda de 'a.o nivel. /etc/network/interfaces

/7s)# +./S# The following is an e'ample of a hosts file where a number of local servers have been identified by simple hostnames" aliases and their equivalent !ully 5ualified .e+ample.com .E'amples file *etc*network*interfaces % ( para configurarlo como cliente de dhcp auto eth) iface eth) inet dhcp ( para configurarlo con ip est*tica auto eth) iface eth) inet static address +)#)#)#+)) netmask ./) in the following order: +) server+.omain /ames (!5./S server will provide a result of not found and the .sales.com 6) server+.--#) gateway +)#)#)#+ )ame *esolution To configure your system to use .com f no matches are found" the .8#)#+#+ +)#)#)#++ localhost ubuntu3server server+ vpn server+#e'ample#com ./S for its !ully 5ualified ./S for name resolution" add the $ addresses of the .e+ample./S query will fail# #tatic &ostnames are locally defined hostname3to3 $ mappings located in the file /etc/hosts ./S queries will be appended in the order in which they are entered# !or e'ample" your network may have multiple sub3domains to search4 a parent domain of e'ample#com" and two sub3domains" sales#e'ample#com and dev#e'3 ample#com# search e'ample#com sales#e'ample#com dev#e'ample#com nameserver 1#1#1#1 nameserver 1#1#2#2 f you try to ping a host with the name of server+" your system will automatically query .omain /ame (!5./S servers that are appropriate for your network in the file: /etc/resolv.conf A typical configuration of %etc%resolv#conf for a server on the domain 0e'ample#com0 and using two public .dev./S# n some configurations" especially when nternet access is not required" servers that communicate with a limited number of resources can be conveniently set to use static hostnames in3 stead of .) server+.--#.e+ample./S servers: search e'ample#com nameserver 1#1#1#1 nameserver 1#1#2#2 The search option can also be used with multiple domain names so that .8#)#)#+ +.--#.ntries in the hosts file will have precedence over $)# !y default# This means that if your system tries to resolve a hostname and it matches an entry in %etc%hosts" it will not attempt to look up the record in .

#e'ample#com server6 www server6#e'ample#com server2 file server2#e'ample#com n the above e'ample" notice that each of the servers have been given aliases in addition to their proper names and !5. +)#)#)#+6 +)#)#)#+2 server. mail server./7s# Server+ has been mapped to the name vpn" server.n del sistema % $ro'y de la red % <anual y poner la $ del $ro'y +=.#+>1#+))#+ por el puerto 1)1)# Tambi?n habr* que configurarlo en el navegador# . is referred to as mail" server6 as www" and server2 as file P*-./ $ara configurar el pro'y en 9buntu: :onfiguraci.+)#)#)#+.