Difference between revisions of "Mat"

m
Line 113: Line 113:
  
 
<code>mat-switch(config)# write mem
 
<code>mat-switch(config)# write mem
 +
 
mat-switch(config)# exit
 
mat-switch(config)# exit
 +
 
mat-switch# exit
 
mat-switch# exit
 +
 
mat-switch> exit
 
mat-switch> exit
 +
 
Do you want to log out [y/n]? y</code>
 
Do you want to log out [y/n]? y</code>

Revision as of 12:49, 1 August 2019

Switch "switch1"

Hur man ändrar switchens konfiguration står längst ner.

Layout

1 3 5 7 9 11 13 15 17 19 21 23
2 4 6 8 10 12 14 16 18 20 22 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 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 2

Konfiguration

Logga in: (lösenord står i /afs/stacken.kth.se/admin/passwords/switch1.mat.stacken.kth.se)

$ telnet 10.0.0.2

Gå in i konfig-läge:

mat-switch# config

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

Lägg till vlan 3 taggat till port 3 till 7:

mat-switch(config)# vlan 3 tagged 3-7

Ta bort vlan från en port:

mat-switch(config)# no vlan 3 tagged 3

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