cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1595
Views
2
Helpful
10
Replies

Router Cisco 1941 Series/Switch Cisco Catalyst 2960-X SERIES config

dwtdlt3000
Level 1
Level 1

I need help with my switch, my router has internet. but i'm trying to get internet to my switch now. 

if i drop my Show Running Config, Could somebody help me with my Issue Please?

10 Replies 10

dwtdlt3000
Level 1
Level 1

Router Cisco 1941 Series   Switch CISCO CATALYST 2960-X SERIES

Current configuration : 2427 bytes
!
! Last configuration change at 20:09:42 CST Wed Nov 8 2023
! NVRAM config last updated at 20:11:51 CST Wed Nov 8 2023
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Panda-Bear
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 XXXXXXXXXXXXXXXXXXUNeD.
!
no aaa new-model
clock timezone CST -5 0
clock summer-time CDT recurring
clock calendar-valid
!
!
!
!
!
!
!
!
!
!
!
ip dhcp excluded-address 192.168.0.1 192.168.0.20
ip dhcp excluded-address 192.168.100.1 192.168.100.12
!
ip dhcp pool Home_Test
network 192.168.100.0 255.255.255.0
dns-server 75.75.75.75
default-router 192.168.0.2
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
cts logging verbose
!
!
license udi pid CISCO1941/K9 sn FTX175182WX
!
!
username Darrell privilege 15 secret 5 XXXXXXXXXXllp7y.
!
redundancy
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.0.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed 1000
!
interface GigabitEthernet0/1
ip address 192.168.100.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/0/0
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip route 10.0.10.0 255.255.255.0 192.168.100.2
ip route 10.0.20.0 255.255.255.0 192.168.100.2
ip route 10.0.30.0 255.255.255.0 192.168.100.2
ip route 10.0.40.0 255.255.255.0 192.168.100.2
!
!
!
access-list 1 permit 192.168.100.0 0.0.0.255
access-list 1 permit 10.0.10.0 0.0.0.255
access-list 1 permit 10.0.20.0 0.0.0.255
access-list 1 permit 10.0.30.0 0.0.0.255
access-list 1 permit 10.0.40.0 0.0.0.255
!
control-plane
!
!
!
line con 0
password 7 XXXXXXXXXXXXXXXXX5345
logging synchronous
login
line aux 0
logging synchronous
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 XXXXXXXXXXXXXXX766
no login
no exec
transport input ssh
!
scheduler allocate 20000 1000
!
!
pnp profile pnp_profile
transport http host devicehelper.cisco.com port 80
end

dwtdlt3000
Level 1
Level 1

Cisco Catalyst 2960 x

Current configuration : 4971 bytes
!
! Last configuration change at 19:17:35 UTC Tue Feb 22 2000
! NVRAM config last updated at 19:22:40 UTC Tue Feb 22 2000
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Waynes-Word2.0
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
switch 1 provision ws-c2960x-48fps-l
!
!
!
!
ip routing
!
ip dhcp pool 10
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 75.75.75.75
!
ip dhcp pool 20
network 10.0.20.0 255.255.255.0
default-router 10.0.20.1
dns-server 75.75.75.75
!
ip dhcp pool 30
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
dns-server 75.75.75.75
!
ip dhcp pool 40
network 10.0.40.0 255.255.255.0
default-router 10.0.40.1
dns-server 75.75.75.75
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-2336641152
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2336641152
revocation-check none
rsakeypair TP-self-signed-2336641152
!
!
crypto pki certificate chain TP-self-signed-2336641152
certificate self-signed 01
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
no ip route-cache
shutdown
!
interface GigabitEthernet1/0/1
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet1/0/2
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet1/0/3
!
interface GigabitEthernet1/0/4
!
interface GigabitEthernet1/0/5
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface GigabitEthernet1/0/29
!
interface GigabitEthernet1/0/30
!
interface GigabitEthernet1/0/31
!
interface GigabitEthernet1/0/32
!
interface GigabitEthernet1/0/33
!
interface GigabitEthernet1/0/34
!
interface GigabitEthernet1/0/35
!
interface GigabitEthernet1/0/36
!
interface GigabitEthernet1/0/37
!
interface GigabitEthernet1/0/38
!
interface GigabitEthernet1/0/39
!
interface GigabitEthernet1/0/40
!
interface GigabitEthernet1/0/41
!
interface GigabitEthernet1/0/42
!
interface GigabitEthernet1/0/43
!
interface GigabitEthernet1/0/44
!
interface GigabitEthernet1/0/45
!
interface GigabitEthernet1/0/46
!
interface GigabitEthernet1/0/47
!
interface GigabitEthernet1/0/48
switchport mode access
!
interface GigabitEthernet1/0/49
!
interface GigabitEthernet1/0/50
!
interface GigabitEthernet1/0/51
!
interface GigabitEthernet1/0/52
!
interface Vlan1
ip address 192.168.100.2 255.255.255.0
!
interface Vlan10
ip address 10.0.10.1 255.255.255.0
!
interface Vlan20
ip address 10.0.20.1 255.255.255.0
!
interface Vlan30
ip address 10.0.30.1 255.255.255.0
!
interface Vlan40
ip address 10.0.40.1 255.255.255.0
!
ip http server
ip http secure-server
!
!
!
!
line con 0
password 7 XXXXXXXXXXXXXXXXXXXX4754
logging synchronous
login
line vty 0 4
login
line vty 5 15
login

M02@rt37
VIP
VIP

Hello @dwtdlt3000,

You have activate "ip routing" on your Switch but ther's no ip route..... that's the problem.

But, I suggest you to reconsider and adapt the Switch and the Router's configuration:

 

Create a ROAS on Router side ; meaning a sub-interface for interface GigabitEthernet0/1:

interface GigabitEthernet0/1
description --ROAS-SWITCH
no shut
!
interface GigabitEthernet0/1.10
encaspulation dot1q 10
ip address 10.0.10.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.20
encaspulation dot1q 20
ip address 10.0.20.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.30
encaspulation dot1q 30
ip address 10.0.30.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.40
encaspulation dot1q 40
ip address 10.0.40.1 255.255.255
ip nat inside
!

ROAS: https://study-ccna.com/configure-roas/

 

On switch side, the interface facing Router's Gi0/1 interface, configure a traditionnal TRUNK:

interface GigabitEthernet1/0/48
switchport mode trunk
switchport encapsulation dot1q
switchport trunk allowed vlan 10,20,30,40
!

If you want "access to Internet" from the switch create an interface vlan 10 as example and add IP address. Test a pinf towards 8.8.8.8 with source <IP-interface-vlan-10>

=> No more "routing" needed on your Switch, acting as a traditional "L2" Switch.

 

Delete the DHCP server on Switch and confgure it on the Router

ip dhcp pool 10
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 75.75.75.75
!
ip dhcp pool 20
network 10.0.20.0 255.255.255.0
default-router 10.0.20.1
dns-server 75.75.75.75
!
ip dhcp pool 30
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
dns-server 75.75.75.75
!
ip dhcp pool 40
network 10.0.40.0 255.255.255.0
default-router 10.0.40.1
dns-server 75.75.75.75

 

=>Your LAN should be able to access to Internet after that.

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I will Reply when i get a chance to add your suggestion, been a BUSY Weekend.

Thank you for your help!

this helped out, i haven't messed with anything in a couple days but i did add the ip route to the switch.

 

the Vlans still didn't do what i needed, but i will reply back to this post when i actually start messing with the devices again.

 

got some vouchers expiring soon, so i'm gone see where my progress is.

dec 4 my vouchers expire.

Reza Sharifi
Hall of Fame
Hall of Fame

For VLANs 20, 30. 40. etc.. to have access to the Internet, the switch needs a default route pointing to the IP address of the router.

ip route 0.0.0.0 0.0.0.0 192.168.100.1

HTH

I will Reply when i get a chance to add your suggestion, been a BUSY Weekend.

Thank you for your help!

this helped out, i haven't messed with anything in a couple days but i did add the ip route to the switch.

 

the Vlans still didn't do what i needed, but i will reply back to this post when i actually start messing with the devices again.

 

got some vouchers expiring soon, so i'm gone see where my progress is.

dec 4 my vouchers expire.

you need in SW
ip route 0.0.0.0 0.0.0.0 <link connect router to SW>
ip routing 

you need in R 
ip route VLAN's SVI <line connect router to SW>

that what you need

i added the IP Route to the switch.

when i get free time i'm gone work on the svi for the router, i'll let you know when i get a chance to work on it.

thank you for reaching back out to me when you got a free chance as well.