Memnemonics fike’s Rotating Header Image

Xen pela Wifi

Minha placa Wifi (atheros) não funciona bridge e por isso não podia usá-la diretamente nas máquinas virtuais xen até que um dia um tutorial[1] resolveu todos os meus problemas. =) A grande mágica é criar uma interface dummy e fazer a bridge em nela com regras de NAT configuradas sua máquina virtual consegue acessar a internet. Vou rapidamente demonstrar (a preguiça e sono são grandes demais para algo mais elaborado). ifconfig dummy0 up brctl addbr xenbr0 brctl addif xenbr0 dummy0 brctl stp xenbr0 on brctl sethello xenbr0 0 brctl setfd xenbr0 0 ifconfig xenbr0 192.168.2.2 iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE echo "1" > /proc/sys/net/ipv4/ip_forward Referência: 1 - http://virt.kernelnewbies.org/XenWifiNetwork

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

1 Comment on “Xen pela Wifi”

  1. #1 jalexandre
    on Feb 20th, 2007 at 09:02

    Good, good…
    If you have an Ad-Hoc connection, this feature is unecessary. The bridge may work at NIC card in Ad-Hoc mode, no pain, no mystery… =D

    é.. preciso praticar meu inglês que tá mais enferrujado que portão de casa velha.

    [ ] ’s

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word