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

S1: hostname S1 ! enable secret class ! no ip domain-lookup !

vtp domain cisco vtp password cisco vtp mode server ! spanning-tree mode rapid-pvst spanning-tree extend system-id spanning-tree vlan 1-1000 priority 24576 ! vlan 10 name faculty-staff ! vlan 20 name students ! vlan 30 name guest ! vlan 99 name management ! interface FastEthernet0/1 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/2 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/3 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/4 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk

! interface FastEthernet0/5 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface range FastEthernet0/6-24 shutdown ! interface GigabitEthernet0/1 shutdown ! interface GigabitEthernet0/2 shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan99 ip address 172.17.99.11 255.255.255.0 no shutdown ! ip default-gateway 172.17.99.1 ! line con 0 exec-timeout 5 0 privilege level logging synchronous password cisco line vty 0 4 password cisco no login lin vty 5 15 no login ! end S2: hostname S2 ! enable secret class ! no ip domain-lookup ! vtp domain cisco vtp password cisco

vtp mode client ! spanning-tree mode rapid-pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! interface FastEthernet0/1 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/2 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/4 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/4 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/5 shutdown ! interface FastEthernet0/6 switchport access vlan 30 switchport mode access ! interface range FastEthernet0/7-10 shutdown ! interface FastEthernet0/11 switchport access vlan 10 switchport mode access ! interface range FastEthernet0/12-17 shutdown ! interface FastEthernet0/18 switchport access vlan 20

switchport mode access ! interface range FastEthernet0/19-24 shutdown ! interface GigabitEthernet0/1 shutdown ! interface GigabitEthernet0/2 shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan99 ip address 172.17.99.12 255.255.255.0 no shutdown ! ip default-gateway 172.17.99.1 ! line con 0 exec-timeout 5 0 password cisco logging synchronous line vty 0 4 password cisco no login line vty 5 15 no login ! end S3: hostname S3 ! enable secret class ! no ip domain-lookup ! vtp domain cisco vtp password cisco vtp mode client ! spanning-tree mode rapid-pvst spanning-tree extend system-id

! vlan internal allocation policy ascneding ! interface FastEthernet0/1 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/2 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/3 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface FastEthernet0/4 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,99 switchport mode trunk ! interface range FastEthernet0/5-24 shutdown ! interface GigabitEthernet0/1 shutdown ! interface GigabitEthernet0/2 shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan99 ip address 172.17.99.13 255.255.255.0 no shutdown ! ip default-gateway 172.17.99.1 ! line con 0 exec-timeout 0 0 password cisco logging synchronous

line cty 0 4 password cisco no login line vty 5 15 no login ! end R1: hostname R1 ! enable secret class ! no ip domain lookup ! interface FastEthernet0/0 no ip address shutdown ! interface FastEthernet0/1 no ip adress no shutdown ! interface FastEthernet0/1.10 encapsulation dot1Q 10 ip address 172.17.19.1 255.255.255.0 ! interface FastEthernet0/1.20 encapsulation dot1Q 20 ipaddress 172.17.20.1 255.255.255.0 ! interface FastEthernet0/1.30 encapsulation dot1Q 30 ip address 172.17.30.1 255.255.255.0 ! interface FastEthernet0/1.99 encapsulation dot1Q 99 ip address 172.17.99.1 255.255.255.0 ! line con 0 exec-timeout 5 0 password cisco logging synchronous line aux 0 line vty 0 4 password cisco

no login ! end

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