Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Cisco CDP phones working on EX ELS switches

$
0
0

Hello.

Just posting how we got around the legacy 7960/7940 CDP required issues . 

First we did a tcpdump capture from one of the cisco switches that sends info to the legacy phone.. 

 

Using a linux box(es) we replay the packet back via tcpreplay from the linux box clicked into the Juniper EX poe platforms.

This is just how i did this..  As you can guess there are a few other ways to do this... Hope this helps someone in need.. 

**PS .. i got this idead after reading the older  JUNOS Enterprise Switching book as they spoke about sending CDP to company C gear.. 

I use Fedora / Centos / Rhel  but Deb and Freebsd have tcpreplay in their repos.  And note tcpreplay is CPU intensive on my little system76 nuc boxes when im spraying this over 8 vlans at some of my sites when im doing a Juniper install.

 

Here is what is in my rc.local

 

#######used for cisco to juniper migrations

## load  the dot1q mod so we can do vlans 
/usr/sbin/modprobe 8021q
## for completeness doing it with ip link aka iproute2 tools
ip link add name eno1.2 link eno1 type vlan id 2
ip link add name eno1.3 link eno1 type vlan id 3
#ip link add name eno1.4 link eno1 type vlan id 4
ip link add name eno1.5 link eno1 type vlan id 5
ip link add name eno1.6 link eno1 type vlan id 6
etc>>etc

 

## since we dont need to l3 we can just bring up the interfaces and pump cdp out of those interfaces.
ip link set eno1.2 up
ip link set eno1.3 up
ip link set eno1.4 up
ip link set eno1.5 up
ip link set eno1.6 up
etc>>etch
#ip link set eno1.99 up

## Now we do the replay work.

## load tcpreplay and use screen so we can attach to the output window to see if its running or not.

tcpreplay --pps=1 --loop=0 -i eno1.1 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &
tcpreplay --pps=1 --loop=0 -i eno1.2 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &
tcpreplay --pps=1 --loop=0 -i eno1.3 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &
tcpreplay --pps=1 --loop=0 -i eno1.4 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &
tcpreplay --pps=1 --loop=0 -i eno1.5 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &
tcpreplay --pps=1 --loop=0 -i eno1.6 /home/tom.greaser/cisco-switch-telling-voice-data-vlan-via-cdp-packet.pcap &

 

Thats it.. YOUR FREE..!!!   

If anyone needs help with this just reply back.. Im a busy Husband,Dad,IT Guy,Welder,Car Guy, so please be patient.

**ps i made a cron minute to check the status to make sure tcpreplay is still running and if not restart it .  but thats outside this post 


Viewing all articles
Browse latest Browse all 10307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>