netzwerk:switches:cisco_nxos
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| netzwerk:switches:cisco_nxos [2021/12/16 19:27] – created stone | netzwerk:switches:cisco_nxos [2023/04/03 14:20] (current) – stone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Cisco NXOS ====== | ====== Cisco NXOS ====== | ||
| + | |||
| + | ===== Basic System Config ===== | ||
| + | |||
| + | ==== Alias ==== | ||
| + | < | ||
| + | cli alias name wr copy running-config startup-config | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Hostname ==== | ||
| + | |||
| + | <code -> | ||
| + | hostname SuperGeilerSwitch | ||
| + | ip domain-name mylab.loc | ||
| + | no ip domain-lookup | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Gateway ==== | ||
| + | |||
| + | Default Gateway. \\ Man kann natürlich auch einzelne Routen setzten | ||
| + | |||
| + | <code -> | ||
| + | ip route 0.0.0.0/0 10.0.0.1 | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ==== 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 | ||
| + | </ | ||
| + | |||
| + | \\ \\ | ||
| + | |||
| + | ==== 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 ! | ||
| + | ---------------------------------------------------------- | ||
| + | # | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== SNMP ==== | ||
| + | |||
| + | < | ||
| + | snmp-server contact Maurice Moss - IT | ||
| + | snmp-server location Serveroom | ||
| + | snmp-server community public group network-operator | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== LLDP ==== | ||
| + | |||
| + | < | ||
| + | feature lldp | ||
| + | </ | ||
| + | |||
| + | |||
| + | \\ | ||
| + | |||
| + | ===== 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 | ||
| + | < | ||
| + | feature vpc | ||
| + | feature lacp | ||
| + | feature interface-vlan | ||
| + | feature vtp | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | VPC Config auf Switch #1 | ||
| + | < | ||
| + | vpc doamin 1 | ||
| + | show vpc role | ||
| + | |||
| + | vrf context vpc-keepalive | ||
| + | |||
| + | interface Ethernet1/ | ||
| + | description *** VPC-PEER-KEEPALIVE *** | ||
| + | no switchport | ||
| + | vrf member vpc-keepalive | ||
| + | ip address 10.193.214.1/ | ||
| + | no shutdown | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | VPC Config auf Switch #2 | ||
| + | < | ||
| + | vpc doamin 1 | ||
| + | show vpc role | ||
| + | |||
| + | vrf context vpc-keepalive | ||
| + | |||
| + | interface Ethernet1/ | ||
| + | description *** VPC-PEER-KEEPALIVE *** | ||
| + | no switchport | ||
| + | vrf member vpc-keepalive | ||
| + | ip address 10.193.214.2/ | ||
| + | no shutdown | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Test ob sich die Switches erreichen können\\ | ||
| + | Ping von Switch #2 auf #1 | ||
| + | < | ||
| + | ping 10.193.214.1 vrf vpc-keepalive | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Auf Switch #1 | ||
| + | < | ||
| + | vpc domain 1 | ||
| + | peer-keepalive destination 10.193.214.2 source 10.193.214.1 vrf vpc-keepalive | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Auf Switch #2 | ||
| + | < | ||
| + | vpc domain 1 | ||
| + | peer-keepalive destination 10.193.214.1 source 10.193.214.2 vrf vpc-keepalive | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Kontrolle auf beiden Switches | ||
| + | < | ||
| + | show vpc peer-keepalive | ||
| + | show vpc | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | ==== VPC Peer Link ==== | ||
| + | Kann eingerichtet werden wenn der VPC Keepalive Link steht. \\ | ||
| + | VPC Peer Link über 2x 100G.\\ | ||
| + | \\ | ||
| + | Auf beiden Nodes | ||
| + | < | ||
| + | int po10 | ||
| + | description *** vPC PEER LINK *** | ||
| + | switchport mode trunk | ||
| + | spanning-tree port type network | ||
| + | vpc peer-link | ||
| + | |||
| + | interface eth1/53-54 | ||
| + | description *** vPC PEER-LINK Interface *** | ||
| + | switchport | ||
| + | switchport mode trunk | ||
| + | channel-group 10 mode active | ||
| + | no shutdown | ||
| + | </ | ||
| + | \\ | ||
| + | Kontrolle auf beiden Switches | ||
| + | < | ||
| + | show vpc peer-keepalive | ||
| + | show vpc | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | |||
netzwerk/switches/cisco_nxos.1639682838.txt.gz · Last modified: by stone
