You are on page 1of 16

Device  

Interface  IP Address  Subnet Mask  Default Gateway 


(Hostname) 

S1  VLAN 99  192.168.169.11  255.255.255.248 N/A 

S2  VLAN 99  192.168.169.12  255.255.255.0  N/A 

S3  VLAN 99  192.168.169. 13 255.255.255.0 N/A 

PC1  NIC  192.168.10.21 255.255.255.0 192.168.10.1 

PC2  NIC  192.168.20.22 255.255.255.0 192. 168.20.1 

PC3  NIC  192.168.30.23 255.255.255.0 192. 168.30.1 

PC4  NIC  192.168.10.24 255.255.255.0 192. 168.10.1 

PC5  NIC  192.168.20.25 255.255.255.0 192. 168.20.1 

PC6  NIC  192.168.30.26 255.255.255.0 192. 168.30.1 

Ports  Assignment  Network 

Fa0/1 – 0/5  802.1q Trunks (Native VLAN 99)  192.168.99.0 /24 

Fa0/6 – 0/10  VLAN 30 – Guest (Default)  192.168.30.0 /24 

Fa0/11 – 0/17  VLAN 10 – Faculty/Staff  192.168.10.0 /24 

Fa0/18 – 0/24  VLAN 20 – Students  192.168.20.0 /24 

Task 2: Perform Basic Switch Configurations

Step 1: Configure the switches according to the following guidelines

• Configure the switch hostname.


• Configure an EXEC mode password of class.
Step 4 Create Vlans
Show Vlan Brief

Assign Switch ports:


show Vlan Brief:

Show vlan id

switch[1]#conf
switch[1]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[1](config)#int vlan 99
switch[1](config-if)#ip 192.168.169.11 255.255.255.0
^
% Invalid input detected at '^' marker.
switch[1](config-if)#ip address 192.168.10.11 255.255.255.0
switch[1](config-if)#exit
switch[1](config)#wr
^
% Invalid input dete
switch[1](config)#exit
switch[1]#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
switch[1]#

switch[3]#
switch[3]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[3](config)#interface vlan 99
switch[3](config-if)#ip address 192.168.169.11 255.255.255.0
switch[3](config-if)#end
switch[3]#
%SYS-5-CONFIG_I: Configured from console by console

switch[3]#wr
Building configuration...
[OK]
switch[3]#

switch[2]>enable
Password:
switch[2]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[2](config)#interface vlan 99
switch[2](config-if)#ip address 192.168.169.11 255.255.255.0
switch[2](config-if)#end
switch[2]#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
switch[2]#

Change native Vlan

For s1
switch[1]>enable
Password:
switch[1]#conf
switch[1]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[1](config)#iterface ra fan 0/1-5
^
% Invalid input detected at '^' marker.
switch[1](config)#switchport t
switch[1](config)#switchport tr
switch[1](config)#interface ra fan 0/1-5
^
% Invalid input detected at '^' marker.
switch[1](config)#interface range fa 0/1-5
switch[1](config-if-range)#sw mo tr

switch[1](config-if-range)#
%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

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

switch[1](config-if-range)#sw tr native vl 99
switch[1](config-if-range)#end
switch[1]#
%SYS-5-CONFIG_I: Configured from console by console

switch[1]#
switch[1]#w
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (99), with
switch[2] FastEthernet0/1 (1).

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2 (99), with


switch[3] FastEthernet0/2 (1).
r
Building configuration...
[OK]
switch[1]#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (99), with
switch[2] FastEthernet0/1 (1).
%IP-4-DUPADDR: Duplicate address 192.168.169.11 on Vlan99, sourced by 000C.859E.C801

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2 (99), with


switch[3] FastEthernet0/2 (1).
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 1 on FastEthernet0/1
VLAN99.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0099. Inconsistent local vlan.

%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 1 on FastEthernet0/2


VLAN99.

%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0099. Inconsistent local vlan.

switch[1]#

for s2
switch[2]>enable
Password:
switch[2]#con
switch[2]#conf
switch[2]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[2](config)#int ra fa 0/1-5
switch[2](config-if-range)#sw tr native vlan 99
switch[2](config-if-range)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on
VLAN0099. Port consistency restored.

%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0001. Port consistency


restored.

no sh
switch[2](config-if-range)#
switch[2](config-if-range)#end
switch[2]#
%SYS-5-CONFIG_I: Configured from console by console
wr
Building configuration...
[OK]
switch[2]#

for s3
switch[3]>
switch[3]>enable
Password:
switch[3]#configure t
Enter configuration commands, one per line. End with CNTL/Z.
switch[3](config)#int ra fa 0/1-5
switch[3](config-if-range)#sw tr vlan 99
^
% Invalid input detected at '^' marker.
switch[3](config-if-range)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2 (1), with
switch[1] FastEthernet0/2 (99).

switch[3](config-if-range)#sw tr native vlan 99


switch[3](config-if-range)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2 on
VLAN0099. Port consistency restored.

%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2 on VLAN0001. Port consistency


restored.

no sh
switch[3](config-if-range)#end
switch[3]#
%SYS-5-CONFIG_I: Configured from console by console

switch[3]#wr
Building configuration...
[OK]
switch[3]#

Show interfaces trunk

S1

switch[1]#show i
switch[1]#show in
switch[1]#show interfaces tr
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 99
Fa0/2 on 802.1q trunking 99

Port Vlans allowed on trunk


Fa0/1 1-1005
Fa0/2 1-1005

Port Vlans allowed and active in management domain


Fa0/1 1,10,20,30,99
Fa0/2 1,10,20,30,99

Port Vlans in spanning tree forwarding state and not pruned


Fa0/1 1,10,20,30,99
Fa0/2 1,10,20,30,99
switch[1]#

ping same vlans before configurating router :

Ping different vlans

So only router can link vlans together

Router configuration:

Router#configu
Router#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#interface gi 0/0/0.10
Router(config-subif)#no ip address 192.168.169.11 255.255.255.0
Router(config-subif)#ip address 192.168.10.11
% Incomplete command.
Router(config-subif)#ip address 192.168.10.11 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.20
Router(config-subif)#no ip address 192.168.169.1
% Incomplete command.
Router(config-subif)#ip address 192.168.20.1
% Incomplete command.
Router(config-subif)#ip address 192.168.20.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)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.10
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.30
Router(config-subif)#ip ad
Router(config-subif)#ip address 192.168.30.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)#no sh
Router(config-subif)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#shoe ip
Router#show i
Router#show ip
Router#show ip
% Incomplete command.
Router#exit

Router con0 is now available


Press RETURN to get started.

Router>
Router>
Router>show
Router>show i
Router>show ip
Router>show ip ?
arp IP ARP table
bgp BGP information
dhcp Show items in the DHCP database
eigrp IP-EIGRP show commands
interface IP interface status and configuration
nbar Network-Based Application Recognition
ospf OSPF information
protocols IP routing protocol process parameters and statistics
rip IP RIP show commands
route IP routing table
ssh Information on SSH
Router>show ip in
Router>show ip interface
GigabitEthernet0/0/0 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/0.10 is up, line protocol is up (connected)
Internet address is 192.168.10.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
Input features: MCI Check
WCCP Redirect outbound is disabled
WCCP Redirect inbound is disabled
WCCP Redirect exclude is disabled
GigabitEthernet0/0/0.20 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/0.30 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/1 is administratively down, line protocol is down (disabled)
Internet protocol processing disabled
GigabitEthernet0/0/2 is administratively down, line protocol is down (disabled)
Internet protocol processing disabled
Vlan1 is administratively down, line protocol is down
Internet protocol processing disabled

I had a problem with vlan 20 & 30 in the r so I used show ip int & ive noticed that I didn’t applied encapsulation 1dot1Q

So I activated it ass the following :

Router#configu
Router#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#interface gi 0/0/0.10
Router(config-subif)#no ip address 192.168.169.11 255.255.255.0
Router(config-subif)#ip address 192.168.10.11
% Incomplete command.
Router(config-subif)#ip address 192.168.10.11 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.20
Router(config-subif)#no ip address 192.168.169.1
% Incomplete command.
Router(config-subif)#ip address 192.168.20.1
% Incomplete command.
Router(config-subif)#ip address 192.168.20.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)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.10
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#exit
Router(config)#int gi 0/0/0.30
Router(config-subif)#ip ad
Router(config-subif)#ip address 192.168.30.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)#no sh
Router(config-subif)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#shoe ip
Router#show i
Router#show ip
Router#show ip
% Incomplete command.
Router#exit

Router con0 is now available


Press RETURN to get started.

Router>
Router>
Router>show
Router>show i
Router>show ip
Router>show ip ?
arp IP ARP table
bgp BGP information
dhcp Show items in the DHCP database
eigrp IP-EIGRP show commands
interface IP interface status and configuration
nbar Network-Based Application Recognition
ospf OSPF information
protocols IP routing protocol process parameters and statistics
rip IP RIP show commands
route IP routing table
ssh Information on SSH
Router>show ip in
Router>show ip interface
GigabitEthernet0/0/0 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/0.10 is up, line protocol is up (connected)
Internet address is 192.168.10.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
Input features: MCI Check
WCCP Redirect outbound is disabled
WCCP Redirect inbound is disabled
WCCP Redirect exclude is disabled
GigabitEthernet0/0/0.20 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/0.30 is up, line protocol is up (connected)
Internet protocol processing disabled
GigabitEthernet0/0/1 is administratively down, line protocol is down (disabled)
Internet protocol processing disabled
GigabitEthernet0/0/2 is administratively down, line protocol is down (disabled)
Internet protocol processing disabled
Vlan1 is administratively down, line protocol is down
Internet protocol processing disabled

You might also like