12-18-2012 11:25 PM - edited 03-07-2019 10:41 AM
Hi,
I'd like to set Inter-Vlan Routing on my Cisco 881.
Vlan 2: 192.168.0.0 /25
Vlan 3 : 192.168.0.128 /26
Vlan 4: 192.168.0.192 /26
This is my running conf:
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
switchport mode trunk
!
interface FastEthernet4
no ip address
shutdown
duplex auto
speed auto
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.0.1 255.255.255.128
!
interface Vlan3
ip address 192.168.0.129 255.255.255.192
!
interface Vlan4
ip address 192.168.0.193 255.255.255.192
!
!
When I plug a cable on the fa3, the Vlan 2, 3, 4 are up.
I can ping each Vlan IP address from the router but when I try to ping the router from a PC connected to the Fa3 interface, it doesn't work.
Thanks for your answers
Solved! Go to Solution.
12-19-2012 03:47 AM
for PC.....I think u should use acess port of any vlan u created & give default gateway address of that vlan interface
no need to make it Trunk.....
12-19-2012 12:01 AM
I can ping each Vlan IP address from the router but when I try to ping the router from a PC connected to the Fa3 interface, it doesn't work.
What is the IP Address of the PC?
PC firewall enabled?
12-19-2012 01:47 AM
I've tried with 3 different address:
192.168.0.194 / 255.255.255.192 trying to ping 192.168.0.193
192.168.0.130 / 255.255.255.192 trying to ping 192.168.0.129
192.168.0.2 / 255.255.255.128 trying to ping 192.168.0.1
I also disabled the PC firewall because i though it could be the problem but it wasn't.
12-19-2012 02:24 AM
Could you use "ip routing" command on Router?
12-19-2012 02:28 AM
192.168.0.194 / 255.255.255.192 trying to ping 192.168.0.193
192.168.0.130 / 255.255.255.192 trying to ping 192.168.0.129192.168.0.2 / 255.255.255.128 trying to ping 192.168.0.1
You connected the PC to an 802.1Q Trunk port?
interface Vlan2
ip address 192.168.0.1 255.255.255.128
If you configure your PC to, say 192.168.0.2/25 and you assign the port to VLAN 2 (switchport access vlan 2), can you ping 192.168.0.1?
12-19-2012 02:32 AM
Hi,
The problem might be that you're connecting PC to trunk port with default native VLAN 1. But you don't have VLAN 1 ip address assigned. Try to change from trunk to access port like VLAN 2/3/4 and IP address from subnet.
Hope it will help
12-19-2012 02:37 AM
Hi,
I think you shouldnt be connecting a PC to trunk. It should be either in VLAN 2 3 or 4 and the default gateway should be set as the corresponding interface VLAN IP for inter vlan routing to work.
Anup
12-19-2012 03:47 AM
for PC.....I think u should use acess port of any vlan u created & give default gateway address of that vlan interface
no need to make it Trunk.....
12-20-2012 01:19 AM
When I assign vlan 2 to fa2 and vlan 3 to fa1 and I try to ping it works.
So the interVlan routing works.
Thanks for all your answers
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide