Standard Upgrades and Downgrades
Standard software upgrades and downgrades on Arista switches are accomplished by installing a different EOS image and reloading the switch. On switches with redundant supervisors, you must install the EOS image on both supervisors. Using the following procedures will minimize packet loss during a standard upgrade or downgrade.
Upgrading or Downgrading the EOS on a Single-Supervisor Switch
- Prepare the switch for upgrade (Prepare the Switch for SSU).
- Transfer the image file to the switch (Transfer the Image File). (This is not required if the desired file is on the switch).
- Modify the boot-config file to point to the desired image file (Modify boot-config for Single-Supervisor Switch).
- Reload the switch (Reload).
- Verify the switch is running the new image (Verify the New Image for Single-Supervisor Switch).
Preparing the Switch for SSU
Backing Up Critical Software
switch# copy running-config flash:/cfg_06162014
Copy completed successfully.
switch#Making Room on the Flash Drive
switch# dir flash:
Directory of flash:/
-rwx 293168526 Nov 4 22:17 EOS4.11.0.swi
-rwx 36 Nov 8 10:24 boot-config
-rwx 37339 Jun 16 14:18 cfg_06162014
606638080 bytes total (602841088 bytes free)Verifying Connectivity
switch# show interfaces status
Port Name Status Vlan Duplex Speed Type
Et3/1 notconnect 1 auto auto 1000BASE-T
<-------OUTPUT OMITTED FROM EXAMPLE-------->
Ma1/1 connected routed unconf unconf Unknown
switch# ping 1.1.1.10
PING 172.22.26.1 (172.22.26.1) 72(100) bytes of data.
80 bytes from 1.1.1.10: icmp_seq=1 ttl=64 time=0.180 ms
80 bytes from 1.1.1.10: icmp_seq=2 ttl=64 time=0.076 ms
80 bytes from 1.1.1.10: icmp_seq=3 ttl=64 time=0.084 ms
80 bytes from 1.1.1.10: icmp_seq=4 ttl=64 time=0.073 ms
80 bytes from 1.1.1.10: icmp_seq=5 ttl=64 time=0.071 msVerifying Configuration
switch# show reload fast-boot
switch#'reload fast-boot' cannot proceed due to the following:
Spanning-tree portfast is not enabled for one or more ports
Spanning-tree BPDU guard is not enabled for one or more ports
switch#Configuring BGP
For hitless restart of BGP and MP-BGP, BGP graceful restart must first be enabled using the graceful-restart command. The default restart time value (300 seconds) is appropriate for most configurations.
The BGP configuration mode issuing the graceful-restart command determines which BGP connections will restart gracefully.
switch# config
switch(config)# router bgp 64496
switch(config-router-bgp)# graceful-restart
switch(config-router-bgp)#switch# config
switch(config)# router bgp 64496
switch(config-router-bgp)# vrf purple
switch(config-router-bgp-vrf-purple)# graceful-restart
switch(config-router-bgp-vrf-purple)# exit
switch(config-router-bgp)#switch# config
switch(config)# router bgp 64496
switch(config-router-bgp)# address-family ipv6
switch(config-router-bgp-af)# graceful-restart
switch(config-router-bgp-af)# exit
switch(config-router-bgp)#Configuring MLAG
switch(config)# mlag
switch(config-mlag)# reload-delay 0If performing the upgrade on the primary MLAG switch, the switch first transitions to the secondary MLAG switch and becomes the primary switch.
All MLAG port channel interfaces with STP enabled shutdown locally on the MLAG peer undergoing the upgrade.
Transfer the Image File
The target image must be copied to the file system on the switch, typically onto the flash drive. After verifying that there is space for the image, use the CLI copy command to copy the image to the flash drive, then confirm that the system transferred the new image file correctly.
The following command examples illustrate transferring an image file from various locations to the flash drive.
USB Memory
Command
copy usb1:/sourcefile
flash:/destfile
switch# copy usb1:/EOS-4.13.2.swi flash:/EOS-4.13.2.swiFTP Server
Command
copy
ftp:/ftp-source/sourcefile
flash:/destfile
switch# copy ftp:/user:password@10.0.0.3/EOS-4.13.2.swi flash:/EOS-4.13.2.swiSCP
Command
copy
scp://scp-source/sourcefile
flash:/destfile
switch# copy scp://user@10.1.1.8/user/EOS-4.13.2.swi flash:/EOS-4.13.2.swiHTTP
Command
copy
http://http-source/sourcefile
flash:/destfile
switch# copy http://10.0.0.10/EOS-4.13.2.swi flash:/EOS-4.13.2.swiswitch# dir flash:
Directory of flash:/
-rwx 293168526 Nov 4 22:17 EOS4.11.0.swi
-rwx 36 Nov 8 10:24 boot-config
-rwx 37339 Jun 16 14:18 cfg_06162014
-rwx 394559902 May 30 02:57 EOS-4.12.2.swi
606638080 bytes total (208281186 bytes free)
switch#53# verify /md5 flash:EOS-4.13.2.swi
verify /md5 (flash:EOS-4.13.2.swi) =c277a965d0ed48534de6647b12a86991 Modify boot-config for Single-Supervisor Switch
After transferring and confirming the desired image file, use the boot system command to update the boot-config file to point to the new EOS image.
switch# configure terminal
switch(config)# boot system flash:/EOS-4.13.2.swiswitch(config)# show boot-config
Software image: flash:/EOS-4.13.2.swi
Console speed: (not set)
Aboot password (encrypted): $1$ap1QMbmz$DTqsFYeauuMSa7/Qxbi2l1switch# writeReload
After updating the boot-config file, reset the switch to activate the new image. The reload command resets the switch, resulting in temporary downtime and packet loss on single supervisor switches.
switch# reload
The system is going down for reboot NOW!Verify the New Image for Single-Supervisor Switch
switch# show version
Arista DCS-7150S-64-CL-F
Hardware version: 01.01
Serial number: JPE13120819
System MAC address: 001c.7326.fd0c
Software image version: 4.13.2F
Architecture: i386
Internal build version: 4.13.2F-1649184.4132F.2
Internal build ID: eeb3c212-b4bd-4c19-ba34-1b0aa36e43f1
Uptime: 14 hours and 48 minutes
Total memory: 4017088 kB
Free memory: 1569760 kBUpgrading or Downgrading the EOS on a Dual-Supervisor Switch
- Prepare the switch for upgrade (Prepare the Switch for Dual-Supervisor Switch).
- Transfer the image file to the primary supervisor (Transfer the Image File to the Primary Supervisor). (This is not required if the desired file is on the switch).
- Use the install command to install the new EOS image and update boot-config ( Install the New EOS Image).
- Verify the switch is running the new image ( Verify the New Image).Note: Due to a change in the supervisor heartbeat timeout, booting one supervisor with a post-SSO image (version 4.10.0-SSO, 4.11.X and later) while the other supervisor is running a pre-SSO image will cause the supervisor running the pre-SSO image to reload. This causes a disruption as both supervisors are inactive for a short time. To minimize downtime, upgrade the images on both supervisors and reload the entire chassis using the install command.
Prepare the Switch for Dual-Supervisor Switch
To prepare the switch for an EOS upgrade, take the following steps:
- Back up all essential files.
- Address and ensure the following:
- Logged into the primary supervisor.
- Confirm that the primary supervisor is reachable and that the management interfaces are configured.
- Enough room on both supervisors for the new image file.
- Any extensions running on the active supervisor also available on the standby.
switch# copy running-config backup2
Copy completed successfully.
switch#switch# show redundancy status
my status = Active
peer state = STANDBY HOT
Unit = Secondary
Unit ID = 1
Redundancy Protocol (Operational) = Stateful Switchover
Redundancy Protocol (Configured) = Stateful Switchover
Communications = Up
Ready for switchover
Last switchover time = 25 days, 19:51:34 ago
Last switchover reason = Other supervisor stopped sending heartbeatsswitch# show interfaces status
Port Name Status Vlan Duplex Speed Type
Et3/1 notconnect 1 auto auto 1000BASE-T
<-------OUTPUT OMITTED FROM EXAMPLE-------->
Ma1/1 connected routed unconf unconf Unknown
switch# ping 1.1.1.10
PING 172.22.26.1 (172.22.26.1) 72(100) bytes of data.
80 bytes from 1.1.1.10: icmp_seq=1 ttl=64 time=0.180 ms
80 bytes from 1.1.1.10: icmp_seq=2 ttl=64 time=0.076 ms
80 bytes from 1.1.1.10: icmp_seq=3 ttl=64 time=0.084 ms
80 bytes from 1.1.1.10: icmp_seq=4 ttl=64 time=0.073 ms
80 bytes from 1.1.1.10: icmp_seq=5 ttl=64 time=0.071 msswitch# dir flash:
Directory of flash:/
-rwx 293168526 Nov 4 22:17 EOS4.11.0.swi
-rwx 36 Nov 8 10:24 boot-config
-rwx 37339 Jun 16 14:18 cfg_06162014
<-------OUTPUT OMITTED FROM EXAMPLE-------->
606638080 bytes total (602841088 bytes free)
Standby supervisor:
switch# dir supervisor-peer:mnt/flash/
Directory of flash:/
-rwx 293168526 Nov 4 22:17 EOS4.11.0.swi
-rwx 36 Nov 8 10:24 boot-config
-rwx 37339 Jun 16 14:18 cfg_06162014
<-------OUTPUT OMITTED FROM EXAMPLE-------->
606638080 bytes total (602841088 bytes free)Finally, ensure that any extensions running on the primary supervisor are also available on the secondary supervisor.
Transfer the Image File to the Primary Supervisor
Load the desired image to the file system on the primary supervisor, typically into the flash. Use the CLI copy command to load files to the flash on the primary supervisor, then confirm that the system transferred the new image file correctly.
The following command examples illustrate transferring an image file from various locations to the flash drive.
USB Memory
Command
copy usb1:/sourcefile
flash:/destfile
switch# copy usb1:/EOS-4.13.2.swi flash:/EOS-4.13.2.swiFTP Server
Command
copy
ftp:/ftp-source/sourcefile
flash:/destfile
switch# copy ftp:/user:password@10.0.0.3/EOS-4.13.2.swi flash:/EOS-4.13.2.swiSCP
Command
copy
scp://scp-source/sourcefile
flash:/destfile
switch# copy scp://user@10.1.1.8/user/EOS-4.13.2.swi flash:/EOS-4.13.2.swiHTTP
Command
copy
http://http-source/sourcefile
flash:/destfile
switch# copy http://10.0.0.10/EOS-4.13.2.swi flash:/EOS-4.13.2.swiswitch# dir flash:
Directory of flash:/
-rwx 293168526 Nov 4 22:17 EOS4.11.0.swi
-rwx 36 Nov 8 10:24 boot-config
-rwx 37339 Jun 16 14:18 cfg_06162014
-rwx 394559902 May 30 02:57 EOS-4.12.2.swi
<-------OUTPUT OMITTED FROM EXAMPLE-------->
606638080 bytes total (208281186 bytes free)
switch#53# verify /md5 flash:EOS-4.13.2.swi
verify /md5 (flash:EOS-4.13.2.swi) =c277a965d0ed48534de6647b12a86991Install the New EOS Image
switch(config)# install source EOS-4.13.2.swi reload
Preparing new boot-config... done.
Copying new software image to standby supervisor... done.
Copying new boot-config to standby supervisor... done.
Committing changes on standby supervisor... done.
Reloading standby supervisor... done.
Committing changes on this supervisor... done.
Reloading this supervisor...Verify the New Image
switch# show version
Arista DCS-7504
Hardware version: 01.01
Serial number: JPE13120819
System MAC address: 001c.7326.fd0c
Software image version: 4.13.2F
Architecture: i386
Internal build version: 4.13.2F-1649184.4132F.2
Internal build ID: eeb3c212-b4bd-4c19-ba34-1b0aa36e43f1
Uptime: 1 hour and 36 minutes
Total memory: 4017088 kB
Free memory: 1473280 kB
switch#