08-02-2015 07:11 AM - edited 03-08-2019 01:12 AM
Hi
In my network, i am facing issue which I can ping IP for VLAN 2 and VLAN 10, but i could not ping Host in that vlan, in case i get ip from vlan 2 i can't ping host in vlan 10, but i can ping VLAN IP, the design is [Hosts/IP Phones]---Switch----Router. in attachment Router/Switch.
Thank you
Solved! Go to Solution.
08-02-2015 11:49 AM
Hi,
If you want the router to perform as a router-on-a-stick you need to change the default gateway in the DHCP pool to point to the router's IPs ( .2).
From what you sent, the router has the IPs ending with .2 and the switch has IPs ending with .1
For the router to perform the actual routing for the computers you either
change the IP addresses on the router (to .1) and also should be changed for the switch to avoid the duplicate
or
change the DHCP Pool:
p dhcp pool VOICE
default-router 10.10.78.2
Also, the switch does not need multple IP addresses - the IP address is just for management purposes.
Traian
08-02-2015 07:55 AM
Hi,
From you config file I understand that you want to do the routing on the switch; so actually the router is useless in your case.
I assume your switch is L3 capable (please share model and image).
Is ip routing enabled on the switch? I think the command is "ip routing"
Traian
08-02-2015 11:38 AM
Hi
Actually the ip routing not support in switch, and if possible someone explain to us logically why ping from host vlan 2 can't ping host in vlan 10 although router on stick configured as in attachments
Thank you
08-02-2015 11:49 AM
Hi,
If you want the router to perform as a router-on-a-stick you need to change the default gateway in the DHCP pool to point to the router's IPs ( .2).
From what you sent, the router has the IPs ending with .2 and the switch has IPs ending with .1
For the router to perform the actual routing for the computers you either
change the IP addresses on the router (to .1) and also should be changed for the switch to avoid the duplicate
or
change the DHCP Pool:
p dhcp pool VOICE
default-router 10.10.78.2
Also, the switch does not need multple IP addresses - the IP address is just for management purposes.
Traian
08-02-2015 09:14 AM
Hi,
Your switch needs a default gateway or a default route
example:
ip route 0.0.0.0 0.0.0.0 10.10.88.2
or
ip default-gateway 10.10.88.2
Since you are using the router to route between vlan 2 and 10, you only need one SVI on the switch and that is used for management. In above example, I used vlan 2 IP.
HTH
08-02-2015 09:22 AM
I would say that the switch is used to route between VLANs, the router is used for voice....
Traian
!!!SW
ip dhcp pool VOICE
network 10.10.78.0 255.255.255.0
default-router 10.10.78.1
dns-server 8.8.8.8
option 150 ip 10.10.78.2
lease 7
!
ip dhcp pool DATA
network 10.10.88.0 255.255.255.0
default-router 10.10.88.1
dns-server 8.8.8.8
interface Vlan2
ip address 10.10.88.1 255.255.255.0
no ip route-cache
!
interface Vlan10
ip address 10.10.78.1 255.255.255.0
no ip route-cache
RT
interface GigabitEthernet0/1.2
encapsulation dot1Q 2
ip address 10.10.88.2 255.255.255.0
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 10.10.78.2 255.255.255.0
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