Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //tworzenie vlan switch
- configure terminal
- vlan 30
- name Nazwa1
- vlan 40
- name Nazwa2
- vlan 50
- name Nazwa3
- end
- //dodawanie portow do vlan switch
- configure terminal
- interface fastethernet 0/1
- switchport mode access
- switchport access vlan 30
- interface fastethernet 1/1
- switchport mode access
- switchport access vlan 40
- interface fastethernet 2/1
- switchport mode access
- switchport access vlan 50
- interface fastethernet 3/1
- switchport mode access
- switchport access vlan 30
- interface fastethernet 4/1
- switchport mode access
- switchport access vlan 40
- interface fastethernet 5/1
- switchport mode access
- switchport access vlan 50
- interface fastethernet 6/1
- switchport mode access
- switchport access vlan 30
- interface fastethernet 7/1
- switchport mode access
- switchport access vlan 40
- interface fastethernet 8/1
- switchport mode access
- switchport access vlan 50
- end
- //dodawanie adresow router
- configure terminal
- interface FastEthernet0/0
- no shutdown
- ip address 172.17.0.37 255.255.255.0
- interface fastethernet1/0
- no shutdown
- ip address 172.17.0.38 255.255.255.0
- interface fastethernet2/0
- no shutdown
- ip address 172.17.0.39 255.255.255.0
- end
- //konfigureacja interfejsow routera - error
- configure terminal
- interface FastEthernet0/0
- no shutdown
- ip address 172.17.0.1 255.255.255.0
- interface FastEthernet1/0
- no shutdown
- ip address 172.17.1.1 255.255.255.0
- interface FastEthernet2/0
- no shutdown
- ip address 172.17.2.1 255.255.255.0
- end
- //trunk router
- configure terminal
- interface fastEthernet0/0.3
- encapsulation dot1Q 30
- ip address 172.17.0.1 255.255.255.0
- interface fastEthernet0/0.4
- encapsulation dot1Q 40
- ip address 172.17.1.1 255.255.255.0
- interface fastEthernet0/0.5
- encapsulation dot1Q 50
- ip address 172.17.2.1 255.255.255.0
- //trunk switch
- configure terminal
- interface fastEthernet 0/1
- switchport mode trunk
- no shutdown
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement