07-31-2023 05:31 AM
L3 switch has two VLAN's , vlan 1 with ip address of 192.168.1.1 and vlan 10 with ip address of 192.168.10.1 assigned in the switch .
when the cable connected from the device in vlan 10 to the port is removed from the switch
why cant we ping the ip of vlan 10 which is present in the switch from the device connected to vlan 1 ?
can someone give me the reason please...
07-31-2023 05:41 AM
Make sure you enabled routing on the switch
conf t
ip routing
If you did, make sure both hosts have default gateway configured.
07-31-2023 05:50 AM
I have done it all bro
07-31-2023 05:57 AM
If you have ip routing enable, if you have default gateway pointing to the interface vlan on the switch, if you added the vlan to the switch port where the host is connected, the only thing I can think of is firewall on the PC bloking the ping.
07-31-2023 05:45 AM
share
show vlan
show ip in breif
show ip route
07-31-2023 06:04 AM
VLAN 1 - IP Gateway address 192.168.1.1 ; Device IP - 192.168.1.10
VLAN 10 - IP Gateway address 192.168.10.1 ; Device IP - 192.168.10.10
Note: Gateway IP address in assigned in switch
Device in VLAN 1 is connected in port no 01
Device in VLAN 10 is connected in port no 22
my question is , when I remove the cable from the port 01 ,why can't I ping the gateway of VLAN 1 from the device in VLAN 10 ?
07-31-2023 06:06 AM - edited 07-31-2023 06:07 AM
that normal,
VLAN need one port UP to be UP/UP
some switch have no autostate comamnd to override this issue
OR
allow vlan in trunk UP port
https://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/41141-188.html
07-31-2023 05:54 AM
is the vlan 10 in up/up state ? (did you make vlan 10 also?)
show interface vlan 10
07-31-2023 06:13 AM
Vlan10 is up, line protocol is up
Hardware is EtherSVI, address is 4c00.828f.76c1 (bia 4c00.828f.76c1)
Internet address is 192.168.10.1/24
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:01:31, output 00:17:35, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2545 packets input, 263461 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
1495 packets output, 128043 bytes, 0 underruns
0 output errors, 3 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
07-31-2023 06:24 AM
show ip int brief <<- share this
show ip route <<- share this
07-31-2023 06:01 AM - edited 07-31-2023 06:03 AM
....
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