Project

General

Profile

How to configure Arista switches » History » Version 8

Nico Schottelius, 07/10/2019 06:24 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
vlan 13
91
   name mlag-aristas
92
   trunk group mlag-aristas
93
94
interface Vlan13
95
   no autostate
96
   ip address 10.3.4.ZZ/24
97
98
99 1 Nico Schottelius
mlag configuration
100
   domain-id MLAGLOCALDOMAIN
101
   peer-address 10.3.4.WW
102 8 Nico Schottelius
   local-interface Vlan13
103 1 Nico Schottelius
   peer-link Port-Channel47
104 8 Nico Schottelius
105 6 Nico Schottelius
106
</pre>
107
108
h2. Configuring BGP
109
110
* XX = ip suffix
111
112
<pre>
113
router bgp 209898
114
   router-id 0.0.0.XX
115
   bgp default ipv6-unicast
116
   maximum-paths 4
117
   bgp listen range 2a0a:e5c0:1:8::/64 peer-group ungleich remote-as 209898
118
   neighbor ungleich peer-group
119
   neighbor ungleich maximum-routes 12000 
120 1 Nico Schottelius
</pre>