Friday, May 15, 2015

Lab 22 Routing between Vlans

Objective

  • To configure routing between VLANs

Topology


Basic setting

  • PC0 is connected to Fa0/1 on the switch
  • PC1 is connected to Fa0/2 on the switch
  • IPs have been set up
  • The router's Fa0/0 is connected to Fa0/10 on the switch , and the Fa0/10 on the switch is in VLAN 1.
  • The router's Fa1/0 is connected to Fa0/4 on switch, and the Fa0/4 on the switch is in VLAN 2.

Requirments

Configure the router's F0/0 with the Ip 192.168.0.1 255.255.255.0
Configure the router's F1/0 with the Ip 192.168.1.1 255.255.255.0
Con figure the PC1 with IP 192.168.1.2 255.255.255.0 and the default gateway 192.168.1.1

Steps

On PC1


On the Router0

Router>en
Router#confi t
Router(config)#int fastEthernet 0/0
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#int f1/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no sh

PC1 pings PC0

PC>ping 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
Request timed out.
Reply from 192.168.0.2: bytes=32 time=16ms TTL=127
Reply from 192.168.0.2: bytes=32 time=16ms TTL=127
Reply from 192.168.0.2: bytes=32 time=17ms TTL=127
Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 17ms, Average = 16ms
PC>

No comments :

Post a Comment