User Tools

Site Tools


netzwerk:switches:cisco_nxos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
netzwerk:switches:cisco_nxos [2022/12/14 20:21] stonenetzwerk:switches:cisco_nxos [2023/04/03 14:20] (current) stone
Line 1: Line 1:
 ====== Cisco NXOS ====== ====== Cisco NXOS ======
  
 +===== Basic System Config =====
 +
 +==== Alias ====
 +<code>
 +cli alias name wr copy running-config startup-config
 +</code>
 +\\
 +
 +==== Hostname ====
 +
 +<code ->
 +hostname SuperGeilerSwitch
 +ip domain-name mylab.loc
 +no ip domain-lookup
 +</code>
 +\\
 +
 +==== Gateway ====
 +
 +Default Gateway. \\  Man kann natürlich auch einzelne Routen setzten
 +
 +<code ->
 +ip route 0.0.0.0/0 10.0.0.1
 +</code>
 +
 +\\
 +
 +==== Timezone & NTP ====
 +
 +<code ->
 +clock timezone CET 1 0
 +clock summer-time CEST 5 Sun Mar 02:00 5 Sun Oct 02:00 60
 +clock protocol ntp
 +ntp server x.x.x.x
 +
 +show clock
 +</code>
 +
 +\\  \\
 +
 +==== Banner MOTD ====
 +
 +<code ->
 +banner moth #
 +-------------------- !!! WARNING !!!  --------------------
 +
 +Any unauthorized access is logged and will be prosecuted.
 +If you are authorized for access enter your username and
 +password, OTHERWISE LEAVE NOW !
 +----------------------------------------------------------
 +#
 +</code>
 +\\
 +
 +==== SNMP ====
 +
 +<code>
 +snmp-server contact Maurice Moss - IT
 +snmp-server location Serveroom
 +snmp-server community public group network-operator
 +</code>
 +\\
 +
 +==== LLDP ====
 +
 +<code>
 +feature lldp
 +</code>
 +
 +
 +\\
  
 ===== vPC Link Config (MLAG) ===== ===== vPC Link Config (MLAG) =====
 +Beispiel eines Nexus **C93180YC-FX3** \\
 +Hier muss ein VPC Keepalive Link gesetzt werden. Dieser kann einfach 10G oder 25G sein. \\
 +Danach konfiguriert man den Peer Link über 2x 100G
 +\\
 +\\
 +==== VPC Keepalive ====
 +VPC Keepalive Link über 1x 10G oder 25G
 +\\
 +\\
 +
 +Auf beiden Switches
 <code> <code>
 feature vpc feature vpc
 +feature lacp
 +feature interface-vlan
 +feature vtp
 +</code>
 +\\
  
-vpc domain 10 +VPC Config auf Switch #1 
-peer-keepalive destination <remote-node-ip> source <local-node-ip+<code
-auto-recovery +vpc doamin 1 
-exit+show vpc role
  
 +vrf context vpc-keepalive
 +
 +interface Ethernet1/48
 +  description *** VPC-PEER-KEEPALIVE ***
 +  no switchport
 +  vrf member vpc-keepalive
 +  ip address 10.193.214.1/30
 +  no shutdown
 +</code>
 +\\
 +
 +
 +VPC Config auf Switch #2
 +<code>
 +vpc doamin 1
 +show vpc role
 +
 +vrf context vpc-keepalive
 +
 +interface Ethernet1/48
 +  description *** VPC-PEER-KEEPALIVE ***
 +  no switchport
 +  vrf member vpc-keepalive
 +  ip address 10.193.214.2/30
 +  no shutdown
 +</code>
 +\\
 +
 +Test ob sich die Switches erreichen können\\
 +Ping von Switch #2 auf #1
 +<code>
 +ping 10.193.214.1 vrf vpc-keepalive
 +</code>
 +\\
 +
 +Auf Switch #1
 +<code>
 +vpc domain 1
 +peer-keepalive destination 10.193.214.2 source 10.193.214.1 vrf vpc-keepalive
 +</code>
 +\\
 +
 +Auf Switch #2
 +<code>
 +vpc domain 1
 +peer-keepalive destination 10.193.214.1 source 10.193.214.2 vrf vpc-keepalive
 +</code>
 +\\
 +
 +Kontrolle auf beiden Switches
 +<code>
 +show vpc peer-keepalive
 +show vpc
 +</code>
 +\\
 +\\
 +
 +
 +==== VPC Peer Link ====
 +Kann eingerichtet werden wenn der VPC Keepalive Link steht. \\
 +VPC Peer Link über 2x 100G.\\
 +\\
 +Auf beiden Nodes
 +<code>
 int po10 int po10
 description *** vPC PEER LINK *** description *** vPC PEER LINK ***
Line 16: Line 167:
 spanning-tree port type network spanning-tree port type network
 vpc peer-link vpc peer-link
-exit 
  
-int eth1/49 +interface eth1/53-54 
-description *** PEER LINK *** +description *** vPC PEER-LINK Interface ***
-switchport +
-switchport mode trunk +
-channel-group 10 mode active +
-no shutdown +
-exit +
- +
-int eth1/50 +
-description *** PEER LINK ***+
 switchport switchport
 switchport mode trunk switchport mode trunk
Line 33: Line 175:
 no shutdown no shutdown
 </code> </code>
 +\\
 +Kontrolle auf beiden Switches
 +<code>
 +show vpc peer-keepalive
 +show vpc
 +</code>
 +\\
 +\\
 +
 +
 +
 +
 +
netzwerk/switches/cisco_nxos.1671049264.txt.gz · Last modified: by stone