cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1567
Views
15
Helpful
6
Replies

Computer ip from router on a stick

eXPlosion
Level 1
Level 1

Hello,

why PC-A PC-B and PC-C in packet tracer are not receiving IP from router on a stick Perth.

https://drive.google.com/file/d/1NkxXqM1dIdylQ4lN4MiBP74-LEIMBnlg/view?usp=sharing 

6 Replies 6

Martin L
VIP
VIP

 

So far I see following issues (* are critical):

* S1 is connected to wrong port on Router; it should be Fa0/0, not Fa0/1/0

you should have dhcp address exclusion on router to exclude IPs of router from dhcp pool

missing vlans on l2 switches  - switch to trunk vlans must have vlan x in database,

something wrong with etherchannels -  missing some of configs for etherchannels ? only 2 switches doing it or all 3 ?

* Native vlan mismatch between router and a switch

 

Regards, ML
**Please Rate All Helpful Responses **

pmckenzie
Level 3
Level 3

as @Martin L  says you need to provide you routers address in DHCP and exclude this address from pool.excluded.PNG

pool.PNG

 

pca.PNG

As to you Ether Channel well they are non existent.

Here is a lab from Packet tracer people on how to set them up

https://www.packettracernetwork.com/labs/packettracerlabs.html 

There are worlds out there where the sky is burning, where the sea's asleep and the rivers dream, people made of smoke and cities made of song. Somewhere there's danger, somewhere there's injustice and somewhere else the tea is getting cold" Dr Who

Here is modified cfg. I connected on a correct port f0/0, excluded router addresses from DHCP, set default gateway in DHCP, added vlan 20, 30, 40 to database, did not touched etherchannel yet, native vlan is 1 by default (I did not changed):

 

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1/0, Fa0/1/1, Fa0/1/2, Fa0/1/3

 

But computers did not get Address from DHCP

Perth#sh run
Building configuration...

Current configuration : 2027 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Perth
!
!
!
enable secret 5 $1$mERr$/jJFQNiaJSPg5O/2VYM/n0
enable password 
!
!
ip dhcp excluded-address 192.160.50.1
ip dhcp excluded-address 192.160.50.129
ip dhcp excluded-address 192.160.50.65
ip dhcp excluded-address 192.160.50.193
!
ip dhcp pool 10
 network 192.160.50.0 255.255.255.192
 default-router 192.160.50.1
ip dhcp pool 20
 network 192.160.50.64 255.255.255.192
 default-router 192.160.50.65
ip dhcp pool 30
 network 192.160.50.128 255.255.255.192
 default-router 192.160.50.129
ip dhcp pool 40
 network 192.160.50.192 255.255.255.192
 default-router 192.160.50.193
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
ip name-server 192.160.50.100
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.1
 encapsulation dot1Q 10 native
 ip address 192.160.50.1 255.255.255.192
!
interface FastEthernet0/0.2
 encapsulation dot1Q 20
 ip address 192.160.50.65 255.255.255.192
!
interface FastEthernet0/0.3
 encapsulation dot1Q 30
 ip address 192.160.50.129 255.255.255.192
!
interface FastEthernet0/0.4
 encapsulation dot1Q 40
 ip address 192.160.50.193 255.255.255.192
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1/0
 switchport mode access
!
interface FastEthernet0/1/1
 switchport mode access
!
interface FastEthernet0/1/2
 switchport mode access
!
interface FastEthernet0/1/3
 switchport mode access
!
interface Serial1/0
 no ip address
 shutdown
!
interface Serial1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Serial1/2
 no ip address
 clock rate 2000000
 shutdown
!
interface Serial1/3
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 password 33
 login
!
!
!
end


Perth#

 

Sorry I forgot a step that I added.

Your native vlan is not 1 you  changed it to 10

native vlan.PNG

 

So you need to change trunk link to native vlan 10 as well

trunk.PNG

There are worlds out there where the sky is burning, where the sea's asleep and the rivers dream, people made of smoke and cities made of song. Somewhere there's danger, somewhere there's injustice and somewhere else the tea is getting cold" Dr Who

Thanks very helpful information.

glad to be of help.

Quick question was this the solution?

There are worlds out there where the sky is burning, where the sea's asleep and the rivers dream, people made of smoke and cities made of song. Somewhere there's danger, somewhere there's injustice and somewhere else the tea is getting cold" Dr Who