Sie sind auf Seite 1von 7

Konfigurasi 2 trunk dan 4 vlan

Switch>enable

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#exit

Switch(config)#

Switch(config)#vlan 10

Switch(config-vlan)#name vlan 10

% Invalid input detected at '^' marker.

Switch(config-vlan)#name vlan10

Switch(config-vlan)#exit

Switch(config)#vlan 20

Switch(config-vlan)#name PABX

Switch(config-vlan)#exit

Switch(config)#exit

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#exit
Switch con0 is now available

Press RETURN to get started.


Switch>show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa1/1, Fa2/1, Fa3/1

Fa4/1, Fa5/1, Fa6/1, Fa7/1

Fa8/1, Fa9/1

10 vlan10 active

20 PABX active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch>enable

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#name OFFICE

Switch(config-vlan)#exit

Switch(config)#vlan 30

Switch(config-vlan)#name LA
Switch(config-vlan)#vlan 40

Switch(config-vlan)#name INDIHOME

Switch(config-vlan)#exit

Switch(config)#exit

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#exit

Switch con0 is now available

Press RETURN to get started.


Switch>show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa1/1, Fa2/1, Fa3/1

Fa4/1, Fa5/1, Fa6/1, Fa7/1

Fa8/1, Fa9/1

10 OFFICE active

20 PABX active

30 LA active

40 INDIHOME active

1002 fddi-default active


1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch>configure termnial

% Invalid input detected at '^' marker.

Switch>en

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#exit

Switch(config)#interface fastEthernet 1/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#exit

Switch(config)#interface fastEthernet 2/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit

Switch(config)#interface fastEthernet 3/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

Switch(config)#interface fastEthernet 4/1


Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 30

Switch(config-if)#exit

Switch(config)#interface fastEthernet 5/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 40

Switch(config-if)#exit

Switch(config)#

Switch(config)#end

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#

Das könnte Ihnen auch gefallen