networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Nexus Port config
PostPosted: Wed Mar 28, 2012 8:33 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
I made an excel file that you put in a line
Description Vlan Port-Channel Port
and it makes the config for a nexus to get the port/port channel up and running.

For example
APACHE1 172 197 17
gets you

interface Ethernet116/1/17
description APACHE1
switchport access vlan 172
spanning-tree port-priority 128
spanning-tree port type edge
flowcontrol receive on
channel-group 197
no shut
interface port-channel197
description APACHE1
vpc 197
switchport access vlan 172
flowcontrol receive on
no shut


Anyone want it? (needs a little fiddling so you can specify the fex, I'll make the changes if anyone wants it.)

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Wed Mar 28, 2012 8:40 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Apr 07, 2008 10:38 am
Posts: 9439
Location: Orlando, FL
Certs: CCNP RS, CCNP DC, CCDP, CCIP
Why are you adding the vpc info directly to the port?

_________________
http://blog.alwaysthenetwork.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Wed Mar 28, 2012 8:42 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Apr 07, 2008 10:38 am
Posts: 9439
Location: Orlando, FL
Certs: CCNP RS, CCNP DC, CCDP, CCIP
Also, here's an idea of what I typically use:

Code:
=IF(Q5>0,CONCATENATE("interface ",Q5,CHAR(10),
" switchport",CHAR(10),
" switchport mode access",CHAR(10),
" switchport access vlan ",Q6,CHAR(10),


I'll line this up on my cells and just drag the whole page down. Or, better yet, give this to my customers up front so they can keep track of their ports and generate accurate config.

_________________
http://blog.alwaysthenetwork.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Wed Mar 28, 2012 8:46 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
Hmm yours looks much simpler than mine

That's what our ports look like when I do a sh run int Ethernet116/1/17

channel-group 197 on the physical port to tie it to the port channel, then it goes to the port-channel interface and builds it.

Is there a better way to do this?

interface Ethernet116/1/17
description APACHE1
switchport access vlan 172
spanning-tree port-priority 128
spanning-tree port type edge
flowcontrol receive on
channel-group 197
no shut


interface port-channel197
description APACHE1
vpc 197
switchport access vlan 172
flowcontrol receive on
no shut

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Wed Mar 28, 2012 8:48 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
I REALLY have to learn to code some day :-(

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Wed Mar 28, 2012 10:01 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Apr 07, 2008 10:38 am
Posts: 9439
Location: Orlando, FL
Certs: CCNP RS, CCNP DC, CCDP, CCIP
Mine isn't code, it's a simple(ish) Excel formula. Also, my above post was wrong. I didn't see any whitespace between the physical int and the po, so I thought it was the same config.

_________________
http://blog.alwaysthenetwork.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Thu Mar 29, 2012 7:49 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Mar 01, 2010 3:28 pm
Posts: 1112
Location: Houston, TX
Certs: MCSA, VCP4, CCNA, CCNA Security
I'd be interested in seeing the excel sheet, just to have an idea of what y'all are doing in excel. That is one app I wish I knew better but my use of it has always been very simple.


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Thu Mar 29, 2012 9:11 am 
Offline
Ultimate Member
Ultimate Member

Joined: Wed Sep 01, 2010 3:37 pm
Posts: 921
Location: Las Vegas, NV
Certs: Sec+, MCSE, MCITP:EA, CCNP
I used to do something similar. One of my old jobs we deployed switches on a regular basis (2 or 3 a week). We had an excel document that we tracked the management IP, hostname, serial number, and location of the switch. We then had a Word document that was setup for a mail merge with that excel file to pull the management IP and hostname. All you had to do was document the switch in the xls file. Open the word doc, do the mail merge, and copy and paste the entire config to the switch. We had one that was similar for our remote sites that had a router with GRE tunnel. Document all the IPs for the remote site in xls, merge with word doc. Copy and paste. Made it so anyone could deploy a site with very little help.

-Otanx


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Thu Mar 29, 2012 1:07 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
http://dhimes.com/Files/Auto%20Configur ... Ports.xlsx

I love mail-merge, when I 1st came to networking and I knew nothing all dorm the switches (~70) needed a new config, took a co-worker 2 weeks to build all the configs. A few months ago we needed new configs once again only I was the one building them... 2 hours latter I have all the configs done :-)

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Thu Mar 29, 2012 1:23 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Mar 01, 2010 3:28 pm
Posts: 1112
Location: Houston, TX
Certs: MCSA, VCP4, CCNA, CCNA Security
Cool, thanks!


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Thu Mar 29, 2012 1:25 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
No problem
As long as I am throwing around nifty excel files I'll throw in this one too.

http://dhimes.com/Files/Make%20%20reservations.xlsx

this one will give you the command line command to make a DHCP reservation for a windows DHCP server, not very useful for 1 or 2 reservations, but nice when you get requests for 80 reservations :-)

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Fri Mar 30, 2012 2:16 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Sat Dec 19, 2009 11:52 pm
Posts: 1197
Location: West FL
Certs: CCNP, JNCIA, MCSA
This is a lot more sophisticated than how I do it. I use the "&" to concatenate, which makes the formulas long and ugly. Then I use Notepad++ to find and replace new lines with the config.

Thanks!


Top
 Profile  
 
 Post subject: Re: Nexus Port config
PostPosted: Fri Mar 30, 2012 12:31 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
np
glad I could help

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group