Sie sind auf Seite 1von 2

Switch>

Switch>enable
Password:
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 100
Switch(config-vlan)#name PrvaGrupa
Switch(config-vlan)#ex
Switch(config)#vlan 110
Switch(config-vlan)#name DrugaGrupa
Switch(config-vlan)#ex
Switch(config)#interface range fastEthernet 0/1-9
Switch(config-if-range)#switchport access vlan 100
Switch(config-if-range)#ex
Switch(config)#interface range fastethernet 0/10-19
Switch(config-if-range)#switchport access vlan 110
Switch(config-if-range)#ex
Switch(config)#interface vlan 100
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan100, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Switch(config-if)#ip address 10.10.100.1 255.255.255.0


Switch(config-if)#no shutdown
Switch(config-if)#ex
Switch(config)#interface vlan 110
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan110, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan110, changed state to up

Switch(config-if)#ip address 10.10.110.1 255.255.255.0


Switch(config-if)#no shutdown
Switch(config-if)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#show vlan brief

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig0/1, Gig0/2
100 PrvaGrupa active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9
110 DrugaGrupa active Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#conf
Switch#configure t
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interf
Switch(config)#interface gig
Switch(config)#interface gigabitEthernet 0/1
Switch(config-if)#switch
Switch(config-if)#switchport mode
Switch(config-if)#switchport mode trunk

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to


up

Switch(config-if)#copy run
Switch(config-if)#copy running
Switch(config-if)#ex
Switch(config)#copy run
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#copy run
Switch#copy running-config
% Incomplete command.
Switch#copy running-config start
Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch#

Das könnte Ihnen auch gefallen