Connecting a switch to a Nexus 2000
The other day I tried to connect a test 3750 switch to a Nexus 2000 switch. I picked the 2000 switch since it was in the same cabinet. Once I connected the cable, the port on the 2000, went into shutdown mode with: BPDUGuard errDisable. I tried disabling bpdufiltering, but that didn’t work.
ERROR: Command not supported on FEX interfaces. BPDUGuard is enabled by default for FEX interface
Cisco Nexus and vrf for vPC keepalives
More musings with the Cisco Nexus 7000 core configuration. I noticed we had commands referencing vrf. Haven’t really worked with vrf before…
Core 1
interface port-channel500
description VCP Keepalive
vrf member vpc-keepalive
ip address 172.31.255.253/30
Core 2
interface port-channel500
description VCP Keepalive
vrf member vpc-keepalive
ip address 172.31.255.254/30
——————————————
Core 1
vpc domain 1
role priority 8192
peer-keepalive destination 172.31.255.254 source 172.31.255.253 vrf vpc-keepalive
peer-gateway
Core 2
vpc domain 1
role priority 16384
peer-keepalive destination 172.31.255.253 source 172.31.255.254 vrf vpc-keepalive
peer-gateway
——————————————-
On Core 1
interface Ethernet6/40
description Connect to Core 2 VPC-KEEPALIVE
channel-group 500
no shutdown
interface Ethernet6/41
description COnnection to Core 2 VPC-KEEPALIVE
channel-group 500
no shutdown
———————————————
You could have created a VLAN that carried the VPC keepalive messages but if that VLAN is apart of the vPC peer-link, then you could be shooting yourself in the foot. You can be in a situation where the vPC goes down and can never be restored. In our config, we are using two interfaces in a port-channel to carry the keep a live messages.
Cisco ASA how to use capin
http://www.cisco.com/en/US/products/ps6120/products_tech_note09186a0080a9edd6.shtml
access-list TEMPcapin extended permit ip host 172.16.1.2 host 10.20.10.2
access-list TEMPcapout extended permit ip host 172.16.1.2 host 10.20.10.2
access-list TEMPcapout extended permit ip host 10.20.10.2 host 172.16.1.2
capture capin interface inside access-list TEMPcapin
capture capout interface outside access-list TEMPcapout
sh capture capin
sh capture capout
Cisco H-REAP Wireless Config
Hybrid Remote Edge Access Point (H-REAP)
Enable Portfast with SOHO switches
I have a 2960G 48 port with portfast enabled.
I have a D-Link SoHo 5 port switch connected to BOTH 0/43 and 0/44 on the 2960G switch.
STP is blocking 0/44 and forwarding 0/43 (this is good)
If you unplug 0/43 (the forwarding port), you will see 0/44 go through the Listening > Learning > Forwarding STP states. After going through all the states, the port will become active and go into the forwarding state.
–
TEST-2960G-SW#sh spanning-tree detail
VLAN0104 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, sysid 104, address 001b.5446.5500
Configured hello time 2, max age 20, forward delay 15
We are the root of the spanning tree
Topology change flag not set, detected flag not set
Number of topology changes 1 last change occurred 00:04:43 ago
from GigabitEthernet0/44
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 1, topology change 0, notification 0, aging 300
Port 43 (GigabitEthernet0/43) of VLAN0104 is forwarding
Port path cost 4, Port priority 128, Port Identifier 128.43.
Designated root has priority 32872, address 001b.5446.5500
Designated bridge has priority 32872, address 001b.5446.5500
Designated port id is 128.43, designated path cost 0
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 152, received 1
Port 44 (GigabitEthernet0/44) of VLAN0104 is blocking
Port path cost 4, Port priority 128, Port Identifier 128.44.
Designated root has priority 32872, address 001b.5446.5500
Designated bridge has priority 32872, address 001b.5446.5500
Designated port id is 128.43, designated path cost 0
Timers: message age 2, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 1, received 143
–
This is what happens when I connect both 0/43 and 0/44 (0/43 is in the forwarding state)
If only one port, 0/43 is connected, I do not get BPDU packets(?)
*Mar 1 01:49:59.418 UTC: %SYS-5-CONFIG_I: Configured from console by console
*Mar 1 01:50:06.666 UTC: STP: VLAN0104 rx BPDU: config protocol = ieee, packet from GigabitEthernet0/44 , linktype IEEE_SPANNING , enctype 2, encsize 17
*Mar 1 01:50:06.666 UTC: STP: enc 01 80 C2 00 00 00 00 1B 54 46 55 2B 00 26 42 42 03
*Mar 1 01:50:06.666 UTC: STP: Data 00000000008068001B54465500000000008068001B54465500802B0000140002000F00
*Mar 1 01:50:06.666 UTC: STP: VLAN0104 Gi0/44:0000 00 00 00 8068001B54465500 00000000 8068001B54465500 802B 0000 1400 0200 0F00
*Mar 1 01:50:06.666 UTC: STP(104) port Gi0/44 supersedes -1
*Mar 1 01:50:06.666 UTC: STP: VLAN0104 rx BPDU: config protocol = ieee, packet from GigabitEthernet0/43 , linktype IEEE_SPANNING , enctype 2, encsize 17
*Mar 1 01:50:06.666 UTC: STP: enc 01 80 C2 00 00 00 00 1B 54 46 55 2C 00 26 42 42 03
*Mar 1 01:50:06.666 UTC: STP: Data 00000000008068001B54465500000000008068001B54465500802C0000140002000F00
*Mar 1 01:50:06.666 UTC: STP: VLAN0104 Gi0/43:0000 00 00 00 8068001B54465500 00000000 8068001B54465500 802C 0000 1400 0200 0F00
*Mar 1 01:50:06.674 UTC: STP(104) port Gi0/43 supersedes 1
*Mar 1 01:50:06.909 UTC: %LINK-3-UPDOWN: Interface GigabitEthernet0/44, changed state to up
*Mar 1 01:50:07.672 UTC: STP: VLAN0104 Gi0/43 tx BPDU: config protocol=ieee
Cisco Nexus Basic Config
Here are some basic configs for the Cisco Nexus platform. I just started managing Nexus switches and immediately I realized how quickly these switches can scale. You can have just a huge huge data center with tons of 10GB connectivity with basically the same core configs.
vpc domain 1
role priority 8192
peer-keepalive destination 172.31.1.254 source 172.31.1.253 vrf vpc-keepalive
peer-gatewayinterface port-channel1001
switchport
switchport mode trunk
vpc peer-link
spanning-tree port type networkinterface Ethernet1/1
switchport
switchport mode trunk
channel-group 1001 mode active
no shutdowninterface Ethernet1/2
switchport
switchport mode trunk
channel-group 1001 mode active
no shutdown
int port-channel 20vpc 20
fex 30
pinning max-links 1
description “N2K”interface port-channel30
switchport mode fex-fabric
vpc 30
fex associate 30interface Ethernet1/4
fex associate 30
switchport mode fex-fabric
channel-group 30
In port-channel 30, noticed the commands related to the FEX command.
interface Ethernet30/1/1
interface Ethernet30/1/2
interface Ethernet30/1/3
Cisco TACACS example config
aaa new-model
!
!
aaa authentication login vty group tacacs+ local-case
list of logins, for VTY use tacacs+, then the local (case sensitive user database)
aaa authorization exec vty group tacacs+ local
For executing commands (start a shell), for VTY use tacacs+, then the local user database)
aaa accounting exec vty start-stop group tacacs+
aaa accounting commands 0 vty start-stop group tacacs+
aaa accounting commands 1 vty start-stop group tacacs+
aaa accounting commands 15 vty start-stop group tacacs+
Record when executing commands (start a shell), for VTY use tacacs+. Recording start-stop without waiting (not sure what this is)
aaa session-id common
AAA common session-id (not sure what this means)
tacacs-server host 10.3.3.51 timeout 5
tacacs-server host 10.3.3.52
tacacs-server directed-request
tacacs-server key 7 removed
line con 0
stopbits 1
line vty 0 4
password 7
authorization exec vty
accounting commands 0 vty
accounting commands 1 vty
accounting commands 15 vty
accounting exec vty
login authentication vty
transport input ssh
line vty 5 15
password 7
authorization exec vty
accounting commands 0 vty
accounting commands 1 vty
accounting commands 15 vty
accounting exec vty
login authentication vty
transport input ssh