Cisco Nexus 5K’s – vPC with FEX configuration

July 31, 2015

I was beating myself in the head a little with trying to configure FEX ports on two different 2K’s to be used in a vPC.  The “verify” command would be successful but the “commit” command said it failed and that the vPC already existed.   Come to find out after opening a TAC case and then actually finding the link below, you do NOT need to specify a vPC number when configuring a port-channel on two different FEX’s.  The Nexus will do this automatically for you, with a very high number.  The reason it does this is because these ports aren’t local and they are shared with another 5K.  So dont worry, just because you don’t see the port-channel config with a “vPC ### ” statement, doesnt mean its not in a VPC.  Do a “show vpc” and you’ll see it down at the bottom.   Bottom line, you build a port-channel just like you normally would, just no vpc command needed.

Link reference:

FreeBSD 10.1 with MATE Desktop, Slim DM, X11vnc

May 20, 2015

MATE is a great desktop and seems to be very stable and quick with FreeBSD.  Follow the link below on setting it up, this person gives a good basic tutorial.

A more in depth install is covered here…

If you want to get Slim to auto login, you can do that be editing the slim conf file…

# ee /usr/local/etc/slim.conf

down towards the end, uncomment the “default_user” field and to the right, put your default user name.  Then just below that, uncomment auto_login and set it to “yes”.

I also wanted to get Remote Desktop working so I could VNC into my box.  X11vnc is the best for this.  It will use the current display.

# pkg install x11vnc

# x11vnc -storepasswd    (then put your password in, it will put it in a file .vnc/passwd)

# ee   (create a script to enable VNC server to listen and stay on even after you disconnect)

#!/usr/local/bin/bash    or    (  #!/bin/sh   if you are using default shell )

x11vnc -rfbauth ~/.vnc/passwd -forever -display :0 &

##### exit and save the file.

# chmod a+x

# ./

You are good to go, you’ll see an output but just hit enter key to clear it.

If you want VNC to come up at start up, on your desktop go to System > Preference > Startup Applications.  There put in a name for your App, the directory to the we just made and a comment if you want.  Thats it.  Not it will start up every time you reboot.

TCP Dump and Cisco

March 18, 2015

Log onto the L3 switch.

Here is the commands on the C6 that provide monitoring (sniffing) of a vlan to a specific port. The destination port is the port thats connected to eth2 on COSNIFFER01.

monitor session 1 source vlan ##
monitor session 1 destination interface Gi8/2 (interface)

Change the first line to whatever vlan you are wanting to capture.

After that, jump back onto cosniffer and run the following command…

tcpdump -i eth2 -nn -s0 -w filename.pcap ‘host 192.168.52.XX’

Change whats in red. Name your file and make your host what specify device or IP you are wanting to capture in the traffic. You can also do multiple devices or IP’s like so….
‘host x.x.x.x and host x.x.x.x’

Hit enter on the command. Let it run for a certain amount of time.

CTRL-C to end the command.

User WinSCP to copy the .pcap file you just made to your PC and open it up with Wireshark to examine the traffic.

Good Luck!

ARRIS TM502G with Comcast Xfinity

March 17, 2015

My grandmother has TV and Voice service with Comcast. They were charging her $10 a month for a modem rental. Found this model on eBay for $18 as a refurb. It works great with Comcast in Indiana. All you have to do is swap out your rental modem with your new modem, turn it on, and hook up a computer/laptop to the network port on the back of the ARRIS. Open a web browser and you’ll and try to get out to the Internet, you’ll get redirected to a Comcast Activation page. Its 3 or 4 easy steps, takes about 5 minutes. Just follow the instructions. You won’t need to call Comcast at all. Test your services after its activated.

Debian Wheezy install HP Elitebook 8440p

March 9, 2015

I had FreeBSD installed on this (previous post) but decided to turn this laptop into a GNS3 lab. Per GNS3’s website they prefer you use Ubuntu. I don’t care for Ubuntu so I installed Debian. Mint would be my second choice.

Everything works for the most part. Below is to do list…

1) – WIFI – Intel Centrino Advanced-N 6200…

Add a “non-free” component to /etc/apt/sources.list, for example:

# Debian 7 “Wheezy”
deb wheezy main contrib non-free

save & exit

# apt-get update && apt-get install firmware-iwlwifi


# modprobe -r iwlwifi ; modprobe iwlwifi

2) WIFI – Blinking alert light on laptop

# echo “echo \”options iwlwifi led_mode=1\” >> /etc/modprobe.d/iwlwifi.conf” | sudo bash

3) screensaver – I had to install xscreensaver.

4) disabled suspend in Advanced settings for laptop lid

5) uninstall Gnash flash and installed Adobe flash. The other flash sucks.

Thats about it! All is good in da hood.

FreeBSD 10.1 on HP EliteBook 8440p

March 2, 2015

I did a simple setup for FreeBSD on this laptop. I’ve not gotten around to playing with ACPI events such as battery and lid closing. This laptop is purely for BSD Certification testing and playing around with the other BSD’s.

What I can tell you is that everything worked straight from the install with a few addition/tweaks.

Install – You’ll need the UEFI boot images. Even if UEFI is disabled in the bios, it still will not work. Also set the hard drive settings to IDE instead of AHCI.
Wifi – Intel N600 chipset. Just follow the Wireless document in the handbook. Fully supported.
Xorg – NVIDIA drivers. You’ll need to install NVIDIA-drivers-340 and NVIDID-xconfig.

Thats all I have so far because thats all I really need on it for the time being.

OpenBSD 5.6 and VirtualBox

March 2, 2015

So apparently OpenBSD on Virtualbox needs VT enabled in the BIOS or you can’t install it. If you keep getting an error or you can’t press “I” during setup to initial the install, this is why. Go into your BIOS and enable Virtual Technology.

PF Sense & Netgate APU board

December 22, 2014

This guy has a good tutorial…  click here


Download the latest embedded image from PF Sense.  You’ll want the 64bit option.

You’ll need to write the image to your SD card.  Depends on your OS.

Windows – download WriteDiskImage

Mac – $ sudo gzcat pfsense-XXX.img.gz | dd of=/dev/disk[n] bs=16k        (unmount the disk, unmountDisk /dev/diskN)

The default serial speed on the board is 115200 but you can set you terminal to 9600.  You’ll see gibberish.  Set your terminal you are using.

FreeBSD – cu -l /dev/cuau0 -s 9600 -t     ( to exit type:   ~. )

Linux – use minicom

Plug in your serial cable and power cable.  Lets do this.

When you see a message about ‘Booting [/boot/kernel/kernel]’ press CTRL-C until it drops to an ‘OK’ prompt.

Type:  set

Type:  boot

Assign your interfaces.  I suggest you do auto config.

Log in to the webgui and go to Diagnostics menu –> edit file.

Click the browse button.  Click on the /boot folder.   Click the /default folder.  Click the loader.conf.   Click load at the type.

Add this line:”10000″

Save it.

Now go System –>  Advanced.    Down near the bottom.  Change your console speed to 115200.  Click save down at the bottom.



iPhone 6 picture issue in message

September 20, 2014

First day I got my iPhone 6, everything went well with the activation.  Started using it and realized that anyone that iMessaged me with a picture, I couldn’t see it.  I would get a square box with “Downloading” but it would never download.  And if you reboot your phone, then the square box just has a question mark “?” in it.

What was odd was on my Mac Book, in Messages, I could see the pictures, just not on my phone.

Issue:  Cant view pictures sent to you thru iMessages from other iPhone users

Solution:  If you are using another Mac device with iMessages, you have to disable them all (sign out).  Then on your iPhone, go to Settings > Messages.  Turn Message “off”.   Wait 5 seconds, turn back “on” and below under Send & Receive, remove any other emails or numbers for Messaging other than your primary number.  So you should just have one under that section.
Now you should be able to get pictures.  If so, now you can re-enable Messages on all your other devices.

CentOS 6.5 as a gateway

August 25, 2014

Here is my setup.   I have a Cisco lab in my garage.  I have a PC in my garage.  The PC connects to my WiFi via a 7811 Edimax USB adaptor.  I want my PC to act as a Gateway so I can access the Internet on my Cisco lab.    (btw, I live on the second floor of an apartment and my garage is located below at an angle.)

I know what you are thinking…”Why dont you get a WRT wireless router and make a bridge?”  Been there done that plus I dont need to go out and spend $30 or $50…I have everything I need, plus its fun to geek.  So lets get to it.

<—-Internet—->wlan0 —PC—eth0—switch—lab or another PC


wlan0 – Internet (
eth0 – LAN  (

First thing… turn off Network Manager
# service NetworkManager stop

Download a DHCP server (unless you want to use static IP’s)
yum -y install dhcp

Let’s edit our wpa_supplicant files
nano /etc/sysconfig/wpa_supplicant
add your interface name:

INTERFACES=”-iwlan0″     <–make sure to put the “-i” in front.

nano /etc/wpa_supplicant/wpa_supplicant.conf  (this will depend on your WiFi router setup, below is mine)

ssid=”WIFI-NAME”       <—- change yours to your SSID
psk=”WIFI KEY”             <—change yours to your key

Now open lets edit the wlan0 config file a bit (below is mine)
nano /etc/sysconfig/network-scripts/ifcfg-wlan0

ESSID=”NETWORK-NAME”   <—- change yours to your SSID

Now lets give eth0 an IP address for that subnet
nano /etc/sysconfig/network-scripts/ifcfg-eth0

IPADDR=    <— change yours to whatever
GATEWAY=   <—-change yours to your WLAN0 or ETH device
DNS1=   <—- change yours to your DNS server preference

Next lets add a line into IPTABLES to setup NAT’ing…
# iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE    <—- change wlan0 to whatever interface will do the NAT’ing outside.

Lets make sure wpa_supplicant is set to start up
# chkconfig wpa_supplicant on
# chkconfig network on
# chkconfig NetworkManager off

# service wpa_supplicant start
# service network restart

So now you should be set.  Plug in a device with a static IP on a switch in your new LAN.  Ping google or some shit.

Want DHCP server running on the inside interface (eth0)?  Easy…

Edit this dhcp file
# nano /etc/sysconfig/dhcpd

DHCPDARGS=eth0  <—– specify your inside interface

#nano /etc/dhcp/dhcpd.conf
Add the following lines:

option domain-name “”;                             <—- change to your liking
option domain-name-servers,;   <—- change to your liking

default-lease-time 600;
max-lease-time 7200;


subnet netmask {                   <— change to your local network setup
option routers;

Save that shit.
Now lets start DHCP server up like a boss!

# chkconfig dhcpd on
# service dhcpd start

Lets test this….plug in a PC to your new LAN switch on the inside (eth0 in this case).
run this command
#tail -f /var/log/messages

You should see DHCP request come in.  If you do, you do man.  If not, you did something wrong fool.

Use the command “iwlist wlan0 scan” to find wireless access points around you and see their encryption type.
You have issues, check the logs…/var/log/messages
You can set it up to do DHCP relay using the file /etc/sysconfig/dhcrelay file.  Then just start the dhcrelay service.  But you need a DHCP server somewhere in your network.


Get every new post delivered to your Inbox.