Вы находитесь на странице: 1из 4

Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname grupob grupob(config)#vlan 2 grupob(config-vlan)#name oche grupob(config-vlan)#exit grupob(config)#vlan 3 grupob(config-vlan)#name oche2 grupob(config-vlan)#exit grupob(config)#interface fastethernet 0/2 grupob(config-if)#switchport access vlan 2 grupob(config-if)#exit grupob(config)#vlan 4 grupob(config-vlan)#name oche3 grupob(config-vlan)#exit grupob(config)#interface fastethernet 0/3 grupob(config-if)#switchport access vlan 3 grupob(config-if)#vlan 5 grupob(config-vlan)#name oche4 grupob(config-vlan)#exit grupob(config)#interface fastethernet 0/4 grupob(config-if)#switchport access vlan 4 grupob(config-if)#exit grupob(config)#interface fastethernet 0/1

grupob(config-if)#switcport mode trunk ^ % Invalid input detected at '^' marker.

grupob(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up grupob(config-if)#switchport trunk allow vlan all grupob(config-if)#exit grupob(config)#eixt ^ % Invalid input detected at '^' marker.

grupob(config)#exit %SYS-5-CONFIG_I: Configured from console by console grupob#copy runnig-config startup.config ^ % Invalid input detected at '^' marker.

grupob#copy running-config startup.config ^ % Invalid input detected at '^' marker.

grupob#copy running-config startup-config Destination filename [startup-config]?

Building configuration... [OK] grupob#

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fastethernet 0/0.1 Router(config-subif)#encapsulation dot1q 2 Router(config-subif)#ip address 192.168.1.1 255.255.255.0 Router(config-subif)#exit Router(config)#interface fastethernet 0/0.2 Router(config-subif)#encapsulation dot1q 3 Router(config-subif)#ip address 192.168.2.1 255.255.255.0 Router(config-subif)#exit

Router(config)#interface fastethernet 0/0.3 Router(config-subif)#encapsulation dot1q 4 Router(config-subif)#ip address 192.168.3.1 255.255.255.0 Router(config-subif)#exit Router(config)#interface fastethernet 0/0 Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up Router(config-if)#exit Router(config)#exit %SYS-5-CONFIG_I: Configured from console by console Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]

Вам также может понравиться