Posted by: manilageek | June 3, 2013

Intro to Cisco NX-OS

1.        No more hierarchical command, command can be issued anywhere.

2.        Create user roles and apply it to user accounts.

  • Show role
  • Show role feature
  • Show role feature-group
  • Creating a role
    • Conf t
    • Role name nxos
      • Rule 1 permit read
      • Rule 2 permit read-write feature cdp
      • Rule 3 permit command ping *
      • Rule 4 permit command conf t ; interface *
      • Interface policy deny
      • Permit interface Ethernet 2/1
      • End
    • Username rbac password rbacnxos123 role nxos

3.          Configuration rollback by creating Checkpoint (up to 10 checkpoint per VC)

  • Roolback running-config checkpoint nxos
  • Creating the Checkpoint
    • Checkpoint nxos
      • Processing the Request… Please Wait…..Done
  • Show checkpoint summary
  • Show checkpoint nxos
  • To rollback to a checkpoint
    • Rollback running-config checkpoint nxos

4.        Config session for dry run change before commit the configuration

  • Creating a new session
    • Conf session nxos
      • Ip access-list nxos
      • Permit tcp 1.1.1.0/24 any
      • Permit tcp 2.2.2.0/24 any
      • Int e2/3
      • Ip access-group nxos in
      •  
    • Verify  – Verification successful
    • Commit
    • Abort
  • Show configuration session        

5.          OSPF configuration – OSPF process is now attached to the interface.

  • It is now interface centric
  • Interface loopback 0
    • Ip add 10.1.254.1/32
  • Router ospf 1                     ! command failed because OSPF is not yet enabled
  • feature ospf                       ! to enable OSPF
  • router ospf 1
    • area 0 authentication message-digest
    • auto-cost reference-bandwidth 1000000
  • feature lacp                        !enabling port channel
    • int port-channel  1
      • ip address 10.1.55.2/30
      • no shut
    • int e2/1, e2/4-5
      • no shut
      • channel-group 1 mode active
    • show port-channel summary
    • int port-channel 1
      • description To Nexus core
      • ip ospf message-digest-key 1 md5 cisco
      • ip ospf hello-interval 2
      • ip ospf dead-interval 6
      • ip ospf network point-to-point
      • ip router ospf 1 area 0
      • no shut
    • int e2/2
      • description To cat6500
      • ip address 10.1.40.1/24
      • ip ospf message-digest-key 1 md5 cisco
      • ip ospf heloo-interval 2
      • ip ospf dead-interval 6
      • ip ospf netork point-to-point
      • ip router ospf 1 area 0
      • no shut
    • sh ip ospf neighbors

6.          State full process restart – it continuously check its software module.

  • Load bootflash:dd.plgin
    • Kill 6255
    • exit
  • sh process | i ospf
  • the neighbours doesn’t even know that the process restarted  

7.          Netflow – scalability, tcp flag

  • Feature netflow
  • Flow  record nxos-rec
    • Match ipv4 destination address
    • Match ipv4 source address
    • Match ip protocol
    • Collect transport tcp flags
    • Collect routing forwarding-status
    •  
  • Flow exporter nxos-exp
    • Description To NetFlow Collector X
    • Destination 3.3.3.3
    • Source loopback 0
    • Transport udp port 12345
    • Version 9
  • Flow monitor nxos-mon
    • Record  nxos-rec
    • Export nxos-exp
  • Interface e2/2
    • Ip flow monitor nxos-mon input
  • Sh system internal flow ip module 2

8.          Wireshark – Only for control plane packets

  • Ethanalyzer local interface mgmt brief limit-capture-frames 5 write bootflash:cap1

9.          VDC – Virtual Device Context (support 4 VDC)

  • Show vdc
  • Show vdc membership
  • Creating new VDC
    • Vdc pod2
    • Allocate interface e2/30-40
    • Ha-policy dual-sup restart single-sup restart   !bringdown, restart, switchover
    • Limit-resources vrf minimum 16 maximum 20
    • Limit-resource vlan minimum 16 maximum 32
    • Limit-resource port-channel minimum 0 maximum 0
    • Show vdc pud2 detail
    • Show vdc pod2 membership
    • Show vdc pod2 resource
  • Log-in to the new VDC
    • Switchto vdc pod2

Link: http://www.youtube.com/watch?v=wfn2JTxk4VM

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Categories

%d bloggers like this: