Showing posts with label nexus. Show all posts
Showing posts with label nexus. Show all posts

Wednesday, 8 June 2022

cisco nexus 5k

Need to put the config in twice on 5k01 and 5k02

Don't forget you may need to add vlans to PortChannel vPC's on both sides too

Make sure to use the switchport trunk allowed vlan add command don't want to take out the port chan

*** add vlan 99 to the port channel

Create the vlan on both 5k01 and 5k02

interface port-channel10
switchport trunk allowed vlan add 99

Make same change on 5k01 and 5k02
This is because nexus are datacentre equipment



Tuesday, 28 February 2017

no wr command on cisco nexus

You have to use copy run start, or create this alias below

cli alias name wr copy run start

setup a new vlan interface on cisco nexus

You need to create your L2 VLAN first

vlan 80
name DB

Create the L3 VLAN interface

interface Vlan80
  description ## Layer 3 DB VLAN ##
  no shutdown
  no ip redirects
  ip address 172.100.0.250/24
  ip router eigrp 100
  no ip passive-interface eigrp 100
  hsrp 80
    authentication text SomePW
    preempt
    priority 120
    ip 172.100.0.254


Add the new VLAN to the trunk
Make sure to add it not replace or you'll take everything down

interface port-channel10
  description ### PortChannel vPC Peer-Link DO NOT CHANGE ##
  switchport mode trunk
  switchport trunk allowed vlan 1,10,52,60,70-71,80,172,2200
  spanning-tree port type network
  vpc peer-link

Assign the vlan to the ports
interface Ethernet101/1/33
  switchport access vlan 80
  spanning-tree port type edge

copy run start

GW on hosts should be 172.100.0.254

If you want to make a DMZ interface you don't create the L3 interface, just the L2 VLAN and assign the ports. Your default route should be out to the ASA.