05-10-2022 07:54 AM
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.
05-10-2022 07:56 AM
Some considerations.
How is the router connected to this switch? Is it a trunk?
Can you share the show run from both devices?
05-10-2022 08:04 AM - edited 05-10-2022 08:11 AM
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.
05-10-2022 08:45 AM
05-11-2022 07:04 AM
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.
05-10-2022 08:16 AM - edited 05-10-2022 08:35 AM
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
05-10-2022 08:32 AM
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
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