02-24-2019 03:01 AM
Hi,
I having a hardtime configuring my devices to connect through internet, my router reached the isp but switch can't reached. I plugged my pc in switch and no internet access. Here's my configuration.
ISP ADDRESS : 24.50.185.72/29
GATEWAY : 24.50.185.73
ROUTER :
G0/0/0 : 24.50.185.74/29
IP ROUTE TO : 24.50.185.73
G0/0/1 : VLAN 10 10.1.1.1/24
VLAN 20 10.1.2.1/24
VLAN 30 10.1.3.1/24
SWITCH :
G1/0/24 : SWITCHPORT TRUNK
SWITCHPORT ACCESS VLAN 10
G1/0/1 : SWITCHPORT ACCESS VLAN 20
G1/0/2 : SWITCHPORT ACCESS VLAN 30
Still my segment doesn't reached the other segment and no internet.
Thank you in advance.
Solved! Go to Solution.
02-24-2019 11:10 AM
02-24-2019 03:53 AM
Hi,
Your router configuration will be like:
interface G0/0/0
no shut
IP address 24.50.185.74 255.255.255.248
ip nat outside
!
interface G0/0/1
no shut
!
interface GigabitEthernet0/0/1.1
encapsulation dot1Q 10 native
ip address 10.1.1.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
!
interface GigabitEthernet0/0/1.2
encapsulation dot1Q 20
ip address 10.1.2.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
!
interface GigabitEthernet0/0/1.3
encapsulation dot1Q 30
ip address 10.1.3.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
!
!
ip route 0.0.0.0 0.0.0.0 24.50.185.73
!
!
IP access extended NATING
Permit IP 10.1.1.0 0.0.0.255 any
Permit IP 10.1.2.0 0.0.0.255 any
Permit IP 10.1.3.0 0.0.0.255 any
!
!
Ip nat inside source NATING interface GigabitEthernet0/0/0
!
!
Switch Configuration:
VLAN 10
!
VLAN 20
!
VLAN 30
!
Interface G1/0/24
switchport mode trunk
Switchport trunk allowed VLAN 10,20,30
Switchport trunk native vlan 10
no shut
!
!
Connection Details:
A cable is connected between Router port GigabitEthernet0/0/1 and Switch port G1/0/24.
WAN connection terminated on router Port GigabitEthernet0/0/0.
Regards,
Deepak Kumar
02-24-2019 04:40 AM
02-24-2019 04:43 AM
Hi,
Configure your switch like this:
interface VLAN 10
IP address 10.1.1.2 255.255.255.0
Regards,
Deepak Kumar
02-24-2019 04:55 AM
02-24-2019 05:31 AM
Hi,
Sorry I missed one more command on the switch:
ip default-gateway 10.1.1.1
And modify few things on the Router:
no IP access extended NATING
!
IP access extended NATING
deny IP 10.1.0.0 0.0.255.255 10.1.0.0 0.0.255.255
Permit IP 10.1.1.0 0.0.0.255 any
Permit IP 10.1.2.0 0.0.0.255 any
Permit IP 10.1.3.0 0.0.0.255 any
Also, can you share Complete switch model number so we can configure the switch as L3 also if possible?
Regards,
Deepak Kumar
02-24-2019 05:43 AM
02-24-2019 05:45 AM
Hi,
Run Few commands:
config t
!
IP routing
!
Do Show IP route
!
Do Show version
and share output in a notepad file.
Regards,
Deepak Kumar
02-24-2019 05:58 AM
02-24-2019 06:09 AM
Hi,
Change the configuration as below:
interface G0/0/0
no shut
IP address 24.50.185.74 255.255.255.248
ip nat outside
!
interface G0/0/1
no shut
no interface GigabitEthernet0/0/1.1
no interface GigabitEthernet0/0/1.2
no interface GigabitEthernet0/0/1.3
!
interface G0/0/1
IP address 10.10.254.1 255.255.255.0
IP nat inside
ip tcp adjust-mss 1452
!
ip route 0.0.0.0 0.0.0.0 24.50.185.73
ip route 10.1.0.0 0.0.255.255 10.10.254.2
!
no IP access extended NATING
!
IP access extended NATING
Permit IP 10.1.1.0 0.0.0.255 any
Permit IP 10.1.2.0 0.0.0.255 any
Permit IP 10.1.3.0 0.0.0.255 any
Permit ip 10.10.254.0 0.0.0.255 any
!
Ip nat inside source NATING interface GigabitEthernet0/0/0
!
!
Switch Configuration:
VLAN 10
!
VLAN 20
!
VLAN 30
!
VLAN 50
!
interface VLan 50
IP address 10.10.254.2 255.255.255.0
!
default Interface G1/0/24
!
Interface G1/0/24
switchport mode access
switchport mode access vlan 50
no shut
!
interface VLAN 10
iP address 10.1.1.1 255.255.255.0
!
interface VLAN 20
iP address 10.1.2.1 255.255.255.0
!
interface VLAN 30
iP address 10.1.3.1 255.255.255.0
!
Ip route 0.0.0.0 0.0.0.0 10.10.254.1
And your System Gateway must be Switch Interface IP as VLAN 20 Default Gateway will be 10.1.2.1 and for VLAN 30 default gateway will be 10.1.3.1 etc.
Regards,
Deepak Kumar
02-24-2019 07:16 AM
02-24-2019 07:19 AM
02-24-2019 07:34 AM
02-24-2019 07:40 AM - edited 02-24-2019 07:42 AM
Hi,
On the router run below commands:
no ip nat inside source list NATING interface GigabitEthernet0/0/0 overload
ip route 10.1.0.0 255.255.0.0 10.10.254.2
no ip route 10.1.0.0 255.255.255.0 10.10.254.2
Keep in mind that currently there are two same commands on the Cisco router.
ip nat inside source list NATING interface GigabitEthernet0/0/0 overload
ip nat inside source list Nating interface GigabitEthernet0/0/0 overload
Remove only one command.
Regards,
Deepak Kumar
02-24-2019 08:35 AM
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