Project

General

Profile

How to configure Arista switches » History » Version 6

Nico Schottelius, 07/10/2019 06:04 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
77
78
<pre>
79
mlag configuration
80
   domain-id MLAGLOCALDOMAIN
81
   local-interface VlanXX
82
   peer-address 10.3.4.4
83
   peer-link Port-ChannelYY
84
85
</pre>
86
87
h2. Configuring BGP
88
89
* XX = ip suffix
90
91
<pre>
92
router bgp 209898
93
   router-id 0.0.0.XX
94
   bgp default ipv6-unicast
95
   maximum-paths 4
96
   bgp listen range 2a0a:e5c0:1:8::/64 peer-group ungleich remote-as 209898
97
   neighbor ungleich peer-group
98
   neighbor ungleich maximum-routes 12000 
99
</pre>