04-27-2017 01:35 AM - edited 03-05-2019 08:25 AM
I do not have internet on my 2960G with my vlan's does anyone know how to solve this?
04-27-2017 04:09 AM
Hello,
what is the 2960G connected to ? Post the config of the switch if possible...
04-27-2017 04:41 AM
The 2960G is connected to a cabel modem by this I send my config
Current configuration: 3893 bytes
!
! Last configuration change at 19:33:29 UTC Sat Mar 6 1993 by Tim
!
Version 12.2
Service timestamps debug datetime msec
Service timestamps log datetime msec
No service password-encryption
!
Hostname SW1
!
Boot-start marker
Boot-end marker
!
!
Username Tim privilege 15 secret 5 $ 1 $ dGZ6 $ BZjGHLSCvwlu0qIR4e8sZ /
Username Cursor privilege 15 secret 5 $ 1 $ l3QA $ H5zTno9wLmuK / 9Wp / 1tez.
Username docent privilege 15 secret 5 $ 1 $ eJKA $ 0RYwuol8O2wV8VOP.xTGu.
Username Pcfreak privilege 15 secret 5 $ 1 $ WSLj $ iQ9.ijfVdcc0v7FqmnLqd.
Aaa new model
!
!
!
!
!
!
!
Aaa session id common
System mtu routing 1500
!
Ip dhcp pool vlan1
Import all
Network 192.168.1.0 255.255.255.0
Default router 192.168.1.1
Dns server 192.168.1.1
Lease infinite
!
Ip dhcp pool vlan2
Import all
Network 192.168.2.0 255.255.255.0
Dns server 192.168.2.1
Default router 192.168.2.1
Lease infinite
!
!
Ip domain name SW1.cursist.local
Ip name server 195.130.130.4
Ip name server 195.130.131.4
Ip dhcp server 195.130.240.1
!
!
Crypto pki trustpoint TP-self-signed-1917011072
Enrollment selfsigned
Subject-name cn = IOS-Self-Signed-Certificate-1917011072
Revocation check none
Rsakeypair TP-self-signed-1917011072
!
!
Crypto pki certificate chain TP-self-signed-1917011072
Certificate self-signed 01
3082023E 308201A7 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31393137 30313130 3732301E 170D3933 30333031 30303030
35365A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 39313730
31313037 3230819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100929B 4C49411D 3ED25BA1 06A3C5AD A95D9ECC D568A6DD F42E9F7C 0E92EC1D
B9DD899C 3D27FB2A AA4C20D0 A3230EF9 9D2A3B60 60AC41EC 4A0ED418 64E0F88B
AB0C817D 33E7D7E0 FACAC5FF D35631C7 6A00190E 97B82BE6 13CEB1D4 883CD605
B6E8049A 936FFC1D 218088F0 AE4E7AE9 B7B3DA2F 65685E85 98D196B7 12EAD1C3
B4F10203 010001A3 66306430 0F060355 1D130101 FF040530 030101FF 30110603
551D1104 0A300882 06537769 74636830 1F060355 1D230418 30168014 1D55A84B
32724784 DE4FB645 967FDF2C 05041F6D 301D0603 551D0E04 1604141D 55A84B32
724784DE 4FB64596 7FDF2C05 041F6D30 0D06092A 864886F7 0D010104 05000381
81000E26 9A5445C3 BC4BD0D8 F4BE1E43 CE5DADFF 6240CB57 9B1D7525 B87AA7E2
F665C2FC A8951712 4314854A 9D81D601 E04758AD E811DA40 3D8B63AB 98302A3A
7191AD4D 4DBF657C A1BE9702 9ED9A35D 58DC1E8A A82FDF0C B1D5F797 4A68967F
CFC3036A 3163817C AC292C4E BD015233 4AAC760C EB3637D2 6E171EB8 C6BD5F06 08D3
Quit
!
!
!
Tension-tree fashion pvst
Tension-tree extend system id
!
Vlan internal allocation policy ascending
!
Ip ssh rsa keypair name sw1.cursist.local
Ip ssh version 2
!
!
!
!
!
Interface GigabitEthernet0 / 1
Switchport mode access
!
Interface GigabitEthernet0 / 2
Switchport mode access
!
Interface GigabitEthernet0 / 3
Switchport mode access
!
Interface GigabitEthernet0 / 4
Switchport mode access
!
Interface GigabitEthernet0 / 5
Switchport access vlan 2
Switchport mode access
!
Interface GigabitEthernet0 / 6
Switchport access vlan 2
Switchport mode access
!
Interface GigabitEthernet0 / 7
Switchport access vlan 2
Switchport mode access
!
Interface GigabitEthernet0 / 8
Switchport mode access
Ip dhcp server use subscriber id client id
Ip verify source
!
Interface Vlan1
Ip address 192.168.1.1 255.255.255.0
!
Interface Vlan2
Ip address 192.168.2.1 255.255.255.0
!
Ip default gateway 84.198.240.1
Ip http server
Ip http secure server
!
Ip access-list extended ALCG
Permit ip 192.168.1.0 0.0.0.255 any
Permit ip 192.168.2.0 0.0.0.255 any
Logging esm config
!
!
!
Line con 0
Line vty 0 4
Privilege level 15
Transport input all
Transport output all
Line vty 5 15
Privilege level 15
Transport input all
Transport output all
!
End
04-27-2017 04:53 AM
Hi
You should have connected this switch to a router (or firewall) running a NAT and connected to the Internet Service Provider, in this case your scheme should be a router in a stick design where the router will have configured the gateways for your vlans and connected switch and router with a trunk.
This link could be useful:
https://ciscoskills.net/2012/01/31/configure-router-on-a-stick/
Could you please provide more details about your topology?
:-)
04-27-2017 04:58 AM
The 2960G is connected to an ISP's Cabel modem that is only modem Modem does not have a router function. These get an ISP dhcp, Two vlan's configured as if you can see but can not be on the Internet.
04-27-2017 05:27 AM
Ok thanks
If you are getting IP addresses from the Cable Modem, this device should be providing Internet access, have you rebooted the Cable Modem and making the NAT functions. I am assuming it was working perfectly a time ago and no changes were made at your end, right?
Also check the interface between the switch and cable modem, with show ip interface brief, also try to replace the cable connected between them.
Have you receiving a valid DNS server IPs on your computer? try to change them to 8.8.8.8 and 4.2.2.2 and test again. Also please share a tracert -d www.cisco.com from a PC.
Try to ping the gateway from a PC.
04-27-2017 05:53 AM
This is running-config now running on the 2960g it does not have cabel modem restart but still does not work i changed the dns server to
8.8.8.8 and 4.2.2.2 and nothing yet
Show ip interface letter,
Interface IP Address OK? Method Status Protocol
Vlan1 192.168.1.1 YES NVRAM administratively down down
Vlan2 192.168.2.1 YES NVRAM up up
GigabitEthernet0 / 1 unassigned YES unset up up
GigabitEthernet0 / 2 unassigned YES unset down down
GigabitEthernet0 / 3 unassigned YES unset down down
GigabitEthernet0 / 4 unassigned YES unset down down
GigabitEthernet0 / 5 unassigned YES unset down down
GigabitEthernet0 / 6 unassigned YES unset up up
GigabitEthernet0 / 7 unassigned YES unset down down
GigabitEthernet0/8 unassigned YES unset up up
SW1 #
04-27-2017 07:01 AM
Hi
Could you please ping your gateway and execute the tracert and share the outputs.
Thank you
04-27-2017 07:08 AM
Hello,
I didn't follow the entire thread, but in addition to Julio's remarks, what interface is your cable modem connected to ?
04-27-2017 07:15 AM
The wan interface is the interface
GigabitEthernet0 / 8
Switchport mode access
Ip dhcp server use subscriber id client id
Ip dhcp client client id GigabitEthernet0 / 8
Ip verify source
!
The output
Microsoft Windows [Version 10.0.14393]
(C) 2016 Microsoft Corporation. All rights reserved.
C: \ Users \ Tim Mees> ping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes = 32 hours = 4ms TTL = 255
Reply from 192.168.2.1: bytes = 32 hours <1ms TTL = 255
Reply from 192.168.2.1: bytes = 32 hours = 1ms TTL = 255
Reply from 192.168.2.1: bytes = 32 hours <1ms TTL = 255
Ping statistics for 192.168.2.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 4ms, Average = 1ms
C: \ Users \ Tim Mees> traces 192.168.2.1
Tracing route to 192.168.2.1 over a maximum of 30 hops
1 2 ms 1 ms 6 ms 192.168.2.1
Trace complete.
C: \ Users \ Tim Mees>
04-27-2017 07:27 AM
thanks
please execute this command line on your computer
tracert -d www.cisco.com
and
tracert -d 8.8.8.8
04-27-2017 07:49 AM
Okay no problem
C: \ Users \ Tim Mees> Tracert -d www.cisco.com
Unable to resolve target system name www.cisco.com.
C: \ Users \ Tim Mees>
04-27-2017 07:52 AM
Ok try using the this IP.
tracert -d 8.8.8.8
04-27-2017 08:03 AM
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\Tim Mees>tracert -d 8.8.8.8
Tracing route to 8.8.8.8 over a maximum of 30 hops
1 * * * Request timed out.
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete.
C:\Users\Tim Mees>
04-27-2017 08:07 AM
Hi
Apparently the problem is not on your end, have you escalated the issue with the ISP?
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