Jump to content

Recommended Posts

Posted

Hi all,

 

Having a small problem with DHCP farming out address to my new vlan setup. I have setup up a dhcp scope 10.217.10.2 - 10.217.11.254 -- 255.255.252.0 with router option set to 10.217.10.1.

 

Settings for Core Switch:

 

; J9850A Configuration Editor; Created on release #KB.16.01.0006
; Ver #0c:11.7c.59.f4.7b.ff.ff.fc.ff.ff.3f.ef:9b
hostname "Main Core - Modular"
module A type j9993a
module B type j9993a
module C type j9988a
module E type j9986a
module F type j9990a
trunk A1-A4 trk1 lacp
trunk A5-A6 trk2 lacp
ip default-gateway 10.217.0.1
ip routing
snmp-server community "public" unrestricted
snmp-server contact "Ian White" location "IT Office"
oobm
  interface disable
  no ip address
  exit
vlan 1
  name "DEFAULT_VLAN"
  no untagged F19
  untagged A7-A8,B1-B8,C1-C24,E1-E24,F1-F18,F20-F24,Trk1-Trk2
  ip address 10.217.3.1 255.255.255.0
  exit
vlan 10
  name "Servers"
  tagged Trk1-Trk2
  no ip address
  exit
[b]vlan 20
  name "Student"
  untagged F19
  tagged Trk1-Trk2
  ip address 10.217.10.1 255.255.252.0
  ip helper-address 10.217.0.31
  exit[/b]
vlan 30
  name "Staff"
  tagged Trk1-Trk2
  ip address 10.217.2.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 40
  name "Printers"
  tagged Trk1-Trk2
  ip address 10.217.1.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 50
  name "Wifi"
  tagged Trk1-Trk2
  ip address 10.217.16.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 60
  name "Catering"
  tagged Trk1-Trk2
  ip address 10.217.4.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 90
  name "Admin"
  tagged Trk1-Trk2
  ip address 10.217.20.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 99
  name "MGMT"
  tagged Trk1-Trk2
  no ip address
  exit
vlan 150
  name "Voice"
  tagged Trk1-Trk2
  ip address 10.217.30.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree Trk2 priority 4
no autorun
no dhcp config-file-update
no dhcp image-file-update
password manager

 

So I set F19 to untagged Vlan 20 plugged a PC in and waited for an IP address and I get nothing, I am missing something just stuck as to what. Anyone able to see where I have gone wrong and point me in the right direction :)

 

Many Thanks

Posted (edited)
Is the DHCP server on your "server" vlan? That vlan appears not to have an IP on the switch. Also the vlan you have highlighted, the first host would be 10.217.8.1 with a 22 bit mask. Edited by lostsoul
  • Thanks 1
Posted (edited)
I think that is where I have have gone wrong, with the subnet mask. (I am new to subnetting) So I am looking to have a range of DHCP addresses available for students from 10.217.10.2 - 10.217.11.254 so for that vlan what mask would I use 255.255.254.0? Edited by Disease
Posted
I think that is where I have have gone wrong, with the subnet mask. (I am new to subnetting) So I am looking to have a range of DHCP addresses available for students from 10.217.10.2 - 10.217.11.254 so for that vlan what mask would I use 255.255.254.0?

 

/23 would do it. I would definitely try and get to grips with sub netting. It's not that difficult.

  • Thanks 1
Posted

Changed that but still no joy, a bit more info, I have complicated matters more as I am trying to move from a network based on a mask of 255.255.0.0 with no vlans to a vlan based network.

 

My servers are all currently in vlan 1 at the moment, some or using 255.255.0.0 and the DCs including dns and dhcp I have moved to /24 but are still in vlan 1.

 

The broadband switch provided by the LA was our old gateway which is the gateway the servers point to at the moment.

Posted

Ok - all devices in VLAN 1 will need to all have the same subnet mask, and to talk to other devices in other subnets/vlans, the same and correct default gateway (which should be the IP of your core switch).

 

Is 10.217.0.31 your DHCP server? Have you created scopes here for the other VLANs? ... and is the default gateway for the VLANs set to the appropriate VLAN IP on the core switch?

 

Ant

Posted

10.217.0.31 is the dhcp server, I have set a scope up as above so for example I have a scope set to 10.217.10.2-10.217.11.254 and for vlan 20 the interface ip is set to 10.217.10.1.

 

The core switch is set to 10.217.3.1/24 on vlan 1 with its gateway set to the LA switch which is the 10.217.0.1 gateway.

 

I am unable to ping the core switch for some reason from any machine on the address I set it to.

 

Something has gone wrong somewhere....

Posted
Hi all,

 

Having a small problem with DHCP farming out address to my new vlan setup. I have setup up a dhcp scope 10.217.10.2 - 10.217.11.254 -- 255.255.252.0 with router option set to 10.217.10.1.

 

Settings for Core Switch:

 

; J9850A Configuration Editor; Created on release #KB.16.01.0006
; Ver #0c:11.7c.59.f4.7b.ff.ff.fc.ff.ff.3f.ef:9b
hostname "Main Core - Modular"
module A type j9993a
module B type j9993a
module C type j9988a
module E type j9986a
module F type j9990a
trunk A1-A4 trk1 lacp
trunk A5-A6 trk2 lacp
ip default-gateway 10.217.0.1
ip routing
snmp-server community "public" unrestricted
snmp-server contact "Ian White" location "IT Office"
oobm
  interface disable
  no ip address
  exit
vlan 1
  name "DEFAULT_VLAN"
  no untagged F19
  untagged A7-A8,B1-B8,C1-C24,E1-E24,F1-F18,F20-F24,Trk1-Trk2
  ip address 10.217.3.1 255.255.255.0
  exit
vlan 10
  name "Servers"
  tagged Trk1-Trk2
  no ip address
  exit
[b]vlan 20
  name "Student"
  untagged F19
  tagged Trk1-Trk2
  ip address 10.217.10.1 255.255.252.0
  ip helper-address 10.217.0.31
  exit[/b]
vlan 30
  name "Staff"
  tagged Trk1-Trk2
  ip address 10.217.2.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 40
  name "Printers"
  tagged Trk1-Trk2
  ip address 10.217.1.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 50
  name "Wifi"
  tagged Trk1-Trk2
  ip address 10.217.16.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 60
  name "Catering"
  tagged Trk1-Trk2
  ip address 10.217.4.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 90
  name "Admin"
  tagged Trk1-Trk2
  ip address 10.217.20.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
vlan 99
  name "MGMT"
  tagged Trk1-Trk2
  no ip address
  exit
vlan 150
  name "Voice"
  tagged Trk1-Trk2
  ip address 10.217.30.1 255.255.255.0
  ip helper-address 10.217.0.31
  exit
spanning-tree
spanning-tree Trk1 priority 4
spanning-tree Trk2 priority 4
no autorun
no dhcp config-file-update
no dhcp image-file-update
password manager

 

So I set F19 to untagged Vlan 20 plugged a PC in and waited for an IP address and I get nothing, I am missing something just stuck as to what. Anyone able to see where I have gone wrong and point me in the right direction :)

 

Many Thanks

 

 

your default vlan has an ip on the switch of 10.217.3.1 255.255.255.0. You say your dhcp server is on that vlan with an ip of 10.217.0.31. As far as your switch is concerned the DHCP helper is pointing to a network it doesn't know about. For it to work your dhcp server must be in the range 10.217.3.2 - 10.217.3.254, then adjust the helper settings accordingly.

  • Thanks 1
Posted
What if I want to keep my servers on 10.217.0.x address and my switches on 10.217.3.x or am I better rolling them all into the same range? Is there a way to make the switch know of the 10.217.0.x range ?
Posted
If it was me I would have management VLAN for the switches and a separate VLAN for servers. You already have those vlans defined on the switch, so why not use them?
Posted
so what would the gateway be on the servers as the 10.217.0.1 current gateway is the LA switch which I have no access to, thanks for your help so far.
Posted

You'd need to assign the switch an IP address for that VLAN, and then use that as the default gateway.

 

Given that that the LA router has the first IP in that subnet - you might want to consider changing the switch IPs to be the final address - e.g. x.x.x.254

  • Thanks 1
Posted
As @pantscat says, use the last address in the sub net for your switch. Use the same mask as the router and servers. Set the gateway of last resort as the ip of your router. If your switch doesn't know how to route the traffic, it will be sent to the gateway of last resort.
  • Thanks 2
Posted

Thanks for you help guys I am now getting ip addresses issued by my dhcp server :)

 

do I need to setup a route for my switch to the LA (internet) switch to enable them to work together?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...