Archive for February, 2014

Remover virbr0

Monday, February 24th, 2014

Bueno a la hora de instalar por default la parte de virtualizacon en centos y al arrancar la maquina, a la hora de dar un ifconfig vemos una mentada interfaz “virbr0” es nuestro puente para poder tenet comunicacion con nuestras futuras maquinas virtuales, pero si queremos hacer los bridge de manera manual y a nuestro gusto pues luego usaremos el brctl para eso. Mientras queremos remover la interfaz que nos crea.

corremos los siguientes comandos

# ifconfig virbr0
 
virbr0    Link encap:Ethernet  HWaddr 52:54:00:B7:91:19  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
 
 
# virsh net-list
Name                 State      Autostart     Persistent
--------------------------------------------------
default              active     yes           yes
 
 
]# virsh net-destroy default
Network default destroyed
 
# virsh net-undefine default
Network default has been undefined
 
# service libvirtd restart
Stopping libvirtd daemon:                                  [  OK  ]
Starting libvirtd daemon: 2014-02-24 16:46:54.975+0000: 2318: info : libvirt version: 0.10.2, package: 29.el6 (CentOS BuildSystem <http://bugs.centos.org>, 2013-11-23-13:07:07, c6b8.bsys.dev.centos.org)
2014-02-24 16:46:54.975+0000: 2318: warning : virGetHostname:2294 : getaddrinfo failed for 'vcloud': Name or service not known
                                                           [  OK  ]
 
# virsh net-list
Name                 State      Autostart     Persistent
--------------------------------------------------
 
 
# ifconfig virbr0
virbr0: error fetching interface information: Device not found

Listo ya no esta presente.

ssh con proxy command utilizando corkscrew sobre Fedora 19

Thursday, February 6th, 2014

Hoy usaremos el corkscrew para poder hacer ssh cuando estamos en un proxy, que tenemos que hacer, debemos instalar corkscrew

 
]# yum search corkscrew
Loaded plugins: langpacks, refresh-packagekit
============================================================================================= N/S matched: corkscrew ==============================================================================================
corkscrew.x86_64 : Tool for tunneling SSH through HTTP proxies
 
# yum install corkscrew.x86_64

ahora editamos nuestro archivo .ssh/config y agregamos lo siguiene:

$ cat .ssh/config
Host cagadaga.com b3mp.com
	ProxyCommand 	/usr/bin/corkscrew ip puerto %h %p
	ServerAliveInterval 10

y listo ya pdemos hacer ssh a los host que definamos!