Question : VLAN and different IP

Dear experts,

What happens if I have a switch configured with 2 VLAns and I connect to it a PC with an Ip address belonging to another subnet ?

---router-----switch with 2 VLAN-------PC with IP not belonging to any VLAN

Would I be able to ping other devices ?
Would I be able to reply to other devices' ping ?

Urgent, Thanks

Answer : VLAN and different IP

>>Would I be able to ping other devices ?
>>Would I be able to reply to other devices' ping ?

If you connect a pc with the wrong IP for the vlan, the pc will be able to see layer 2 traffic in that vlan which is broadcast and multicast - for instance, an ARP broadcast, or a DHCP broadcast.  The PC will also be broadcasting traffic and the switch will learn of it's MAC address and put it in the forwarding table for the VLAN.

However, all layer 3 traffic will be ignored - obviously no IP traffic will be directed to it, since it's in the wrong vlan - it will receive IP broadcasts on its interface, however it will decide the broadcast is not for it because it will compare the incoming traffic with its own IP address and drop the packets.

It will be unable to reach the default gateway, since it's on a different network, therefore, it will be unable to ping anything on it's own local network, since it's the only device on that local network, and it will be unable to cross IP networks because of the inability to reach a default gateway router.

So your answers are:  No and no.
Random Solutions  
 
programming4us programming4us