Cisco Switch: Create VLAN database: Difference between revisions
Appearance
Created page with " Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#name TKJ Switch(config-vlan)#ex Switch(config)#Vlan 20 Switch(config-vlan)#name MM ====Asign Vlan nya Ke port:==== switch(config)#int f0/1 switch(config-if)#switchport mode access switch(config-if)#switchport access vlan 10 switch(config)#int f0/2 switch(config-if)#switchport mode access switch(config-if)#switchport access vlan..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<syntaxhighlight lang="bash" line="1"> | |||
Switch>en | |||
Switch#conf t | |||
Enter configuration commands, one per line. End with CNTL/Z. | |||
Switch(config)#vlan 10 | |||
Switch(config-vlan)#name TKJ | |||
Switch(config-vlan)#ex | |||
Switch(config)#Vlan 20 | |||
Switch(config-vlan)#name MM | |||
</syntaxhighlight> | |||
====Asign Vlan nya Ke port:==== | ====Asign Vlan nya Ke port:==== | ||
<syntaxhighlight lang="bash" line="1"> | |||
switch(config)#int f0/1 | |||
switch(config-if)#switchport mode access | |||
switch(config-if)#switchport access vlan 10 | |||
switch(config)#int f0/2 | |||
switch(config-if)#switchport mode access | |||
switch(config-if)#switchport access vlan 10 | |||
switch(config)#int f0/3 | |||
switch(config-if)#switchport mode access | |||
switch(config-if)#switchport access vlan20 | |||
switch(config)#int f0/4 | |||
switch(config-if)#switchport mode access | |||
switch(config-if)#switchport access vlan20 | |||
</syntaxhighlight> | |||
=== Oke Verifikasi nya === | |||
<syntaxhighlight lang="bash"> | |||
Switch(config-if)#do sh vlan | |||
VLAN Name Status Ports | |||
---- -------------------------------- --------- ------------------------- ------ | |||
1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 | |||
Fa0/9, Fa0/10, Fa0/11, Fa0/12 | |||
Fa0/13, Fa0/14, Fa0/15, Fa0/16 | |||
Fa0/17, Fa0/18, Fa0/19, Fa0/20 | |||
Fa0/21, Fa0/22, Fa0/23, Fa0/24 | |||
10 TKJ active Fa0/1, Fa0/2 | |||
20 MM active Fa0/3, Fa0/4 | |||
1002 fddi-default act/unsup | |||
1003 token-ring-default act/unsup | |||
1004 fddinet-default act/unsup | |||
1005 trnet-default act/unsup | |||
</syntaxhighlight> | |||
[[Category:Jaringan]] | |||
[[Category:Jaringan Komputer]] | |||
[[Category:Cisco]] | |||
Latest revision as of 21:20, 11 May 2024
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name TKJ
Switch(config-vlan)#ex
Switch(config)#Vlan 20
Switch(config-vlan)#name MM
Asign Vlan nya Ke port:
switch(config)#int f0/1
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 10
switch(config)#int f0/2
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 10
switch(config)#int f0/3
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan20
switch(config)#int f0/4
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan20
Oke Verifikasi nya
Switch(config-if)#do sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- ------------------------- ------
1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
10 TKJ active Fa0/1, Fa0/2
20 MM active Fa0/3, Fa0/4
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup