02-06-2013 10:11 AM - edited 03-07-2019 11:33 AM
Hi Guys, I would need help to correct my code. I am trying to setup the lab on Vlan topics. I have connectivity with all my vlans and I can ping from all my vlan, the FastEthernet 0/1 which is connected to internet. But I dont have internet connection on my Vlans!! which part I am doing wrong ? Thanks for help. below is my Router commands. Thanks
Oh I Have Router 2800 connected to Switch 3500XL
Router 2800
-------------------------------------------------
Current configuration : 1886 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Router1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
!
!
ip cef
!
!
ip name-server 4.2.2.2
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
description LINK TO SWITCH
no ip address
ip nat inside
duplex full
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 192.168.40.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.50
encapsulation dot1Q 50
ip address 192.168.50.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/1
ip address 67.21.6.xx 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
!
ip route 0.0.0.0 0.0.0.0 67.21.6.xx
!
ip dns server
!
ip http server
no ip http secure-server
!
access-list 101 permit ip any any
!
!
!
control-plane
!
!
!
!
!
!
!
!
Switch 3500XL
---------------------------------------------------------
no service password-encryption
!
hostname witch1
!
enable secret 5 XXXXX
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
!
!
interface FastEthernet0/1
description INTERNET ROUTER CONNECTION
duplex full
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
duplex full
speed 10
!
interface FastEthernet0/3
duplex full
speed 10
!
interface FastEthernet0/4
duplex full
speed 10
!
interface FastEthernet0/5
duplex full
speed 10
!
interface FastEthernet0/6
duplex full
speed 10
!
interface FastEthernet0/7
duplex full
speed 10
!
interface FastEthernet0/8
duplex full
speed 10
!
interface FastEthernet0/9
duplex full
speed 10
!
interface FastEthernet0/10
duplex full
speed 10
!
interface FastEthernet0/11
duplex full
!
interface FastEthernet0/12
duplex full
speed 10
!
interface FastEthernet0/13
duplex full
speed 10
!
interface FastEthernet0/14
duplex full
speed 10
!
interface FastEthernet0/15
duplex full
speed 10
!
interface FastEthernet0/16
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/17
duplex full
switchport access vlan 10
!
interface FastEthernet0/18
speed 10
switchport access vlan 10
!
interface FastEthernet0/19
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/20
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/21
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/22
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/23
duplex full
speed 10
switchport access vlan 10
!
interface FastEthernet0/24
duplex full
speed 10
switchport access vlan 20
!
interface FastEthernet0/25
duplex full
speed 10
switchport access vlan 20
!
interface FastEthernet0/26
duplex full
speed 10
switchport access vlan 20
!
interface FastEthernet0/27
duplex full
speed 10
switchport access vlan 20
!
interface FastEthernet0/28
switchport access vlan 20
!
interface FastEthernet0/29
switchport access vlan 20
!
interface FastEthernet0/30
switchport access vlan 20
!
interface FastEthernet0/31
switchport access vlan 20
!
interface FastEthernet0/32
switchport access vlan 30
!
interface FastEthernet0/33
switchport access vlan 30
!
interface FastEthernet0/34
switchport access vlan 30
!
interface FastEthernet0/35
switchport access vlan 30
!
interface FastEthernet0/36
switchport access vlan 30
!
interface FastEthernet0/37
switchport access vlan 30
!
interface FastEthernet0/38
switchport access vlan 30
!
interface FastEthernet0/39
switchport access vlan 30
!
interface FastEthernet0/40
switchport access vlan 40
!
interface FastEthernet0/41
switchport access vlan 40
!
interface FastEthernet0/42
switchport access vlan 40
!
interface FastEthernet0/43
switchport access vlan 40
!
interface FastEthernet0/44
switchport access vlan 40
!
interface FastEthernet0/45
switchport access vlan 40
!
interface FastEthernet0/46
switchport access vlan 40
!
interface FastEthernet0/47
switchport access vlan 40
!
interface FastEthernet0/48
switchport access vlan 50
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 192.168.1.10 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
interface VLAN10
ip address 192.168.10.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN20
ip address 192.168.20.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN30
ip address 192.168.30.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN40
ip address 192.168.40.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
shutdown
!
interface VLAN50
ip address 192.168.50.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
shutdown
!
ip default-gateway 192.168.1.1
Thanks
Solved! Go to Solution.
02-06-2013 10:43 AM
Your issue here is your NAT configuration. You need to denote all of the sub-interfaces as NAT inside interfaces, and you need to configure the translation:
access-list 100 permit ip 192.168.0.0 0.0.255.255 any
ip nat inside source list 100 interface FastEthernet0/1 overload
02-06-2013 10:50 AM
On an additional but unrelated note:
The 3500XL does not support the use of multiple SVIs. You could only ever use one of the six SVIs you have created.
02-06-2013 10:43 AM
Your issue here is your NAT configuration. You need to denote all of the sub-interfaces as NAT inside interfaces, and you need to configure the translation:
access-list 100 permit ip 192.168.0.0 0.0.255.255 any
ip nat inside source list 100 interface FastEthernet0/1 overload
02-06-2013 10:50 AM
On an additional but unrelated note:
The 3500XL does not support the use of multiple SVIs. You could only ever use one of the six SVIs you have created.
02-06-2013 12:13 PM
Thanks Gregory for your both posts. It is working now and I can Internet connection.
02-06-2013 12:22 PM
That's great to hear, I'm glad everything worked out. Please remember to mark the correct solution for future forum searchers.
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