How to configure Arista switches » History » Version 10
Nico Schottelius, 07/10/2019 06:41 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 | 10 | Nico Schottelius | h2. Creating a port channel over multiple switches using MLAG |
57 | |||
58 | <pre> |
||
59 | interface EthernetXX |
||
60 | channel-group XX mode active |
||
61 | mlag XX |
||
62 | </pre> |
||
63 | |||
64 | And if you want to have tagged/trunk port: |
||
65 | |||
66 | <pre> |
||
67 | switchport mode trunk |
||
68 | </pre> |
||
69 | |||
70 | 4 | Nico Schottelius | h2. Upgrading a switch |
71 | |||
72 | * copy the image from usb to flash |
||
73 | 1 | Nico Schottelius | * change the boot config |
74 | 5 | Nico Schottelius | * don't forget to write |
75 | 4 | Nico Schottelius | * reload |
76 | |||
77 | <pre> |
||
78 | copy usb1:/EOS-4.14.4.swi flash:/EOS-4.14.4.swi |
||
79 | configure terminal |
||
80 | boot system flash:/EOS-4.14.4.swi |
||
81 | show boot-config |
||
82 | write |
||
83 | reload |
||
84 | </pre> |
||
85 | 6 | Nico Schottelius | |
86 | h2. Configuring MLAG |
||
87 | |||
88 | * Create a port channel for communication |
||
89 | * Configure the mlag over it |
||
90 | 7 | Nico Schottelius | * Assuming the switches are connected by ethernet 47 and ethernet 48 |
91 | * Assuming that the switches use vlan 13 |
||
92 | * ZZ = ip suffix of the switch |
||
93 | * WW = ip suffix of the other switch |
||
94 | * mlagdomain = something local |
||
95 | 6 | Nico Schottelius | |
96 | |||
97 | <pre> |
||
98 | 7 | Nico Schottelius | interface ethernet 47 |
99 | channel-group 47 mode active |
||
100 | |||
101 | interface ethernet 48 |
||
102 | channel-group 47 mode active |
||
103 | |||
104 | 9 | Nico Schottelius | interface Port-Channel47 |
105 | switchport mode trunk |
||
106 | switchport trunk group mlag-aristas |
||
107 | |||
108 | 7 | Nico Schottelius | vlan 13 |
109 | name mlag-aristas |
||
110 | trunk group mlag-aristas |
||
111 | |||
112 | interface Vlan13 |
||
113 | no autostate |
||
114 | ip address 10.3.4.ZZ/24 |
||
115 | |||
116 | |||
117 | 1 | Nico Schottelius | mlag configuration |
118 | domain-id MLAGLOCALDOMAIN |
||
119 | peer-address 10.3.4.WW |
||
120 | 8 | Nico Schottelius | local-interface Vlan13 |
121 | 1 | Nico Schottelius | peer-link Port-Channel47 |
122 | 8 | Nico Schottelius | |
123 | 6 | Nico Schottelius | |
124 | </pre> |
||
125 | |||
126 | h2. Configuring BGP |
||
127 | |||
128 | * XX = ip suffix |
||
129 | |||
130 | <pre> |
||
131 | router bgp 209898 |
||
132 | router-id 0.0.0.XX |
||
133 | bgp default ipv6-unicast |
||
134 | maximum-paths 4 |
||
135 | bgp listen range 2a0a:e5c0:1:8::/64 peer-group ungleich remote-as 209898 |
||
136 | neighbor ungleich peer-group |
||
137 | neighbor ungleich maximum-routes 12000 |
||
138 | 1 | Nico Schottelius | </pre> |