0% found this document useful (0 votes)
176 views8 pages

INTVLAN

The document describes configurations made on a switch and router to set up VLANs and subinterfaces for various departments. On the switch, VLANs were created for Admin, Sales, Accounts, and Devices. Trunk ports were configured and ports were assigned to the appropriate VLANs. On the router, subinterfaces were configured on Fa0/0 with IP addresses in each VLAN's subnet and descriptions identifying them. The router and switch VLAN configurations were completed.

Uploaded by

AshanDewasinghe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views8 pages

INTVLAN

The document describes configurations made on a switch and router to set up VLANs and subinterfaces for various departments. On the switch, VLANs were created for Admin, Sales, Accounts, and Devices. Trunk ports were configured and ports were assigned to the appropriate VLANs. On the router, subinterfaces were configured on Fa0/0 with IP addresses in each VLAN's subnet and descriptions identifying them. The router and switch VLAN configurations were completed.

Uploaded by

AshanDewasinghe
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

SWITHC 0

Switch>en Switch#vl Switch#vlan da Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#vlan 2 name Admin VLAN 2 added: Name: Admin Switch(vlan)#vlan 3 name Sales VLAN 3 added: Name: Sales Switch(vlan)#vlan 4 name Accounts VLAN 4 added: Name: Accounts Switch(vlan)#vlan 5 name Devices VLAN 5 added: Name: Devices Switch(vlan)#exit APPLY completed. Exiting.... Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vtp do Switch(config)#vtp domain cisco Changing VTP domain name from NULL to cisco Switch(config)#in Switch(config)#interface fa Switch(config)#interface fastEthernet 0/1 Switch(config-if)#sw Switch(config-if)#switchport mo Switch(config-if)#switchport mode tr Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t o down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t o up Switch(config-if)#vtp Switch(config-if)#vtp pass Switch(config-if)#vtp pas Switch(config-if)#exit Switch(config)#vt Switch(config)#vtp pa Switch(config)#vtp password class Setting device VLAN database password to class Switch(config)#int Switch(config)#interface fa Switch(config)#interface fastEthernet 0/2 Switch(config-if)#sw Switch(config-if)#switchport mo Switch(config-if)#switchport mode ac

Switch(config-if)#switchport mode access Switch(config-if)#sw Switch(config-if)#switchport ac Switch(config-if)#switchport access v Switch(config-if)#switchport access vlan 2 Switch(config-if)#in Switch(config-if)#int Switch(config-if)#int fa Switch(config-if)#int fa 0/3 Switch(config-if)#sw Switch(config-if)#switchport mo Switch(config-if)#switchport mode acc Switch(config-if)#switchport mode access Switch(config-if)#sw Switch(config-if)#switchport ac Switch(config-if)#switchport access v Switch(config-if)#switchport access vlan 3 Switch(config-if)#int fa 0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t o up

Switch con0 is now available

Press RETURN to get started.

Switch>en Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int Switch(config)#interface fa

Switch(config)#interface fastEthernet 0/4 Switch(config-if)#swi Switch(config-if)#switchport mo Switch(config-if)#switchport mode tr Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t o down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t o up Switch(config-if)#^Z Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#

________________________________________________________________________________ ___________________________________________________________________________ SWITCH 1 Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vt Switch(config)#vtp pas Switch(config)#vtp password class Setting device VLAN database password to class Switch(config)#vtp Switch(config)#vtp mo Switch(config)#vtp mode cl Switch(config)#vtp mode client Setting device to VTP CLIENT mode. Switch(config)#in Switch(config)#interface fa Switch(config)#interface fastEthernet 0/2 Switch(config-if)#sw Switch(config-if)#switchport mo Switch(config-if)#switchport mode ac Switch(config-if)#switchport mode access Switch(config-if)#sw Switch(config-if)#switchport ac Switch(config-if)#switchport access v Switch(config-if)#switchport access vlan 4 Switch(config-if)#interface fastEthernet 0/3 Switch(config-if)#sw Switch(config-if)#switchport acc Switch(config-if)#switchport mo Switch(config-if)#switchport mode acc Switch(config-if)#switchport mode access Switch(config-if)#sw Switch(config-if)#switchport acc Switch(config-if)#switchport access % Incomplete command.

Switch(config-if)#switchport access vl Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#do show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7 Fa0/8, Fa0/9, Fa0/10, Fa0/11 Fa0/12, Fa0/13, Fa0/14, Fa0/15 Fa0/16, Fa0/17, Fa0/18, Fa0/19 Fa0/20, Fa0/21, Fa0/22, Fa0/23 Fa0/24, Gig1/1, Gig1/2 2 Admin active Fa0/3 3 Sales active 4 Accounts active Fa0/2 5 Devices active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type ---- ----1 enet 2 enet --More-SAID ---------100001 100002 MTU ----1500 1500 Parent -----RingNo -----BridgeNo -------Stp ---BrdgMode -------Trans1 -----0 0 Trans2 -----0 0

Switch con0 is now available

Press RETURN to get started.

3 4 5 1002 1003 1004

enet enet enet fddi tr fdnet

100003 100004 100005 101002 101003 101004

1500 1500 1500 1500 1500 1500

ieee

0 0 0 0 0 0

0 0 0 0 0 0

1005 trnet 101005

1500 -

ibm -

Remote SPAN VLANs -----------------------------------------------------------------------------Primary Secondary Type Ports ------- --------- ----------------- -----------------------------------------Switch> ________________________________________________________________________________ ___________________________________________________________________________ ROUTER 0 Router(config-subif)#encapsulation do Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#de Router(config-subif)#des Router(config-subif)#description Admin Router(config-subif)#ip ad Router(config-subif)#ip address 192.168.1.1 255.255.255.224 Router(config-subif)#ip Router(config-subif)#ip hel Router(config-subif)#ip help Router(config-subif)#ip helper-address 192.168.1.100 Router(config-subif)#exit Router(config)#do sho Router(config)#do show Router(config)#do show ip int Router(config)#do show ip int FastEthernet0/0 is up, line protocol is up (connected) Internet protocol processing disabled Router(config)#inte Router(config)#interface fa Router(config)#interface fastEthernet 0/0.3 Router(config-subif)# %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-subif)#encapsulation dot1Q 3 Router(config-subif)#des Router(config-subif)#description Sales Router(config-subif)#ip ad Router(config-subif)#ip address 192.168.1.33 255.255.255.224 Router(config-subif)#ip help % Incomplete command. Router(config-subif)#ip help % Incomplete command. Router(config-subif)#ip helpe % Incomplete command. Router(config-subif)#ip helper Router(config-subif)#ip helperRouter(config-subif)#ip helper-address 192.168.1.100

Router(config-subif)#exit Router(config)#in Router(config)#interface fa Router(config)#interface fastEthernet 0/0.4 %LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.4, changed state to up Router(config-subif)#en Router(config-subif)#encapsulation do Router(config-subif)#encapsulation dot1Q 4 Router(config-subif)#de Router(config-subif)#des Router(config-subif)#description Accounts Router(config-subif)#ip add Router(config-subif)#ip address 192.168.1.65 255.255.255.224 Router(config-subif)#ip helpre - ad Router(config-subif)#ip helper Router(config-subif)#ip helper-address 192.168.1.100 Router(config-subif)#exit Router(config)#inT Router(config)#inTerface fa Router(config)#inTerface fastEthernet 0/0.5 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.5, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.5, changed state to up Router(config-subif)#en Router(config-subif)#encapsulation do Router(config-subif)#encapsulation dot1Q 5 Router(config-subif)#des Router(config-subif)#description Devices Router(config-subif)#aip add Router(config-subif)#ip add Router(config-subif)#ip address 192.168.1.129 255.255.255.224 Router(config-subif)# Router(config-subif)#exit Router(config)#do show ru Router(config)#do show run Building configuration... Current configuration : 1050 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router ! ! ! ! ! ! ! !

! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.2 description Admin encapsulation dot1Q 2 ip address 192.168.1.1 255.255.255.224 ip helper-address 192.168.1.100 ! interface FastEthernet0/0.3 description Sales encapsulation dot1Q 3 ip address 192.168.1.33 255.255.255.224 ip helper-address 192.168.1.100 ! interface FastEthernet0/0.4 description Accounts encapsulation dot1Q 4 ip address 192.168.1.65 255.255.255.224 ip helper-address 192.168.1.100 ! interface FastEthernet0/0.5 description Devices encapsulation dot1Q 5 ip address 192.168.1.129 255.255.255.224 ! interface FastEthernet0/1 description DHCP_Server ip address 192.168.1.97 255.255.255.224 duplex auto speed auto ! interface Vlan1 no ip address shutdown ! ip classless ! ! ! no cdp run ! ! ! ! ! line con 0 line vty 0 4

login ! ! ! end Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router(config)# Router# ________________________________________________________________________________ ___________________________________________________________________________

You might also like