Custom Search

Monday, June 18, 2018

How to capture WiFi Beacon Management frame using tcpdump to check SSID - WLAN

1)
My-MacBook-Pro:~ user$ sudo tcpdump -vv -i en0 -e -I type mgt subtype beacon

tcpdump: listening on en0, link-type IEEE802_11_RADIO (802.11 plus radiotap header), capture size 262144 bytes
00:49:19.722187 294568054us tsft 1.0 Mb/s 2437 MHz 11g -53dBm signal -95dBm noise antenna 0 0us BSSID:24:e9:11:61:0a:53 (oui Unknown) DA:Broadcast SA:24:e9:11:61:0a:53 (oui Unknown) Beacon (mywifi) [1.0* 2.0* 5.5* 11.0* Mbit] ESS CH: 6, PRIVACY
00:49:19.824598 294670453us tsft 1.0 Mb/s 2437 MHz 11g -57dBm signal -95dBm noise antenna 0 0us BSSID:24:e9:11:61:0a:53 (oui Unknown) DA:Broadcast SA:24:e9:11:61:0a:53 (oui Unknown) Beacon (mywifi) [1.0* 2.0* 5.5* 11.0* Mbit] ESS CH: 6, PRIVACY
00:49:19.927035 294772851us tsft 1.0 Mb/s 2437 MHz 11g -56dBm signal -95dBm noise antenna 0 0us BSSID:24:e9:11:61:0a:53 (oui Unknown) DA:Broadcast SA:24:e9:11:61:0a:53 (oui Unknown) Beacon (mywifi) [1.0* 2.0* 5.5* 11.0* Mbit] ESS CH: 6, PRIVACY

en0 ---- Name of wireless interface
mywifi ---- Name of SSID
-I ---- to capture 802.11 frames

2)
My-MacBook-Pro:~ user$ sudo tcpdump -vv -i en0 -e -XX -I type mgt subtype beacon

-XX ----- To print data in hex
-I ---- to capture 802.11 frames

3)
My-MacBook-Pro:~ user$ sudo tcpdump -i en0 -e -I -s 256 type mgt subtype probe-resp or subtype probe-req

-I ---- to capture 802.11 frames

4)






Wednesday, June 6, 2018

OpenStack DevStack functions-common Failure retrieving default route device


1)


ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.63.0     0.0.0.0         255.255.255.0   U     0      0        0 ens33
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens34
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.169.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens35
192.170.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens36
ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$

2)
ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$sudo route add default gw 172.16.63.2 ens33
ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$

3)
ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.16.63.2     0.0.0.0         UG    0      0        0 ens33
172.16.63.0     0.0.0.0         255.255.255.0   U     0      0        0 ens33
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens34
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.169.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens35
192.170.5.0     0.0.0.0         255.255.255.0   U     0      0        0 ens36
ubuntu@ubuntucontroller:~$
ubuntu@ubuntucontroller:~$

Volume group "stack-volumes-lvmdriver-1" not found devstack openstack


ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$ sudo losetup -f --show /opt/stack/data/stack-volumes-lvmdriver-1-backing-file
/dev/loop0

ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$



ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$ sudo vgcreate stack-volumes-lvmdriver-1 /dev/loop0
  Volume group "stack-volumes-lvmdriver-1" successfully created
ubuntu@ubuntucontroller:~/devstack$
ubuntu@ubuntucontroller:~/devstack$