cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
536
Views
10
Helpful
5
Replies

Host-Vlan Reachability

Toss Leey
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

Traian Bratescu
Level 1
Level 1

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

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

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

Reza Sharifi
Hall of Fame
Hall of Fame

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

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

Review Cisco Networking for a $25 gift card