04-07-2022 12:18 PM
packet tracer setup . multiple vlans in both switch connections and two routers . i can not get pc1 or 2 or 3 or vlan 10,20,vlan 99 to ping outside the router. router sees the isub and everything is up and vlan 99 is trunking native to sw1 to r1 and I just cant figure it out . been two days and makes me want to quit cisco all together . I follower to the teeth router on on the stick method and it just wont allow pc to read pass
router on a stickrouter on a stick
04-07-2022 12:30 PM
From your attached diagram the most obvious issue is you have used the same IPs (192.168.10.1 and 192.168.20.1) on the router and the switch so you need to change that before doing anything else.
Jon
04-07-2022 02:19 PM
why would that create an issue between both ? router needs subinterface ( gi 0/2.10 and .20 and switch needs interface for both vlan 10 and vlan 20 ?
04-07-2022 02:30 PM
It's not the interfaces, it's the fact you have used the same IP addresses on two different devices.
When you ping from the PC you are not even pinging the router, you are pinging the switch by the looks of it so you will never get past the router.
If you want the PC's gateways to be on the router you need to make sure the switch IPs are not the same IP ie. just give them another IP out of the same vlans.
Jon
04-07-2022 02:31 PM
Just to add, both devices do not need interfaces, only the device that is doing the routing for the vlans and it is not clear from your diagram which device that is ie. the router or the switch.
Jon
04-07-2022 02:43 PM
oh sorry ti zipped the packet , 3 pc , 2 vlans are connected to the switch - rconnected to router r- connected to 5 other ones ( in static) . so i dont need the same ip assigned to the vlans in switch and ip address for switch has to be different to ping . would that fix the iussue where vlan 1 pc cant ping to ping to vlan 20 pc nor the routers
04-07-2022 12:32 PM
Hello,
post the zipped Packet Tracer project (.pkt) file...
04-07-2022 02:22 PM
04-07-2022 03:01 PM
Hello,
there are a lot of misconfigurations. The PCs do not have an IP address an/or default gateway, the trunk on the switch is misconfigured, the connecting router interface is misconfigured, the static routes are wrong.
I have added DHCP pools for the PCs on the left and fixed the switch and the router, you need to figure out which static routes are correct.
Attached the partly revised file.
04-07-2022 03:07 PM
I cannot opent he packet as it says its not compatible with this version . the pcs dont have dhcp assigned because I havent been able to ping switch and router . you said the trunking is misconfigured and the router is misconfigured . my static routes all my routers point to each other but not to the switch LAN where i'm currently having issue implementing the switch's with vlan ( i only have notes on router on a stick which might be giving me issues ) . I'll revisit the static routes , but what is misconfigured on the switch trunk and router ?
04-07-2022 03:17 PM
Hello,
here are the configs for the switch and the router.
Switch#sh run
Building configuration...
Current configuration : 1490 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan99
ip address 192.168.99.2 255.255.255.0
!
ip default-gateway 192.168.99.1
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
end
R1#sh run
Building configuration...
Current configuration : 1973 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.20.1
!
ip dhcp pool VLAN10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
ip dhcp pool VLAN20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
!
ip cef
no ipv6 cef
!
license udi pid CISCO2911/K9 sn FTX152404TY-
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
description r1-con nected-r2
ip address 192.168.12.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
description R1- connected --R3
ip address 192.168.13.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/2
description trunk link to S1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/2.10
description default gateway for vlan 10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/2.20
description default gateway for vlan 20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/2.99
description default gateway for Vlan 99
encapsulation dot1Q 99 native
ip address 192.168.99.1 255.255.255.0
!
interface GigabitEthernet0/2.100
encapsulation dot1Q 100
no ip address
!
interface Vlan1
no ip address
!
ip classless
ip route 192.168.12.0 255.255.255.0 192.168.12.2
ip route 192.168.24.0 255.255.255.0 192.168.24.2
ip route 192.168.24.0 255.255.255.0 192.168.24.4
ip route 192.168.24.0 255.255.255.0 192.168.12.2
ip route 192.168.34.0 255.255.255.0 192.168.13.3
ip route 192.168.35.0 255.255.255.0 192.168.13.3
ip route 192.168.25.0 255.255.255.0 192.168.12.2
ip route 7.0.0.0 255.255.255.255 192.168.25.5
ip route 7.7.7.7 255.255.255.255 192.168.12.2
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
04-07-2022 04:20 PM - edited 04-07-2022 04:48 PM
this process helped ping each other between vlans . but I cant still ping the router . the trunk has the ip address 192.168.99.2 , but i cant communicate between switch and router still . I have it set up that vlan 99 is trunk mode on sw g0/2 and router have vlan 99 0/2.99 has the ip address 192.168.99.1 and they still wont talk . the gi 0/2 interface itself doesnt have an ip address. and I do need the ip helper-address to send it back to the dhcp server in my packet tracer that is set up with 7.7.7.7. loopback
04-08-2022 01:34 AM
Hello,
I don't get it to work either, with Vlan 99 being the native Vlan. This is most likely one of the flaws in Packet Tracer.
The below does work:
Switch
interface GigabitEthernet0/2
switchport trunk allowed vlan 10,20,99
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan99
ip address 192.168.99.2 255.255.255.0
!
ip default-gateway 192.168.99.1
Router
description default gateway for vlan 99
encapsulation dot1Q 99
ip address 192.168.99.1 255.255.255.0
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