Skip to main content

How to connect inter VLANs?

More
13 years 6 months ago #36861 by apit
2- Router Configuration

//Configure sub interface at router level //


Router(configif)# int f0/0.10
Router(configsubif)# encapsulation dot1q 10
Router(configsubif)# ip address 192.168.1.4 255.255.255.0
Router(configsubif)#
Router(configsubif)# int f0/0.20
Router(configsubif)# encapsulation dot1q 20
Router(configsubif)# ip address 192.168.2.4 255.255.255.0
Router(configsubif)#
Router#
More
13 years 6 months ago #36862 by apit
3- PC configuration

//Configuration for PC1 (Vlan1)
IP: 192.168.1.1
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.4


//Configuration for PC2 (Vlan 2)
IP: 192.168.2.1
Subnet Mask : 255.255.255.0
Default Gateway: 192.168.2.4
More
13 years 6 months ago #36863 by apit
After all 3 step have been done, try to ping between PC1 & PC2.. I think it should work..

Reference::
learningnetwork.cisco.com/thread/2401
Router On Stick
More
13 years 6 months ago #36867 by payeh



Switch(configif)#switchport trunk encapsulation dot1q


This command not working in my router 1841.
still I cant perform ping from between host in different VLANs.
:(
More
13 years 6 months ago #36868 by payeh
Now the prob is solved. I can ping from diff VLAN now. Thanks to apit. :D

I re-do the step from the beginning,looks like I missed some part of configurations before :lol:
More
13 years 6 months ago #36869 by apit
glad to hear that...congratulations payeh...
Time to create page: 0.144 seconds