- Posts: 227
- Thank you received: 0
How to connect inter VLANs?
13 years 6 months ago #36861
by apit
Replied by apit on topic Re: How to connect inter VLANs?
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#
//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#
13 years 6 months ago #36862
by apit
Replied by apit on topic Re: How to connect inter VLANs?
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
//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
13 years 6 months ago #36863
by apit
Replied by apit on topic Re: How to connect inter VLANs?
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
Reference::
learningnetwork.cisco.com/thread/2401
Router On Stick
13 years 6 months ago #36867
by payeh
This command not working in my router 1841.
still I cant perform ping from between host in different VLANs.
Replied by payeh on topic Re: How to connect inter VLANs?
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.
13 years 6 months ago #36868
by payeh
Replied by payeh on topic Re: How to connect inter VLANs?
Now the prob is solved. I can ping from diff VLAN now. Thanks to apit.
I re-do the step from the beginning,looks like I missed some part of configurations before :lol:
I re-do the step from the beginning,looks like I missed some part of configurations before :lol:
Time to create page: 0.144 seconds