cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
751
Views
0
Helpful
9
Replies

L3 routing problem with Public IP and Private series

Ashish Kumar
Level 1
Level 1

I am using a Live IP on an interface of L3 switch and configured VLAN with Private series. Internet is working fine on L3 switch but while connecting a laptop on switch with private series it can ping the private gateway and live IP of switch but internet isn't working..

 

Anyone faced this problem or have solution for the same.

 

Thanks

9 Replies 9

Hello,

 

which layer 3 switch do you have ? Post the configuration, and also indicate the IP address of the laptop directly connected to the switch...

Using SW-c3750x.

Live IP address on interface 24 and 20.20.0.0 series on interface 12..

 

I tried to change the configuration now and connected L3 switch with router having 20.20.0.1 IP and internet is working fine on switch...
And connected the laptop 20.30.0.2 with Switch interface 12 but still internet connectivity is not working on laptop.....


Building configuration...

Current configuration : 1935 bytes
!
! Last configuration change at 04:15:06 UTC Wed Mar 30 2011
! NVRAM config last updated at 03:01:36 UTC Wed Mar 30 2011
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
switch 1 provision ws-c3750x-24
system mtu routing 1500
ip routing
!
!
ip device tracking
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
!
!
!
!
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
no ip route-cache
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
!
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
no switchport
ip address 20.30.0.1 255.255.255.0
!
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
no switchport
ip address 20.20.0.2 255.255.255.0
!
interface GigabitEthernet1/1/1
!
interface GigabitEthernet1/1/2
!
interface GigabitEthernet1/1/3
!
interface GigabitEthernet1/1/4
!
interface TenGigabitEthernet1/1/1
!
interface TenGigabitEthernet1/1/2
!
interface Vlan1
no ip address
!
ip forward-protocol nd
ip http server
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 20.20.0.1
!
!
!
!
!
line con 0
line vty 5 15
!
end

20.30.0.0/24 is not part of the RFC1918 addreses. It would be recommended to use addresses belonging to RFC1918. In your scenario, you need to do NAT to access the internet.  If you are not doing NAT on the switch, who is doing it? The upstream router?

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Please check the configuration i had shared which i changed.....

 

Building configuration...

Current configuration : 1935 bytes
!
! Last configuration change at 04:15:06 UTC Wed Mar 30 2011
! NVRAM config last updated at 03:01:36 UTC Wed Mar 30 2011
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
switch 1 provision ws-c3750x-24
system mtu routing 1500
ip routing
!
!
ip device tracking
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
!
!
!
!
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
 no ip address
 no ip route-cache
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
!
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
 no switchport
 ip address 20.30.0.1 255.255.255.0
!
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
 no switchport
 ip address 20.20.0.2 255.255.255.0
!
interface GigabitEthernet1/1/1
!
interface GigabitEthernet1/1/2
!
interface GigabitEthernet1/1/3
!
interface GigabitEthernet1/1/4
!
interface TenGigabitEthernet1/1/1
!
interface TenGigabitEthernet1/1/2
!
interface Vlan1
 no ip address
!
ip forward-protocol nd
ip http server
ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 20.20.0.1
!
!
!
!
!
line con 0
line vty 5 15
!
end

Harold Ritter
Level 12
Level 12

I suppose you use NAT, right? Can you please post you NAT configuration.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I am not using NAT.... just basic configuration  only

 

Hello,

 

what exactly do you mean with 'live IP' ? Is that supposed to be a public IP address ? Which device has IP address 20.20.0.1 (the default gateway of your switch) ?

Post a schematic drawing of your setup...

I figured it out and issue has been resolved now.... A route was missing on my router for LAN and after adding that everything is working fine now....

 

 

Thanks guys ...

Review Cisco Networking for a $25 gift card