Sie sind auf Seite 1von 4

SISTEMAS OPERATIVOS Y REDES – 2009         PROF.

 RESPONSABLE: TAFFERNABERRY CARLOS

GUIA – Utilización CD LIVE ADIOS

Abrir una terminal en ADIOS UML – Linux Host (sobre la máquina física)

$ su ­
passwd: 12qwaszx
  
*Verificar si tenes resolución de nombres ....

# host yahoo.com
yahoo.com has address 69.147.114.224
yahoo.com has address 209.131.36.159
yahoo.com has address 209.191.93.53
yahoo.com mail is handled by 1 c.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 d.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 e.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 f.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 g.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 a.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 b.mx.mail.yahoo.com

*Luego verificar la conectividad hacia internet

#ping yahoo.com
PING yahoo.com (209.131.36.159) 56(84) bytes of data.
64 bytes from b1.www.vip.sp1.yahoo.com (209.131.36.159): icmp_seq=1
ttl=53 time=216 ms
64 bytes from b1.www.vip.sp1.yahoo.com (209.131.36.159): icmp_seq=2
ttl=53 time=212 ms
64 bytes from b1.www.vip.sp1.yahoo.com (209.131.36.159): icmp_seq=3
ttl=53 time=216 ms

*verificar si el default gateway del Adios es eth0  (..)
# ip ro
192.168.1.1 dev tap0  scope link
200.63.148.73 dev eht0  proto kernel  scope link  src 190.176.131.244
192.168.2.1 dev tap1  scope link
default dev eth0  scope link

*Antes de pasar a las maquinas virtuales, se debe realizar el nateo sugerido en el manual de 
ADIOS

If you have Internet access via eth0 on your system then you may find it useful to add the following 
rules to /etc/sysconfig/iptables to your parent system and then restart iptables with "service 
iptables restart".
(agregar los siguiente en el arhivo /etc/sysconfig/iptables)

GUIA – Utilización CD LIVE ADIOS ­Pág.1
SISTEMAS OPERATIVOS Y REDES – 2009         PROF. RESPONSABLE: TAFFERNABERRY CARLOS

*nat
­A POSTROUTING ­o eth0 ­j MASQUERADE
COMMIT

#Es decir  .... todo lo que venga de la ip de las umls, lo nateo a mi salida a internet.

Luego...

[root@localhost ~]# /etc/init.d/iptables restart

*Levantar una máquina virtual (si se desea tener conectividad a internet con otras máquinas 
virtuales se debe realizar lo que se expone aquí..)

con ifconfig puedo ver un par de interfaces más tipo tap 
 (conexion a UML1­ estoy en ADIOS UML – Linux Host)
#ifconfig tap0  
tap0      Link encap:Ethernet  HWaddr 00:FF:BD:53:36:D5
         inet addr:192.168.1.252  Bcast:192.168.1.252  Mask:255.255.255.255
         inet6 addr: fe80::2ff:bdff:fe53:36d5/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:175 errors:0 dropped:0 overruns:0 frame:0
         TX packets:129 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:500
         RX bytes:18126 (17.7 KiB)  TX bytes:18630 (18.1 KiB)

GUIA – Utilización CD LIVE ADIOS ­Pág.2
SISTEMAS OPERATIVOS Y REDES – 2009         PROF. RESPONSABLE: TAFFERNABERRY CARLOS

*Luego, logeado en  UML1, verificar si se puede acceder a  ADIOS UML – Linux Host
[root@uml1 ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr FE:FD:00:00:01:01
         inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::fcfd:ff:fe00:101/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:129 errors:0 dropped:0 overruns:0 frame:0
         TX packets:175 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:16824 (16.4 KiB)  TX bytes:18126 (17.7 KiB)
         Interrupt:5

*ip del tap de Adios en cuestion
[root@uml1 ~]# ping 192.168.1.252
PING 192.168.1.252 (192.168.1.252) 56(84) bytes of data.
64 bytes from 192.168.1.252: icmp_seq=1 ttl=64 time=22.5 ms
64 bytes from 192.168.1.252: icmp_seq=2 ttl=64 time=0.201 ms
64 bytes from 192.168.1.252: icmp_seq=3 ttl=64 time=0.202 ms

*Verificar en la tabla de rutas el default gateway de UML1
[root@uml1 ~]# ip ro
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
10.20.0.0/16 dev eth2  proto kernel  scope link  src 10.20.0.1
10.10.0.0/16 dev eth1  proto kernel  scope link  src 10.10.0.1

*En caso de no tener default gateway, se debe agregar la ruta por defecto en UML1
#  ip ro add default via 192.168.1.252 (ip del tap0 de ADIOS)

*Cambiar el /etc/resolv.conf de UML1, tal como aparece en ADIOS UML – Linux Host

*Comprobar si se tiene conectividad, y si funciona la resolución de nombres DNS

[root@uml1 ~]# ping  yahoo.com
PING yahoo.com (209.191.93.53) 56(84) bytes of data.
64 bytes from b1.www.vip.mud.yahoo.com (209.191.93.53): icmp_seq=1 ttl=52 time=188 ms
64 bytes from b1.www.vip.mud.yahoo.com (209.191.93.53): icmp_seq=2 ttl=52 time=183 ms
64 bytes from b1.www.vip.mud.yahoo.com (209.191.93.53): icmp_seq=3 ttl=52 time=183 ms

[root@uml1 ~]# host   yahoo.com
yahoo.com has address 69.147.114.224
yahoo.com has address 209.131.36.159
yahoo.com has address 209.191.93.53
yahoo.com mail is handled by 1 c.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 d.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 e.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 f.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 g.mx.mail.yahoo.com.

GUIA – Utilización CD LIVE ADIOS ­Pág.3
SISTEMAS OPERATIVOS Y REDES – 2009         PROF. RESPONSABLE: TAFFERNABERRY CARLOS

yahoo.com mail is handled by 1 a.mx.mail.yahoo.com.
yahoo.com mail is handled by 1 b.mx.mail.yahoo.com.

*Levantar el navegador o probar con un telnet al port 80 de algun servidor de internet ....

GUIA – Utilización CD LIVE ADIOS ­Pág.4

Das könnte Ihnen auch gefallen