Used switch to ping some popular Web site on Internet , like Google .

Then check it will response or not .

Switch# diag

Switch(diagnostic)# ping www.google.com

PING server 74.125.23.99, 56 bytes of data.

64 bytes from 74.125.23.99: icmp_seq=0, time=60ms

64 bytes from 74.125.23.99: icmp_seq=1, time=50ms

64 bytes from 74.125.23.99: icmp_seq=2, time=60ms

64 bytes from 74.125.23.99: icmp_seq=3, time=70ms

64 bytes from 74.125.23.99: icmp_seq=4, time=70ms

Sent 5 packets, received 5 OK, 0 bad

Switch(diagnostic)#

For above case :  this switch link to internet well

In fail case , user will got response like this :

Switch# diag

Switch(diagnostic)# ping www.google.com

*** Invalid IP address: www.google.com

Switch(diagnostic)#

And if switch can’t connected to internet , Pls check it’s IP and DNS server correct or not !?

If there existed DHCP server , u can enable DHCP , then switch will get IP and DNS server automatic :

Switch# ip

Switch(ip)# dhcp enable

Switch(ip)# sh

Configured      Current

————— —————

DHCP Client          : Enabled

IP Address           : 192.168.3.79    192.168.6.70

IP Mask              : 255.255.255.0   255.255.255.0

IP Gateway           : 0.0.0.0         192.168.6.250

VLAN ID              : 1               1

DNS Server           : 0.0.0.0         168.95.1.1

DNS Proxy            : Disabled