p.s. Je to trosku delsi vypis, sry.
----------------------------
Router
Router>en
Router# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in fa0/0.1
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.
Router(config-subif)#encap
% Incomplete command.
Router(config-subif)#encap dot 10
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.2
Router(config-subif)#encap dot 20
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.3
Router(config-subif)#encap dot 30
Router(config-subif)#ip add 192.168.3.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#exit
Router(config)#int fa0/0
Router(config-if)#no shut
%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)#ip route 192.168.1.0 255.255.255.0 fa0/0.1 1
Router(config)#ip route 192.168.2.0 255.255.255.0 fa0/0.2 1
Router(config)#ip route 192.168.3.0 255.255.255.0 fa0/0.3 1
Router(config)#ip dhcp pool Net10
Router(dhcp-config)#net 192.168.1.0 255.255.255.0
Router(dhcp-config)#default 192.168.1.1
Router(dhcp-config)#exit
Router(config)#ip dhcp poolNet20
^
% Invalid input detected at '^' marker.
Router(config)#ip dhcp pool Net20
Router(dhcp-config)#net 192.168.2.0 255.255.255.0
Router(dhcp-config)#default 192.168.2.1
Router(dhcp-config)#exit
Router(config)#ip dhcp pool Net30
Router(dhcp-config)#net 192.168.3.0 255.255.255.0
Router(dhcp-config)#default 192.168.3.1
Router(dhcp-config)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router#wr mem
Building configuration...
[OK]
Router#sh run
Building configuration...
Current configuration : 1031 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 30
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 FastEthernet0/0.1
ip route 192.168.2.0 255.255.255.0 FastEthernet0/0.2
ip route 192.168.3.0 255.255.255.0 FastEthernet0/0.3
!
!
!
!
ip dhcp pool Net10
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip dhcp pool Net20
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
ip dhcp pool Net30
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
!
line con 0
line vty 0 4
login
!
!
end
Router#exit
----------------------------------------
Switch0
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int g1/2
Switch(config-if)#sw mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch(config-if)#exit
Switch(config)#exit
--------------------------------------
Switch1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int g1/2
Switch(config-if)#sw mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 20
% Access VLAN does not exist. Creating vlan 20
Switch(config-if)#exit
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr mem
Building configuration...
[OK]
Switch#exit
----------------------------------
Switch2
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int g1/1
Switch(config-if)#sw mode trunk
Switch(config-if)#sw trunk all vlan 10,20,30
Switch(config-if)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 30
% Access VLAN does not exist. Creating vlan 30
Switch(config-if)#exit
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr mem
Building configuration...
[OK]
Switch#exit

