Projet

Général

Profil

EdgeOS » Historique » Version 17

Version 16 (Christian Frabel, 04/01/2023 15:10) → Version 17/31 (Christian Frabel, 04/01/2023 15:54)

{{>toc}}

h1. EdgeOS

ES-48-Lite EdgeOS 1.7.3

h2. Documentation

https://dl.ubnt.com/guides/edgemax/EdgeOS_UG.pdf
https://dl.ubnt.com/guides/edgemax/EdgeSwitch_CLI_Command_Reference_UG.pdf

h2. Commandes

<pre>
(UBNT EdgeSwitch) #show mac-addr-table

VLAN ID MAC Address Interface IfIndex Status
------- ------------------ --------------------- ------- ------------
1 00:01:E8:8B:4F:CF 0/49 49 Learned
1 00:08:7C:3C:29:03 0/49 49 Learned
128 9C:B6:54:06:7E:56 0/5 5 Learned
...
</pre>

<pre>
show interfaces status all
Port Name State Mode Status Type Status
--------- ---------------------------- ------ ---------- ---------- ------------------ ------------
0/1 Down Auto Unknown Inactive
0/2 Down Auto Unknown Inactive
0/3 Up Auto 100 Full Unknown Active
...

(UBNT EdgeSwitch) #show interfaces switchport

Port: 0/1
VLAN Membership Mode: General
Access Mode VLAN: 1 (default)
General Mode PVID: 3131
General Mode Ingress Filtering: Disabled
General Mode Acceptable Frame Type: Admit all
General Mode Dynamically Added VLANs:
General Mode Untagged VLANs: 3131
General Mode Tagged VLANs: 3199
General Mode Forbidden VLANs: 1,20,128,376,3132,3166,3175
Trunking Mode Native VLAN: 1 (default)
Trunking Mode Native VLAN tagging: Disable
Trunking Mode VLANs Enabled: All
Protected Port: False

Port: 0/2
...
</pre>

<pre>
(UBNT EdgeSwitch) #show fiber-ports optics-info all

Link Link Nominal
Length Length Bit
50um 62.5um Rate
Port Vendor Name [m] [m] Serial Number Part Number [Mbps] Rev Compliance
-------- ---------------- --- ---- ---------------- ---------------- ----- ---- ----------------
0/49 OEM 0 0 SG35E40803862 SFP+10GSMD3120LC 10300 A 10GBase-LR
0/50 OPTIC 0 0 STC03051500015 OPTICSFP+10GCP3M 10300 A0 DAC

(UBNT EdgeSwitch) #show fiber-ports optics all

Output Input
Port Temp Voltage Current Power Power TX LOS
[C] [Volt] [mA] [dBm] [dBm] Fault
-------- ---- ------- ------- ------- ------- ----- ---
0/49 45.2 3.332 31.5 -3.079 -3.223 No No
0/50 N/A N/A N/A N/A N/A N/A N/A

Temp - Internally measured transceiver temperatures.
Voltage - Internally measured supply voltage.
Current - Measured TX bias current.
Output Power - Measured optical output power relative to 1mW.
Input Power - Measured optical power received relative to 1mW.
TX Fault - Transmitter fault.
LOS - Loss of signal.
</pre>

h3. Allumer un port et remplir sa description

<pre>
(UBNT EdgeSwitch) #conf
(UBNT EdgeSwitch) (Config)#interface 0/33

(UBNT EdgeSwitch) (Interface 0/33)#no shutdown

(UBNT EdgeSwitch) (Interface 0/33)#description gentilserveur

(UBNT EdgeSwitch) (Interface 0/33)#exit

(UBNT EdgeSwitch) #write memory
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y

Config file 'startup-config' created successfully .

Configuration Saved!

</pre>

<pre>
(UBNT EdgeSwitch) #write memory

This operation may take a few minutes.
Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Config file 'startup-config' created successfully .

Configuration Saved!
</pre>

<pre>
(UBNT EdgeSwitch) #conf

(UBNT EdgeSwitch) (Config)#interface 0/35

(UBNT EdgeSwitch) (Interface 0/35)#shut

(UBNT EdgeSwitch) (Interface 0/35)#do write memory

This operation may take a few minutes.
Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Config file 'startup-config' created successfully .

Configuration Saved!

(UBNT EdgeSwitch) (Interface 0/35)#

</pre>

<pre>
(UBNT EdgeSwitch) (Config)#interface 0/12-0/15

(UBNT EdgeSwitch) (Interface 0/12-0/15)#shut
</pre>

<pre>
(s58) #copy nvram:startup-config tftp://192.168.3.19/s58

Mode........................................... TFTP
Set Server IP.................................. 192.168.3.19
Path........................................... ./
Filename....................................... s58
Data Type...................................... Text Configuration

Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y

File transfer operation completed successfully.

(s58) #

</pre>

h2. Exemple

<pre>
À titre d'exemple, activons le port 1 du switch s54 localisé à Picto afin d'y connecter un dispositif.
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.
Ceci nécessite d'avoir sa clef sur nagios afin de permettre la connexion ssh.

s54

ssh -lroot -p2222 nagios.tetaneutral.net
Connexion à s54 passwd: ubnt
ssh ubnt@s54
Après connexion au switch, on passe en root pw: ubnt
enable
On passe ensuite en mode config
conf
Pour la config du port 11
interface 0/11



</pre>