cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
830
Views
0
Helpful
6
Replies

Can not use router console to ping vlan ip

pofutj
Level 1
Level 1

Hi,

I created a vlan 99, and set an ip to this vlan.

Why can I not use the router console to ping this IP?

 

for exmaple, the vlan info is:

!
interface Vlan99
ip address 10.99.1.1 255.255.255.0
!

 

then in the router, do the command:

#ping 10.99.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.99.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

 

I am sorry that this may be a rookie's question, but any feedback would be appreciated.

Thanks.

 

 

6 Replies 6

Some considerations.  

How is the router connected to this switch? Is it a trunk? 

Can you share the show run from both devices?

 

pofutj
Level 1
Level 1

How is the router connected to this switch? Is it a trunk? 


"create vlan99" and "ping vlan99 ip" are in the same router.

That say, vlan99 is created in the router A, then in the router A to ping vlan99 ip.
All commands are done in one router A.

 

Thanks.

 

 If you are using GNS3, take a look on this simple templates and see if you can fix from that.

I am using a c3725 with a c7200.

 

I can ping fron one to another with no problem.

I think we need to understand this environment better. Several responses have assumed that there are at least 2 devices (a router and a switch). But I believe that the original post indicates a single device ""create vlan99" and "ping vlan99 ip" are in the same router." 

I agree with MHM that the output of show ip interface brief and perhaps of show ip route would be helpful. I suspect that we will find that the vlan interface is not up/up and that this subnet is not in the routing table.

HTH

Rick

show ip interface brief 
check if the SVI of VLAN 99 is UP/UP
it may need L2 port for VLAN to be UP/UP

Hello,

 

The router probably doesn't know how to get to that VLAN IP address, or doesn't have an IP itself.

 

Does your router connected to the switch have an IP associated with one of its interfaces? If not it probably doesnt know that subnet lives off that interface.

 

You could set an IP address on the routers interface that connects to the switch such as:

Router(config-if)# ip address 10.99.1.254 255.255.255.0

 

The switch interface will also need to allow vlan 99 (if you haven't restricted anything allowing all VLANs is default on a trunk interface)

 

 

Hope that helps

 

-David