ARISTA || Initial Switch Configuration
-
Assigning an IP Address to a Specific Ethernet Management Port
-
Connect a PC or terminal server to the console port. Use the settings listed in Console Port under Port Settings.
-
Type admin at the login prompt to log into the switch. The initial login does not require a password.
Arista EOS switch login:admin Last login: Fri Apr 9 14:22:18 on Console switch>
- Type enable at the command prompt to enter Privileged EXEC mode.
switch>enable switch#
- Type configure terminal (or config) to enter global configuration mode.
switch#configure terminal
- Type interface management 1 to enter interface configuration mode. (Any available management port can be used in place of management port 1.)
switch(config)#interface management 1 switch(config-if-Ma1)#
- Type ip address, followed by the desired address, to assign an IP address to the port. This command assigns the IP address 10.0.2.8 to management port 1.
switch(config-if-Ma1)#ip address 10.0.2.8/24
- Type exit at both the interface configuration and global configuration prompts to return to Privileged EXEC mode.
switch(config-if-Ma1)#exit switch(config)#exit switch#
- Type write (or copy running-config startup-config) to save the new configuration to the startup-config file.
switch# write switch#
Configuring a Default Route to the Gateway
- Enter global configuration mode.
switch>enable switch#configure terminal
- Create a static route to the gateway with the IP route command.
switch(config)#ip route 0.0.0.0/0 10.0.2.1
- Save the new configuration.
switch#write switch#
-