Nexus Switches... Common configs and changes
Wr Mem on a nexus switch
"Wr Mem" or simply "wr" is not supported, so create an alias for the command.
switch# wr
^
% Invalid command at '^' marker.
switch(config)# cli alias name wr copy run start
switch(config)# wr
[########################################] 100%
Copy complete.
Features on Nexus' are turned off by default. Common things like SVI's, LACP, vPC, HSRP, & Routing protocols
Turn them on by using the "feature" command, and use a ? mark to see what you might need to enable.
switch(config)# feature interface-vlan
switch(config)# feature hsrp
switch(config)# feature lacp
switch(config)# feature vpc
switch(config)# feature ?
(lines removed for brevity)
NXOS Software Upgrade
Simply copy the .bin over to bootlash: perform a compatibility check, and install the new image.
switch# copy ftp://WLC:[email protected]/nxos.7.0.3.I2.2b.bin bootflash:
switch# show install all impact nxos bootflash:nxos.7.0.3.I2.2b.bin
switch(config)# install all nxos bootflash:nxos.7.0.3.I2.2b.bin
It's recommended that you leave at least 1 of the previous images on the flash in case you run into issues with the new image not working properly.
NXOS Software Downgrade
Same as above, but before configuring the new bootstring, check for incompatibilities.
switch# sho incompatibility-all nxos bootflash:/nxos.7.0.3.I2.2b.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
No incompatible configurations
switch#
Configure Local Login Credentials
A little different format than IOS...
switch(config)# username brettlarkins role network-admin password THIS_IS_IT_123
Be careful not to use the role "Priv-15" as this will not be the most privileged role and will have some limitations.
Configure an interface to forward DHCP Broadcast packets
This is configured with the "ip-helper" command in IOS, but it is different in NXOS.
NEXUS_CORE_SW-1(config-if)# inter vlan 69
NEXUS_CORE_SW-1(config-if)# ip dhcp relay address 192.168.69.100
NEXUS_CORE_SW-1(config-if)# do sh run inter vlan 69
interface Vlan69
ip address 172.16.69.2/24
ip dhcp relay address 192.168.69.100
NEXUS_CORE_SW-1(config-if)#
"Wr Mem" or simply "wr" is not supported, so create an alias for the command.
switch# wr
^
% Invalid command at '^' marker.
switch(config)# cli alias name wr copy run start
switch(config)# wr
[########################################] 100%
Copy complete.
Features on Nexus' are turned off by default. Common things like SVI's, LACP, vPC, HSRP, & Routing protocols
Turn them on by using the "feature" command, and use a ? mark to see what you might need to enable.
switch(config)# feature interface-vlan
switch(config)# feature hsrp
switch(config)# feature lacp
switch(config)# feature vpc
switch(config)# feature ?
(lines removed for brevity)
NXOS Software Upgrade
Simply copy the .bin over to bootlash: perform a compatibility check, and install the new image.
switch# copy ftp://WLC:[email protected]/nxos.7.0.3.I2.2b.bin bootflash:
switch# show install all impact nxos bootflash:nxos.7.0.3.I2.2b.bin
switch(config)# install all nxos bootflash:nxos.7.0.3.I2.2b.bin
It's recommended that you leave at least 1 of the previous images on the flash in case you run into issues with the new image not working properly.
NXOS Software Downgrade
Same as above, but before configuring the new bootstring, check for incompatibilities.
switch# sho incompatibility-all nxos bootflash:/nxos.7.0.3.I2.2b.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
No incompatible configurations
switch#
Configure Local Login Credentials
A little different format than IOS...
switch(config)# username brettlarkins role network-admin password THIS_IS_IT_123
Be careful not to use the role "Priv-15" as this will not be the most privileged role and will have some limitations.
Configure an interface to forward DHCP Broadcast packets
This is configured with the "ip-helper" command in IOS, but it is different in NXOS.
NEXUS_CORE_SW-1(config-if)# inter vlan 69
NEXUS_CORE_SW-1(config-if)# ip dhcp relay address 192.168.69.100
NEXUS_CORE_SW-1(config-if)# do sh run inter vlan 69
interface Vlan69
ip address 172.16.69.2/24
ip dhcp relay address 192.168.69.100
NEXUS_CORE_SW-1(config-if)#