DHCP and NIC Teaming on Windows Server 2022

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Music] so setting up dhcp on windows server 2022. so here's the server running at last in the in the first step when we set up active directory we used a static ip address okay so the client was on uh 10 10 10 2 and the server was on 10 10 10 1. and hopefully we still have a response well we will still have a response when we start the client i'm not going to start the client quite yet because we've got some configuration to do on the server so let's just check our ip configuration ipconfig so here we are we're 10 10 10 1 and 2 5 5 2 5 5 2 5 5 0 and we do have the second adapter that's on that or bridged mode that we can use to get access to the internet but our domain our active directory domain is running on this internal uh lan that we've set up on 10 10 10 1. so the domain controller has a static ip address at the moment and hopefully it will stay like that i'm going to now try and add the dhcp role to the domain controller so i'm going to go in the same way that we always add roles we go and and also if we go to the dashboard you'll see don't worry about these these are here we'll see we've got active directory domain services dns and file and storage services what i'm also going to do is just grab a snapshot at this point and we'll call this um before setting up dhcp just in case it all goes horribly wrong okay and if i go to the snapshot manager you'll see as i've been working my way through started with a fresh installation then we installed active directory then we went for an ssh installation and this is where we are today before setting up dhcp so we go to manage and we go to add roles and features and then the add roles and features wizard should load up we want a role based installation and it will be on this server this is the only server that we have in the pool now what we want to do is select dhcp server okay and it's going to say do we want the role dhcp server yes do we want management tools yes we want the dhcp server management tools so we'll add that and then just click next just click next and just accept the defaults now it says here before you install the dhcp server you should plan your subnets and store the plan in a safe place for later reference what a sensible suggestion that is a bit of documentation okay so we're going to tick the box to say restart the destination server if required so when we click install if uh um ever if a restart is required then we'll allow that to take place so let's just hit install there the uh feature is now installed the installation is now complete and we now have a couple of ways we can get in and set up the configuration we've got the little little amber uh exclamation mark up here or we could click here to complete the dhcp configuration but i'm just going to click close okay i'm going to minimize my command line and we'll see that we now have the dhcp role in our server and if we click on this little icon up here it's going to say complete the dhcp configuration so let's complete the dhcp configuration and click next and we are now going to authorize this at scope and we're going to authorize it using the administrator's credentials and then just hit close and wasn't that uh i think it's called the labor of sisyphus uh but the ancient greek legend where he had to push a boulder up the hill and then it rolled back down again and that's what labor of sisyphus that so now that we've completed the post-deployment configuration which involved clicking on two buttons we can now go to tools and click on dhcp and this will open up the dhcp management console the mmc microsoft management console for dhcp and it's the same as our active directory users and computers so let's have a wee look in the contents of the dhcp scope here and we'll see that we've got two little server icons kind of difficult to see ipv4 and ipv6 so what we're going to do now is we're going to right click on ipv4 and say we want to create a new scope okay and it's going to bring up a thing called the new scope wizard so let's give the scope a name now i'm going to just jump over to the tma to get the right name ec01.scope right so let's call it pc01.scope and we can add some arbitrary description now we're on 10 10 10 1 okay so i would like this scope to start on 10 10 and if you press space it'll let you jump between the octets 10 and 100 okay i want it to end on 10 10 10 110 so we're gonna we're going to have 10 ip addresses in our scope and let's set the subnet mask to slash 24 and as you look you can see as we change the prefix bits it increases the bits in the mask so there we go slash 23 24 there we go next so we've got 10 10 10 100 to 10 10 10 110 right now this is if we want to add any exclusions so for example if we had a server a print server a router or something that we didn't want we can add that or we can even add a range of ips to exclude but we're not going to do that just now leave the least duration as someone asked earlier as eight days and yes i want to configure these options now now are we going to add a default gateway we can add the default gateway we can make that the server okay 10 10 1 right and just hit add now this is where we can add some dhcp options and this is a little bit beyond the this is the scope of this but i'm going to show you this anyway while we're here now interestingly okay and it's populated the parent domain but it's asking if we want to add any dns servers okay and i'm going to add a public dns server um which is this one 1.1.1 and that's a cloudflare public dns so let's add that and it's going to validate it it's validating and it likes it gets happy and it went on the internet and checked if that was a dns server it is now i don't really like the fact that these are in here but um i'm going to remove them actually okay remove remove remove and the dns server that i also want to send out is the the domain controller 10 10 10 1 okay so let's add that in as well there we go now i'm concerned that it's going to send out one one one one as the primary dns server so i'm just going to remove that and then add it again and hopefully that will go out as the secondary dns server fingers crossed um next any wind servers we don't want any wind servers and let's activate the scope now and finish okay so now we have the our scope running and if we go into address leases we'll see that there's nothing refresh nothing there because we don't have any clients at the moment using dhcp so let's start up the client operating system so let's go send control delete ah george bush was last logged in let's log in as another user all right i'm gonna log in as administrator because i want to change some of the network configuration so let's go administrator and we want to go to um now i'm wondering why it's telling me to sign into there i don't want to sign in as that so i'm going to say actually specify the domain netbios name just there to make sure we are signing into the domain so let's go sign in all right slam me in good so while that's starting its life out in the background giving me this out of box experience i'm going to go back over to the server all right and i promised i would reboot the server to cheer things up so let's do that now well while we're over setting up the client so let's do restart and we'll say that we've done operating system maintenance planned uh restart anyway so let's get that server restart in the background and pop over to the client machine here so here i'm on the client machine and i'm logged in as the domain administrator logged into the domain and let's just go in and have a look at the network configuration so open network internet settings and we want to get to the network and sharing center change adapter settings and let's have a look at the properties of so at the moment we're on 10 10 10 10 okay now i'm going to open i'm going to do windows key and r to open up the uh the run prompt and open up the command prompt and i'm going to do ipconfig and let me just make the text a little bit bigger than here properties font options colors that's fun ah here we go let's put it on 24. that's about bad so at the moment we're on 10 10 10 10. with no gateway okay and if we do ipconfig slash all okay we can see that at the moment there's a dns is set up okay we have a dns server 10 10 10 1 and we um it should give us our uh primary dns suffixes here but those dhcp enabled is set to no okay let's okay let's not worry about that i don't want to see your notifications i'll just leave that there so let's go back to the server now vm send control delete log in as administrator first time just i'm lucky now our server was on 10 10 10 open up the command prompt ipconfig so our server's on 10 10 10 1 and our client is on 10 10 10 10. so let's just see if we can ping that server ping 10 10 num lock 10 10 10 1 right so the server's replying which is good notice as well this first one we lost about 15 milliseconds that's because there was an arp arp request taking place and look we can see now that we have the physical address stored in this machine's app cache so let's do the ipconfig slash just go for a basic ip config right so now what i'm going to do on the client machine is i'm going to set this to obtain an ip address automatically and let's just click ok leave the dns server just now and then just minimize that now if i press up and check you'll see this is different now isn't it i'm now getting an ip address of 10 10 10 100 because that was the first ip address in the dhcp scope over on the machine and if i go back in to um the settings here properties ipv4 properties we'll see that this is on obtain ip address automatically so it's getting an ip address from a server and if i now run okay ipconfig all will see that we now have some information dhcp is enabled yes all configuration enabled yes ipv4 address there okay dhcp server 10 10 10 1 okay so we're getting this information from our dhcp server now let me go and see what happens if i set the dns to obtain automatically from the dhcp server so let's go back in this is a bit more of an experimental phase this obtain dns server automatically close close close let's do look at that there is that additional dhcp server that i added one one one one so now we're actually able to send extra information out using the um using the dhcp protocol now if we go back over to the server and we open up dhcp manager now that server manager is loaded let's go tools dhcp um and open up the management console for dhcp we should see that we have an active lease i imagine there's also well let's have a look in here and let's just see so ipv4 server options hang on the top ipv4 scope address leases and we can see that we've added we've leased to this client here there's the clients the cname the hostname the lease expiration and so on now we could actually set that as a reserved ip address so that client would always get that ad to reservation and that's a i find that that's quite a good trick actually um so let's just go now some of the other options that are possible if we go to scope options we'll see that we have a set of numbered options okay like for example option three is the router ip option six is dns servers option 15 is dns domain name if i right click here and say configure options i could i can send any one of these you know um options so i could send an irc chat server through dhcp option 74. i can send um pop3 i can send mail servers as well i can send um see other ones that are kind of relevant uh ntp servers out to the client as well to synchronize the time now something interesting about the server at the moment is that you might notice you know on my computer it says 11 40 but the server thinks that it's um 3 40 in the morning so maybe that's something that we can look at setting up ntp but for basic dhcp configuration we now have a working dhcp server so any new clients that we add to this domain we just need to plug them in and the server as long as they're in the same the same lan segment as long as they're on the same link and the server will be able to issue them with the relevant information to join the domain to set up nick teaming what i'm going to do is i'm going to add some additional network adapters to the current lan segment i'm going to turn network adapter 2 back to the lan segment let's add another one network adapters 3 network adapter 4. put them all in the same the same link okay save that and we should see those all sitting there so let's start up the operating system now um that we've added those and then i'm going to show you how we can get group those together in what's called a nick team okay so we can we can team them together using the nick teaming features of the server so i'm going to open networking internet settings and open up the network and sharing center and here we go right so we have these four ethernet adapters and if we go to change it up to settings okay we can see them all sitting there sitting there happy now this one ethernet one we actually go into the properties have you seen that one go there it's just sitting on dhcp that's that's the way it should be so let's go to our server manager local server and let's enable nick teaming okay so let's just click on that enable right and that's going to bring up this nik teaming management interface now what we're going to do is we're going to create a new team adapter this is like a group adapter here so let's go new team and in this nick team we're gonna put all the adapters okay and we'll call this team um office underscore hashing reason i'm calling it that is because that's what it gets called in um a linkedin learning course by someone who's much better at this than me now if we go to additional properties there are some options that we need to put here and if i get this right i think we want to go for a dynamic switch independent address hash team okay let's just hit okay let me just double check that that's right office hashing switch independent nic team switch independent yes switch independent should we want to go dynamic our address hash let's go address hash click ok the virtual machine's operating system has attempted to enable promiscuous mode on adapter 3. this is not allowed for security reasons right that's fine okay so now we have three adapters that are in the faulted state like that let's see if i can do properties faulted okay let's edit this then and change it to dynamic and see if that'll cheer up the only valid load band balancing algorithm our transport fly oh it seems to like that okay so we want a dynamic and a switch independent dynamic team not not an address hash team okay so now if we go to back to the network and sharing center we'll see there's a new adapter and that adapter is called office hashing and it's a microsoft adapter a multiplex adapter it's a group adapter it's the nik team adapter okay and it's now adopted the ec.sa ip address from ethernet zero so let's pop this over here to one side and show how we can make this work let's just do that let's open up our command prompt windows key in our and pop our command prompt over here so let's ping 10. 10.10.1 okay well that's not good is it let's check our ip address ipconfig we've got nothing at the moment that is not good okay you cannot adapt to zero properties ipv4 ah okay it's not letting me go in there okay so let's go to office hashing properties ipv4 right let's put 10 10 10 1 in there and let's do 255 255 255 0 dns we'll just set it to 10 10 10 1. right click okay close let's try and run ip conving again okay we're back to where we were before now if i ping okay by default it's going to just send one it's going to send four pings so if i do a ping with a slash t okay it's going to keep pinging it'll keep going until i tell it to stop okay so now let's run the ping slash t and hopefully it'll work there let's run it now to show that this is working if i now disable ethernet 0 watch this disable keep the ping keeps going if i now disable ethernet 3 the ping keeps going i'm going to disable ethernet 2 the ping will keep running vinyl disable ether network so we're going to disable all four adapters now it's dead okay but let's bring back on the third adapter and we should see that the ping will start working again there we are we're back up we're back up and running so that is how we enable and setup nick teaming [Music] [Music] you
Info
Channel: Michael Ferrie
Views: 438
Rating: 5 out of 5
Keywords:
Id: bl2ByaQKKHg
Channel Id: undefined
Length: 26min 10sec (1570 seconds)
Published: Wed Sep 29 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.