VLAN Forwarding – How to Ping Two VLANs in a Network

vlan

enter image description here

hello , i have a question ! how can i connect two pc
in different vlan connection together.it must be refer to loopback test and virtual interface. and which techology can i solve this ploblem!THX

i have try set make pc1 port bind to vlan10 and pc2 port bind to vlan20 , and put them to sw1's interface g1/0/2 and sw2's interface g1/0/2.last make sw1's interface g1/0/1 and sw2's interface g1/0/1 connect use a netline and configure two interface to trunk mode.but havn't konw the answer.THX!

Best Answer

  1. Get sw1 and sw2 and define 2 vlans, vlan10 and vlan20.

  2. Enable ip routing on your L3 switches.

  3. Create on one of they, eg, sw1 2 vlan interfaces and set on it, his respective ip address:

interface vlan 10 ip address x.x.10.x 255.255.255.0

interface vlan 20 ip address x.x.20.x 255.255.255.0

  1. On pc connected to vlan 10 access port, declare it gateway like x.x.10.x, and on pc on vlan20 port, x.x.20.x

  2. Declare link between sw1 and sw2 link trunk port.

With this, your vlan communication will work