Mat: Skillnad mellan sidversioner
Nsg (diskussion | bidrag) Created page with " {| class="wikitable" |- | 1 || 3 || 5 || 7 || 9 || 11 || 13 || 15 || 17 || 19 || 21 || 23 |- | 2 || 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 22 || 24 |}" |
Nsg (diskussion | bidrag) |
||
| (19 mellanliggande sidversioner av 2 användare visas inte) | |||
| Rad 1: | Rad 1: | ||
== Switch "switch1" == | |||
Hur man ändrar switchens konfiguration står längst ner. | |||
=== Layout === | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| 1 || 3 || 5 || 7 || 9 || 11 || 13 || 15 || 17 || 19 || | | 1 || 2 || 3 || 4 || 5 || 6 || || 13 || 14 || 15 || 16 || 17 || 18 | ||
|- | |||
| 7 || 8 || 9 || 10 || 11 || 12 || || 19 || 20 || 21 || 22 || 23 || 24 | |||
|} | |||
=== Available VLANs === | |||
{| class="wikitable" | |||
|- | |||
! Name || Description | |||
|- | |||
| VLAN 1 || Backend network - Used for Mat management, PXE boot and filesystem traffic. | |||
|- | |||
| VLAN 2 || Mat data network - Used for internal services | |||
|- | |||
| VLAN 3 || Stacken public network | |||
|} | |||
=== Port config === | |||
{| class="wikitable" | |||
|- | |||
! Port !! VLAN (tagged) || VLAN (untagged) | |||
|- | |||
| 1 || || VLAN 1 | |||
|- | |||
| 2 || || VLAN 1 | |||
|- | |||
| 3 || || VLAN 1 | |||
|- | |||
| 4 || || VLAN 1 | |||
|- | |||
| 5 || || VLAN 1 | |||
|- | |||
| 6 || || VLAN 1 | |||
|- | |||
| 7 || VLAN 2,3 || VLAN 1 | |||
|- | |||
| 8 || || VLAN 1 | |||
|- | |||
| 9 || || VLAN 1 | |||
|- | |||
| 10 || || VLAN 1 | |||
|- | |||
| 11 || || VLAN 1 | |||
|- | |||
| 12 || || VLAN 1 | |||
|- | |||
| 13 || || VLAN 2 | |||
|- | |||
| 14 || || VLAN 2 | |||
|- | |||
| 15 || || VLAN 2 | |||
|- | |||
| 16 || || VLAN 2 | |||
|- | |||
| 17 || || VLAN 2 | |||
|- | |||
| 18 || || VLAN 2 | |||
|- | |||
| 19 || || VLAN 2 | |||
|- | |- | ||
| 2 || | | 20 || || VLAN 2 | ||
|- | |||
| 21 || || VLAN 2 | |||
|- | |||
| 22 || || VLAN 2 | |||
|- | |||
| 23 || || VLAN 2 | |||
|- | |||
| 24 || VLAN 1,2 || VLAN 3 | |||
|} | |} | ||
=== Konfiguration === | |||
==== Logga in ==== | |||
Logga in: (Lösenord står på switchen samt i /afs/stacken.kth.se/admin/passwords/switch1.mat.stacken.kth.se), körs på en dator som når backend-nätet eller plugga in din dator i en switchport med vlan 1 enligt ovan. | |||
<code>$ telnet 10.0.0.2</code> | |||
Gå in i konfig-läge: | |||
<code>mat-switch# config</code> | |||
==== Visa saker ==== | |||
Visa översikt på portarna: | |||
<code>mat-switch(config)# show int brief</code> | |||
Lista vlan: | |||
<code>mat-switch(config)# show vlan </code> | |||
Lista vlan för port 3: | |||
<code>mat-switch(config)# show vlan port 3</code> | |||
Lista portar där vlan 3 är aktivt: | |||
<code>mat-switch(config)# show vlan 3</code> | |||
==== Ändra saker ==== | |||
Ett vlan skapas dynamiskt om det inte finns. | |||
Lägg till vlan 3 otaggat till port 5: | |||
<code>mat-switch(config)# vlan 3 untagged 5</code> | |||
Lägg till vlan 4 taggat till port 5: | |||
<code>mat-switch(config)# vlan 4 tagged 5</code> | |||
Lägg till vlan 3 taggat till port 3 till 7: | |||
<code>mat-switch(config)# vlan 3 tagged 3-7</code> | |||
Ta bort vlan 3 från en port 4: | |||
<code>mat-switch(config)# no vlan 3 tagged 4</code> | |||
Ta bort vlan: | |||
<code>mat-switch(config)# no vlan 3</code> | |||
==== Logga ut ==== | |||
Avsluta (GLÖM INTE write mem): | |||
<code>mat-switch(config)# write mem | |||
mat-switch(config)# exit | |||
mat-switch# exit | |||
mat-switch> exit | |||
Do you want to log out [y/n]? y</code> | |||
Nuvarande version från 1 augusti 2019 kl. 13.58
Switch "switch1"
Hur man ändrar switchens konfiguration står längst ner.
Layout
| 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 | 17 | 18 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | 23 | 24 |
Available VLANs
| Name | Description |
|---|---|
| VLAN 1 | Backend network - Used for Mat management, PXE boot and filesystem traffic. |
| VLAN 2 | Mat data network - Used for internal services |
| VLAN 3 | Stacken public network |
Port config
| Port | VLAN (tagged) | VLAN (untagged) |
|---|---|---|
| 1 | VLAN 1 | |
| 2 | VLAN 1 | |
| 3 | VLAN 1 | |
| 4 | VLAN 1 | |
| 5 | VLAN 1 | |
| 6 | VLAN 1 | |
| 7 | VLAN 2,3 | VLAN 1 |
| 8 | VLAN 1 | |
| 9 | VLAN 1 | |
| 10 | VLAN 1 | |
| 11 | VLAN 1 | |
| 12 | VLAN 1 | |
| 13 | VLAN 2 | |
| 14 | VLAN 2 | |
| 15 | VLAN 2 | |
| 16 | VLAN 2 | |
| 17 | VLAN 2 | |
| 18 | VLAN 2 | |
| 19 | VLAN 2 | |
| 20 | VLAN 2 | |
| 21 | VLAN 2 | |
| 22 | VLAN 2 | |
| 23 | VLAN 2 | |
| 24 | VLAN 1,2 | VLAN 3 |
Konfiguration
Logga in
Logga in: (Lösenord står på switchen samt i /afs/stacken.kth.se/admin/passwords/switch1.mat.stacken.kth.se), körs på en dator som når backend-nätet eller plugga in din dator i en switchport med vlan 1 enligt ovan.
$ telnet 10.0.0.2
Gå in i konfig-läge:
mat-switch# config
Visa saker
Visa översikt på portarna:
mat-switch(config)# show int brief
Lista vlan:
mat-switch(config)# show vlan
Lista vlan för port 3:
mat-switch(config)# show vlan port 3
Lista portar där vlan 3 är aktivt:
mat-switch(config)# show vlan 3
Ändra saker
Ett vlan skapas dynamiskt om det inte finns.
Lägg till vlan 3 otaggat till port 5:
mat-switch(config)# vlan 3 untagged 5
Lägg till vlan 4 taggat till port 5:
mat-switch(config)# vlan 4 tagged 5
Lägg till vlan 3 taggat till port 3 till 7:
mat-switch(config)# vlan 3 tagged 3-7
Ta bort vlan 3 från en port 4:
mat-switch(config)# no vlan 3 tagged 4
Ta bort vlan:
mat-switch(config)# no vlan 3
Logga ut
Avsluta (GLÖM INTE write mem):
mat-switch(config)# write mem
mat-switch(config)# exit
mat-switch# exit
mat-switch> exit
Do you want to log out [y/n]? y