How to configure Arista switches » History » Version 9
Nico Schottelius, 07/10/2019 06:30 PM
| 1 | 1 | Nico Schottelius | h1. How to configure Arista switches |
|---|---|---|---|
| 2 | |||
| 3 | 3 | Nico Schottelius | {{toc}} |
| 4 | |||
| 5 | h2. Saving your changes |
||
| 6 | |||
| 7 | If you don't enter write at the end, everything is lost after reboot. |
||
| 8 | |||
| 9 | <pre> |
||
| 10 | write |
||
| 11 | </pre> |
||
| 12 | |||
| 13 | 1 | Nico Schottelius | h2. Entering conf mode |
| 14 | |||
| 15 | <pre> |
||
| 16 | enable |
||
| 17 | conf |
||
| 18 | </pre> |
||
| 19 | |||
| 20 | h2. Setting password |
||
| 21 | |||
| 22 | <pre> |
||
| 23 | username admin secret <passwordhere> |
||
| 24 | </pre> |
||
| 25 | |||
| 26 | h2. Setting name |
||
| 27 | |||
| 28 | <pre> |
||
| 29 | hostname <NAME> |
||
| 30 | </pre> |
||
| 31 | |||
| 32 | h2. Creating a VLAN |
||
| 33 | |||
| 34 | <pre> |
||
| 35 | vlan <ID-OF-VLAN> |
||
| 36 | name <NAME-OF-VLAN> |
||
| 37 | </pre> |
||
| 38 | |||
| 39 | 2 | Nico Schottelius | h2. Putting a port into a untagged vlan |
| 40 | 1 | Nico Schottelius | |
| 41 | 2 | Nico Schottelius | <pre> |
| 42 | interface EthernetXX |
||
| 43 | switchport access vlan YY |
||
| 44 | </pre> |
||
| 45 | |||
| 46 | 1 | Nico Schottelius | h2. Creating a port channel (= LACP = bonding) |
| 47 | 2 | Nico Schottelius | |
| 48 | * go to the interface that you want to be in the port-channel |
||
| 49 | * configure it |
||
| 50 | |||
| 51 | <pre> |
||
| 52 | interface EthernetXX |
||
| 53 | channel-group XX mode active |
||
| 54 | </pre> |
||
| 55 | 4 | Nico Schottelius | |
| 56 | h2. Upgrading a switch |
||
| 57 | |||
| 58 | * copy the image from usb to flash |
||
| 59 | 1 | Nico Schottelius | * change the boot config |
| 60 | 5 | Nico Schottelius | * don't forget to write |
| 61 | 4 | Nico Schottelius | * reload |
| 62 | |||
| 63 | <pre> |
||
| 64 | copy usb1:/EOS-4.14.4.swi flash:/EOS-4.14.4.swi |
||
| 65 | configure terminal |
||
| 66 | boot system flash:/EOS-4.14.4.swi |
||
| 67 | show boot-config |
||
| 68 | write |
||
| 69 | reload |
||
| 70 | </pre> |
||
| 71 | 6 | Nico Schottelius | |
| 72 | h2. Configuring MLAG |
||
| 73 | |||
| 74 | * Create a port channel for communication |
||
| 75 | * Configure the mlag over it |
||
| 76 | 7 | Nico Schottelius | * Assuming the switches are connected by ethernet 47 and ethernet 48 |
| 77 | * Assuming that the switches use vlan 13 |
||
| 78 | * ZZ = ip suffix of the switch |
||
| 79 | * WW = ip suffix of the other switch |
||
| 80 | * mlagdomain = something local |
||
| 81 | 6 | Nico Schottelius | |
| 82 | |||
| 83 | <pre> |
||
| 84 | 7 | Nico Schottelius | interface ethernet 47 |
| 85 | channel-group 47 mode active |
||
| 86 | |||
| 87 | interface ethernet 48 |
||
| 88 | channel-group 47 mode active |
||
| 89 | |||
| 90 | 9 | Nico Schottelius | interface Port-Channel47 |
| 91 | switchport mode trunk |
||
| 92 | switchport trunk group mlag-aristas |
||
| 93 | |||
| 94 | 7 | Nico Schottelius | vlan 13 |
| 95 | name mlag-aristas |
||
| 96 | trunk group mlag-aristas |
||
| 97 | |||
| 98 | interface Vlan13 |
||
| 99 | no autostate |
||
| 100 | ip address 10.3.4.ZZ/24 |
||
| 101 | |||
| 102 | |||
| 103 | 1 | Nico Schottelius | mlag configuration |
| 104 | domain-id MLAGLOCALDOMAIN |
||
| 105 | peer-address 10.3.4.WW |
||
| 106 | 8 | Nico Schottelius | local-interface Vlan13 |
| 107 | 1 | Nico Schottelius | peer-link Port-Channel47 |
| 108 | 8 | Nico Schottelius | |
| 109 | 6 | Nico Schottelius | |
| 110 | </pre> |
||
| 111 | |||
| 112 | h2. Configuring BGP |
||
| 113 | |||
| 114 | * XX = ip suffix |
||
| 115 | |||
| 116 | <pre> |
||
| 117 | router bgp 209898 |
||
| 118 | router-id 0.0.0.XX |
||
| 119 | bgp default ipv6-unicast |
||
| 120 | maximum-paths 4 |
||
| 121 | bgp listen range 2a0a:e5c0:1:8::/64 peer-group ungleich remote-as 209898 |
||
| 122 | neighbor ungleich peer-group |
||
| 123 | neighbor ungleich maximum-routes 12000 |
||
| 124 | 1 | Nico Schottelius | </pre> |