cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6460
Views
25
Helpful
10
Replies

VLAN DHCP VTP EIGRP

Sanjay916
Level 1
Level 1

Hello,  I have a network configuration of 3 MS0 switch, MS0 is acting as dhcp which is giving ips to MS1. MS3 is the internet. However, I am unable to get an ip address for pc4 and pc7 on my MS1 switch interface. Also, I notice all of my pdus are failing when i tried to access MS3 internet. I am not sure what I am doing wrong here. I provided a screenshot of the actual topology and also a script of all my configurations on each switch. Please help Thanks.

 

 

MS3 THE INTENET CONFIG SWITCH

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252
no shutdown

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

 

MS0 CONFIG

 

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

vtp mode server
vtp domain NDD430
vtp password ciscoserver

int vlan 5
ip address 195.165.85.33 255.255.255.224
no shutdown

int vlan 10
ip address 195.165.85.65 255.255.255.224
no shutdown

int vlan 15
ip address 195.165.85.97 255.255.255.224
no shutdown


int vlan 20
ip address 195.165.85.129 255.255.255.224
no shutdown


int vlan 25
ip address 195.165.85.161 255.255.255.224
no shutdown


int vlan 30
ip address 195.165.85.193 255.255.255.224
no shutdown


spanning-tree vlan 5-30 root primary
interface range fa0/1-4
spanning-tree portfast
interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allow vlan 5-30


int fa0/1
switchport mode access
switchport access vlan 5

int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 20

 


MS0 DHCP CONFIG

 

ip dhcp pool vlan5
network 195.165.85.32 255.255.255.224
default-router 195.165.85.33

ip dhcp pool vlan10
network 195.165.85.64 255.255.255.224
default-router 195.165.85.65

ip dhcp pool vlan15
network 195.165.85.96 255.255.255.224
default-router 195.165.85.97

ip dhcp pool vlan20
network 195.165.85.128 255.255.255.224
default-router 195.165.85.129

ip dhcp pool vlan25
network 195.165.85.160 255.255.255.224
default-router 195.165.85.161

ip dhcp pool vlan30
network 195.165.85.192 255.255.255.224
default-router 195.165.85.193

ip dhcp excluded-address 195.165.85.33
ip dhcp excluded-address 195.165.85.65
ip dhcp excluded-address 195.165.85.97
ip dhcp excluded-address 195.165.85.129
ip dhcp excluded-address 195.165.85.161
ip dhcp excluded-address 195.165.85.193

 

 

MS1:


interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allow vlan 5-30


switch(config)#int fa0/1
switchport mode access
switchport access vlan 25


int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 30

vtp mode client
vtp domain NDD430
vtp password ciscoclient

 

 

3 Accepted Solutions

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

It says put unused ports to port 99, not native VLAN as per my understanding.

Also make sure VTP password same - you can have different password for VTP Server and Client.

 

do you get IP addresses for VLAN 10 and VLAN 15 ?

 

Try below :

 

interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30

 

 

MS1:


interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30

 

Post show vlan from both the switches (MS0 and MS1)

show vtp status - both the switches.

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

Not sure, some old IOS may see this behaviour.

 

config t

!

vlan 25

vlan 30

!

end

 

post output.

 

show vlan

show ip interface brief

show trunk

show span brief

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

On the internet Switch, you have configured and I do not see any reference interface configured, so configure as per below.

 

THE INTENET

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252  
no shutdown

 

on MS0 (whatever interface connected you need to configure).

 

int fax/x   < -- this interface where this is connected to internet
no switchport 
ip address 18.0.0.1 255.255.255.252  
no shutdown

 

since you learning, I want to point in a good direction so you can learn the technology help yourself, and help others :

 

EIGRP and Default route : ( you can also achieve this static route)

https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/200279-Configure-Default-route-in-EIGRP.html

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

10 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

It says put unused ports to port 99, not native VLAN as per my understanding.

Also make sure VTP password same - you can have different password for VTP Server and Client.

 

do you get IP addresses for VLAN 10 and VLAN 15 ?

 

Try below :

 

interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30

 

 

MS1:


interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30

 

Post show vlan from both the switches (MS0 and MS1)

show vtp status - both the switches.

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Yes, vlan 10 and 15 both have an address from the dhcp. Its just vlan 25 and 30 thats not getting any ip address. I update my script and also included screenshot of vtp status and show vlan. 


MS3 THE INTENET CONFIG SWITCH

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252
no shutdown

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

 

MS0 CONFIG

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

vtp mode server
vtp domain NDD430
vtp password packet3

int vlan 5
ip address 195.165.85.33 255.255.255.224
no shutdown

int vlan 10
ip address 195.165.85.65 255.255.255.224
no shutdown

int vlan 15
ip address 195.165.85.97 255.255.255.224
no shutdown


int vlan 20
ip address 195.165.85.129 255.255.255.224
no shutdown


int vlan 25
ip address 195.165.85.161 255.255.255.224
no shutdown


int vlan 30
ip address 195.165.85.193 255.255.255.224
no shutdown


spanning-tree vlan 5-30 root primary
interface range fa0/1-4
spanning-tree portfast
interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30


int fa0/1
switchport mode access
switchport access vlan 5

int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 20

 


MS0 DHCP CONFIG

ip dhcp pool vlan5
network 195.165.85.32 255.255.255.224
default-router 195.165.85.33

ip dhcp pool vlan10
network 195.165.85.64 255.255.255.224
default-router 195.165.85.65

ip dhcp pool vlan15
network 195.165.85.96 255.255.255.224
default-router 195.165.85.97

ip dhcp pool vlan20
network 195.165.85.128 255.255.255.224
default-router 195.165.85.129

ip dhcp pool vlan25
network 195.165.85.160 255.255.255.224
default-router 195.165.85.161

ip dhcp pool vlan30
network 195.165.85.192 255.255.255.224
default-router 195.165.85.193

ip dhcp excluded-address 195.165.85.33
ip dhcp excluded-address 195.165.85.65
ip dhcp excluded-address 195.165.85.97
ip dhcp excluded-address 195.165.85.129
ip dhcp excluded-address 195.165.85.161
ip dhcp excluded-address 195.165.85.193

 

 

MS1:


interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30


int fa0/1
switchport mode access
switchport access vlan 25


int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 30

vtp mode client
vtp domain NDD430
vtp password packet3

 

 

balaji.bandi
Hall of Fame
Hall of Fame

I may be missing something here --- If MS0 is VTP Server  ( i do not see the VLAN 25 and 30 there) - how come I can see the same VLAN in MS1 ?

 

create VLAN 25 and 30 on MS0 and test

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

yes, i just notice it too. I just created the vlans and when I input the show vlans command. The vlan 25 and 30 is not showing up. I include a screenshot below.

Not sure, some old IOS may see this behaviour.

 

config t

!

vlan 25

vlan 30

!

end

 

post output.

 

show vlan

show ip interface brief

show trunk

show span brief

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

After i used this command that you provided.

config t

!

vlan 25

vlan 30

!

end

Vlan 25 and 30 is now showing in MS0. I am also getting an ip address for for both vlans now. I am not sure why it will only work by using this method. I guess its the ios version.

 

The only problem am having now is i cannot send packets from the pcs to my internet switch. I think their something wrong in my eigrp routing. I provide some screenshot below of my configurations. 

 

INTERNET SWITCH MS3

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252
no shutdown

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary


MSO

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

 

 

 

The first suggestion is to make sure you change the hostname of the devices, a bit confusing every device show as a switch - we hard to get understand the device.

 

Not sure what you mean by the Internet, is this real internet or 3650(the internet) acting as the internet?

 

Since your MS0 have all the VLAN and SVI, you need to have static route back and forth to reach each other device.

 

Since you are using EIGRP ? do you have EIGRP neighbourship, as per output of show ip route, i do not see any eigrp route ?

 

post full config of both MS0 and Internet switch config to look

 

also below output

 

show ip interface brief

show ip eigrip summary

show ip eigrip neigh

 

 

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

It is not real internet, my 3rd switch MS0 3650 is acting as an internet. i highlighted it in the diagram in blue marking.

The instructions says all pcs show be able to send packets to MS0 3650 which is acting as the internet. The instruction didnt say what kind of routing you should so. So i just use eigrp to setup  routing between MS0 and the internet but it keep failing. 

 

I am not sure if their is an easier way instead of using eigrp. Also, show ip eigrip summary command is not working.

 

These are my configurations. I also included an screenshots of interface brief and eigrp neigbors

 

THE INTENET

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252
no shutdown

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

 

MS0 CONFIG

ip routing
router eigrp 1
network 18.0.0.0 0.0.0.3
network 195.165.85.0
no auto-summary

vtp mode server
vtp domain NDD430
vtp password packet3

int vlan 5
ip address 195.165.85.33 255.255.255.224
no shutdown

int vlan 10
ip address 195.165.85.65 255.255.255.224
no shutdown

int vlan 15
ip address 195.165.85.97 255.255.255.224
no shutdown


int vlan 20
ip address 195.165.85.129 255.255.255.224
no shutdown


int vlan 25
ip address 195.165.85.161 255.255.255.224
no shutdown

 

config t
!
vlan 25
vlan 30
!
end


spanning-tree vlan 5-30 root primary
interface range fa0/1-4
spanning-tree portfast
interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30


int fa0/1
switchport mode access
switchport access vlan 5

int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 20

 


MS0 DHCP CONFIG

ip dhcp pool vlan5
network 195.165.85.32 255.255.255.224
default-router 195.165.85.33

ip dhcp pool vlan10
network 195.165.85.64 255.255.255.224
default-router 195.165.85.65

ip dhcp pool vlan15
network 195.165.85.96 255.255.255.224
default-router 195.165.85.97

ip dhcp pool vlan20
network 195.165.85.128 255.255.255.224
default-router 195.165.85.129

ip dhcp pool vlan25
network 195.165.85.160 255.255.255.224
default-router 195.165.85.161

ip dhcp pool vlan30
network 195.165.85.192 255.255.255.224
default-router 195.165.85.193

ip dhcp excluded-address 195.165.85.33
ip dhcp excluded-address 195.165.85.65
ip dhcp excluded-address 195.165.85.97
ip dhcp excluded-address 195.165.85.129
ip dhcp excluded-address 195.165.85.161
ip dhcp excluded-address 195.165.85.193

 

 

MS1:


interface gig0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport trunk native vlan 99
switchport trunk allow vlan 5-30


int fa0/1
switchport mode access
switchport access vlan 25


int fa0/2
switchport mode access
switchport access vlan 10


int fa0/3
switchport mode access
switchport access vlan 15


int fa0/4
switchport mode access
switchport access vlan 30

vtp mode client
vtp domain NDD430
vtp password packet3

 

On the internet Switch, you have configured and I do not see any reference interface configured, so configure as per below.

 

THE INTENET

int gig0/2
no switchport
ip address 18.0.0.2 255.255.255.252  
no shutdown

 

on MS0 (whatever interface connected you need to configure).

 

int fax/x   < -- this interface where this is connected to internet
no switchport 
ip address 18.0.0.1 255.255.255.252  
no shutdown

 

since you learning, I want to point in a good direction so you can learn the technology help yourself, and help others :

 

EIGRP and Default route : ( you can also achieve this static route)

https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/200279-Configure-Default-route-in-EIGRP.html

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Ok, Thank you. Its working now.