Skip to content

Instantly share code, notes, and snippets.

View kashyapc's full-sized avatar

Kashyap Chamarthy kashyapc

View GitHub Profile

Deploy

User with sudo

This is only needed in a clean hypervisor. If you have a laptop with a user with sudo then you can skip the user creation and sudo setup. As root:

useradd -s /bin/bash -d /home/gibi -m gibi
echo "gibi ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/gibi
sudo -u gibi -i
@kashyapc
kashyapc / gist:7926517
Created December 12, 2013 11:20
tcpdump analysis
# On Controller node
$ tcpdump -envi eth0 | grep -i gre
$ tcpdump -envi br-int
$ tcpdump -envi br-tun
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qr-63ea2815-b5 icmp
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qg-e7110dba-a9 icmp
$ tcpdump -envi 192.168.122.163
$ tcpdump -envi br-ex
$ tcpdump -i eth0 -n arp or icmp