cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6647
Views
0
Helpful
4
Replies

can't ping server from the switch is is connected to

gavin han
Level 1
Level 1

Hi,

I've a server sonnected as follow:

sw(fa0/1)<-->server1

vlan 1 - 192.168.2.251/24   <---on switch

server: 192.168.2.6, mask: 255.255.255.0 default gateway: 192.168.2.251

sw fa0/1 config:

spanning-tree portfast

no shut

fa0/1 is up/up on the switch but still I can't ping the server from the switch and can't ping vlan 1 ip address from the server.

please advise what the issue could be and how could i resolve it.

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Is vlan 1 in up and up mode?

if it is add this command to inter fa0/1

switchport access vlan 1

do a "no sh" under vlan 1

If none of these works, you can simply add the IP address 192.168.2.251/24 to the physical interface (no vlan) and test again

don't forget to add "no switchport" to fa0/1

HTH

Reza

Hi,

If you link a pc directly to your server with PC's firewall disabled can you ping ?

By default all ports belong to vlan1 and DTP is enabled and if trunking is not configured on server then automatically this port will be an access

port belonging to vlan1 and so int vlan1 should be up up unless you manually shut it down.I think we are missing informations to say that this  is a configuration problem on the switch.

Can you post output  of sh int  fx/x status and sh int fx/x switchport, sh ip int br | in Vlan and also sh arp.

Regards.

Don't forget to rate helpful posts.

Petar Milanov
Level 1
Level 1

Hi,

You probably missed to configure fa0/1 to be part of vlan 1

#interface fa 0/1

     #switchport mode access

     #switchport access vlan 1

And also check if your vlan 1 interface status shows UP / UP

Regards

I think, switchport is by default part of vlan1, if a single port is

enabled in this vlan, then interface vlan1 should be up/up. Before looking into any ARP issues ,

I would make sure that your server does not have Firewall enabled and there is no blocking involved at interface vlan1. Start with only one IP on the box, and firewall disabled first.