cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
431
Views
0
Helpful
2
Replies

Can't ping host on different Vlan

BENSMIR81
Level 1
Level 1

Hi Cisco Team,

i'm new in switching.

i have my Esxi Host on Vlan 10 (192.168.10.x) on my Home network on vlan 1 (192.168.0.x).

my cisco switch is connected to port Fa0/1 with ip address 192.168.0.2

 

from switch i can ping my pc and my esxi host and 8.8.8.8. 

form my pc i can ping switch and access it with ssh.

but i can't ping the ESXI host form my PC.

 

what i'm missing

 

bellow my configuration.

 

 

 

S3550-24#sh run
Building configuration...

Current configuration : 4478 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname S3550-24
!
enable secret 5 $1$R24O$LGgN86Kir7.oNQGEFYk8n.
enable password xxxxx
!
username cisco password 0 xxxxx
no aaa new-model
ip subnet-zero
ip routing
!
!
!
!
crypto pki trustpoint TP-self-signed-2216879744
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2216879744
revocation-check none
rsakeypair TP-self-signed-2216879744
!
!
crypto pki certificate chain TP-self-signed-2216879744
certificate self-signed 01
30820251 308201BA A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 32323136 38373937 3434301E 170D3933 30333031 30303031
30315A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 32313638
37393734 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100C984 F3D28B67 F4737FA4 351EBE70 BC94E819 7E7C2BD0 098291E5 C6119736
D95C14B4 A8788197 D97DA7D1 5004BC6F 419B7545 46C17AB4 6D17B92E BC5C6367
B82840E2 B9C60971 02FC76D9 5FD14AB1 8694086E 2B4C26BB 269F64D3 0C8FD4F6
A9323677 670B2766 F8EA6497 947174F4 AAF228FB 4759806F 75DBD862 7879462E
3B8F0203 010001A3 79307730 0F060355 1D130101 FF040530 030101FF 30240603
551D1104 1D301B82 19533335 35302D32 342E6D6F 756E6972 62656E73 6D69722E
6361301F 0603551D 23041830 168014B6 C1DFA334 A04E8E79 35DD1708 1E9FCF6C
2E7C7C30 1D060355 1D0E0416 0414B6C1 DFA334A0 4E8E7935 DD17081E 9FCF6C2E
7C7C300D 06092A86 4886F70D 01010405 00038181 00A474B1 DFE1A566 96F88BED
3A4080E7 D64DC254 73423AF0 6A89C951 3AFE5975 C11C9F3F 66BC94A5 4C714DBF
48A06590 0371B461 7B141029 97A23F26 08AB94E1 03EB03E6 3A918EDA 070D4F55
844E7970 222C0731 DF146F60 81608EF9 1A67462F 47EBD6F6 5B24FC11 830956E9
A4B6F0F3 BCE156C4 2FB31FF2 A423662E 91ECF345 F4
quit
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport mode dynamic desirable
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport mode dynamic desirable
!
interface FastEthernet0/12
switchport mode dynamic desirable
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport access vlan 10
switchport trunk encapsulation dot1q
switchport trunk native vlan 10
switchport trunk allowed vlan 1
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/24
switchport access vlan 10
switchport trunk encapsulation dot1q
switchport trunk native vlan 10
switchport trunk allowed vlan 1
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
ip address 192.168.0.2 255.255.255.0
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip http server
ip http secure-server
!
!
!
control-plane
!
!
line con 0
line vty 0 4
password xxxx
login local
transport input ssh
line vty 5 15
password xxxxxx
login local
transport input ssh
!
end

 

 

 

 

 

S3550-24#sh ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 192.168.0.2 YES NVRAM up up
Vlan10 192.168.10.1 YES manual up up
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset up up
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset up up
FastEthernet0/24 unassigned YES unset up up
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down

 

 

 

 

2 Replies 2

Hello,

 

it is unclear what your topology looks like. What ports on what devices are your PC and Esxi host connected to ?

balaji.bandi
Hall of Fame
Hall of Fame

If you want your Esxi need to communicated with other VLAN in the network, you need to bring  Fast 0/1 into VLAN 1 or VLAN 10 depends on the requirement, VLAN 2 is not the correct one (that is is the reason not working,)

 

As per your description: it should be VLAN10 ( as mentioned below blue color, also make sure Esxi needs to be in that IP address range.

 

 

 

i have my Esxi Host on Vlan 10 (192.168.10.x) on my Home network on vlan 1 (192.168.0.x).

my cisco switch is connected to port Fa0/1 with ip address 192.168.0.2, from switch i can ping my pc and my esxi host and 8.8.8.8. 

form my pc i can ping switch and access it with ssh.

but i can't ping the ESXI host form my PC.

 

what i'm missing

bellow my configuration.

!
interface FastEthernet0/1
switchport access vlan 2   <<--- change this to VLAN 10
switchport trunk encapsulation dot1q
switchport mode trunk
!

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card