Projet

Général

Profil

EdgeOS » Historique » Version 13

Christian Frabel, 04/01/2023 15:08

1 1 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 1 Laurent GUERBY
h1. EdgeOS
4 1 Laurent GUERBY
5 6 Laurent GUERBY
ES-48-Lite EdgeOS 1.7.3
6 6 Laurent GUERBY
7 6 Laurent GUERBY
h2. Documentation
8 6 Laurent GUERBY
9 6 Laurent GUERBY
https://dl.ubnt.com/guides/edgemax/EdgeOS_UG.pdf
10 6 Laurent GUERBY
https://dl.ubnt.com/guides/edgemax/EdgeSwitch_CLI_Command_Reference_UG.pdf
11 6 Laurent GUERBY
12 1 Laurent GUERBY
h2. Commandes
13 1 Laurent GUERBY
14 4 Laurent GUERBY
15 4 Laurent GUERBY
<pre>
16 4 Laurent GUERBY
(UBNT EdgeSwitch) #show mac-addr-table 
17 4 Laurent GUERBY
18 4 Laurent GUERBY
VLAN ID  MAC Address         Interface              IfIndex  Status
19 4 Laurent GUERBY
-------  ------------------  ---------------------  -------  ------------
20 4 Laurent GUERBY
1        00:01:E8:8B:4F:CF   0/49                   49       Learned
21 4 Laurent GUERBY
1        00:08:7C:3C:29:03   0/49                   49       Learned
22 4 Laurent GUERBY
128      9C:B6:54:06:7E:56   0/5                    5        Learned
23 4 Laurent GUERBY
...
24 4 Laurent GUERBY
</pre>
25 4 Laurent GUERBY
26 1 Laurent GUERBY
<pre>
27 1 Laurent GUERBY
show interfaces status all
28 1 Laurent GUERBY
Port       Name                          State   Mode        Status      Type                Status
29 1 Laurent GUERBY
---------  ----------------------------  ------  ----------  ----------  ------------------  ------------
30 1 Laurent GUERBY
0/1                                      Down    Auto                    Unknown             Inactive
31 1 Laurent GUERBY
0/2                                      Down    Auto                    Unknown             Inactive
32 1 Laurent GUERBY
0/3                                      Up      Auto        100 Full    Unknown             Active
33 1 Laurent GUERBY
...
34 1 Laurent GUERBY
35 1 Laurent GUERBY
(UBNT EdgeSwitch) #show interfaces switchport
36 1 Laurent GUERBY
37 1 Laurent GUERBY
Port: 0/1
38 1 Laurent GUERBY
VLAN Membership Mode: General
39 1 Laurent GUERBY
Access Mode VLAN: 1 (default)
40 1 Laurent GUERBY
General Mode PVID: 3131
41 1 Laurent GUERBY
General Mode Ingress Filtering: Disabled
42 1 Laurent GUERBY
General Mode Acceptable Frame Type: Admit all
43 1 Laurent GUERBY
General Mode Dynamically Added VLANs:
44 1 Laurent GUERBY
General Mode Untagged VLANs: 3131
45 1 Laurent GUERBY
General Mode Tagged VLANs: 3199
46 1 Laurent GUERBY
General Mode Forbidden VLANs: 1,20,128,376,3132,3166,3175
47 1 Laurent GUERBY
Trunking Mode Native VLAN: 1 (default)
48 1 Laurent GUERBY
Trunking Mode Native VLAN tagging: Disable
49 1 Laurent GUERBY
Trunking Mode VLANs Enabled: All
50 1 Laurent GUERBY
Protected Port: False
51 1 Laurent GUERBY
52 1 Laurent GUERBY
Port: 0/2
53 1 Laurent GUERBY
...
54 1 Laurent GUERBY
</pre>
55 1 Laurent GUERBY
56 1 Laurent GUERBY
<pre>
57 1 Laurent GUERBY
(UBNT EdgeSwitch) #show fiber-ports optics-info all
58 1 Laurent GUERBY
59 1 Laurent GUERBY
                         Link Link                                 Nominal
60 1 Laurent GUERBY
                       Length Length                                   Bit
61 1 Laurent GUERBY
                         50um 62.5um                                  Rate
62 1 Laurent GUERBY
Port     Vendor Name      [m] [m]  Serial Number    Part Number     [Mbps] Rev  Compliance
63 1 Laurent GUERBY
-------- ---------------- --- ---- ---------------- ---------------- ----- ---- ----------------
64 1 Laurent GUERBY
0/49     OEM              0   0    SG35E40803862    SFP+10GSMD3120LC 10300 A    10GBase-LR
65 1 Laurent GUERBY
0/50     OPTIC            0   0    STC03051500015   OPTICSFP+10GCP3M 10300 A0   DAC
66 1 Laurent GUERBY
67 1 Laurent GUERBY
(UBNT EdgeSwitch) #show fiber-ports optics all     
68 1 Laurent GUERBY
69 1 Laurent GUERBY
                                    Output    Input
70 1 Laurent GUERBY
Port      Temp  Voltage  Current     Power    Power   TX     LOS
71 1 Laurent GUERBY
           [C]   [Volt]     [mA]     [dBm]    [dBm]   Fault
72 1 Laurent GUERBY
--------  ----  -------  -------   -------  -------   -----  ---
73 1 Laurent GUERBY
0/49      45.2    3.332     31.5    -3.079   -3.223   No     No
74 1 Laurent GUERBY
0/50       N/A      N/A      N/A       N/A      N/A   N/A    N/A
75 1 Laurent GUERBY
76 1 Laurent GUERBY
 Temp - Internally measured transceiver temperatures.
77 1 Laurent GUERBY
 Voltage - Internally measured supply voltage.
78 1 Laurent GUERBY
 Current - Measured TX bias current.
79 1 Laurent GUERBY
 Output Power - Measured optical output power relative to 1mW.
80 1 Laurent GUERBY
 Input Power - Measured optical power received relative to 1mW.
81 1 Laurent GUERBY
 TX Fault - Transmitter fault.
82 1 Laurent GUERBY
 LOS - Loss of signal.
83 2 Laurent GUERBY
</pre>
84 2 Laurent GUERBY
85 5 Bertrand Cebador
h3. Allumer un port et remplir sa description
86 5 Bertrand Cebador
87 5 Bertrand Cebador
<pre>
88 5 Bertrand Cebador
(UBNT EdgeSwitch) #conf
89 5 Bertrand Cebador
(UBNT EdgeSwitch) (Config)#interface 0/33
90 5 Bertrand Cebador
91 5 Bertrand Cebador
(UBNT EdgeSwitch) (Interface 0/33)#no shutdown
92 5 Bertrand Cebador
93 5 Bertrand Cebador
(UBNT EdgeSwitch) (Interface 0/33)#description gentilserveur
94 5 Bertrand Cebador
95 5 Bertrand Cebador
(UBNT EdgeSwitch) (Interface 0/33)#exit
96 5 Bertrand Cebador
97 5 Bertrand Cebador
(UBNT EdgeSwitch) #write memory 
98 5 Bertrand Cebador
This operation may take a few minutes.
99 5 Bertrand Cebador
Management interfaces will not be available during this time.
100 5 Bertrand Cebador
Are you sure you want to save? (y/n) y
101 5 Bertrand Cebador
102 5 Bertrand Cebador
Config file 'startup-config' created successfully .
103 5 Bertrand Cebador
104 5 Bertrand Cebador
Configuration Saved!
105 5 Bertrand Cebador
106 5 Bertrand Cebador
</pre>
107 5 Bertrand Cebador
108 2 Laurent GUERBY
<pre>
109 2 Laurent GUERBY
(UBNT EdgeSwitch) #write memory         
110 2 Laurent GUERBY
111 2 Laurent GUERBY
This operation may take a few minutes.
112 2 Laurent GUERBY
Management interfaces will not be available during this time.
113 2 Laurent GUERBY
114 2 Laurent GUERBY
Are you sure you want to save? (y/n) y
115 2 Laurent GUERBY
116 2 Laurent GUERBY
Config file 'startup-config' created successfully .
117 2 Laurent GUERBY
118 2 Laurent GUERBY
119 2 Laurent GUERBY
Configuration Saved!
120 2 Laurent GUERBY
</pre>
121 2 Laurent GUERBY
122 2 Laurent GUERBY
<pre>
123 2 Laurent GUERBY
(UBNT EdgeSwitch) #conf
124 2 Laurent GUERBY
125 2 Laurent GUERBY
(UBNT EdgeSwitch) (Config)#interface 0/35
126 2 Laurent GUERBY
127 2 Laurent GUERBY
(UBNT EdgeSwitch) (Interface 0/35)#shut
128 2 Laurent GUERBY
129 2 Laurent GUERBY
(UBNT EdgeSwitch) (Interface 0/35)#do write memory
130 2 Laurent GUERBY
131 2 Laurent GUERBY
This operation may take a few minutes.
132 2 Laurent GUERBY
Management interfaces will not be available during this time.
133 2 Laurent GUERBY
134 2 Laurent GUERBY
Are you sure you want to save? (y/n) y
135 2 Laurent GUERBY
136 2 Laurent GUERBY
Config file 'startup-config' created successfully .
137 2 Laurent GUERBY
138 2 Laurent GUERBY
139 2 Laurent GUERBY
Configuration Saved!
140 2 Laurent GUERBY
141 2 Laurent GUERBY
(UBNT EdgeSwitch) (Interface 0/35)#
142 2 Laurent GUERBY
143 2 Laurent GUERBY
</pre>
144 3 Laurent GUERBY
145 3 Laurent GUERBY
<pre>
146 3 Laurent GUERBY
(UBNT EdgeSwitch) (Config)#interface 0/12-0/15
147 3 Laurent GUERBY
148 3 Laurent GUERBY
(UBNT EdgeSwitch) (Interface 0/12-0/15)#shut
149 3 Laurent GUERBY
</pre>
150 7 Matthieu Herrb
151 7 Matthieu Herrb
<pre>
152 7 Matthieu Herrb
(s58) #copy nvram:startup-config tftp://192.168.3.19/s58
153 7 Matthieu Herrb
154 7 Matthieu Herrb
Mode........................................... TFTP  
155 7 Matthieu Herrb
Set Server IP.................................. 192.168.3.19
156 7 Matthieu Herrb
Path........................................... ./
157 7 Matthieu Herrb
Filename....................................... s58
158 7 Matthieu Herrb
Data Type...................................... Text Configuration
159 7 Matthieu Herrb
160 7 Matthieu Herrb
Management access will be blocked for the duration of the transfer
161 7 Matthieu Herrb
Are you sure you want to start? (y/n) y
162 7 Matthieu Herrb
163 7 Matthieu Herrb
File transfer operation completed successfully.
164 7 Matthieu Herrb
165 7 Matthieu Herrb
(s58) #
166 9 Christian Frabel
167 9 Christian Frabel
</pre>
168 11 Christian Frabel
169 10 Christian Frabel
h2. Exemple
170 11 Christian Frabel
171 9 Christian Frabel
<pre>
172 12 Christian Frabel
À titre d'exemple, activons le port 1 du switch s54 localisé à Picto afin d'y connecter un dispositif.
173 13 Christian Frabel
On peut se connecter au switch de diverses façons, cependant à distance, on peut se connecter d'abord sur nagios.tetaneutral.net et, de là, atteindre s54
174 13 Christian Frabel
@
175 13 Christian Frabel
ssh -lroot -p2222 nagios.tetaneutral.net
176 13 Christian Frabel
@
177 7 Matthieu Herrb
</pre>