Placeholder Image

字幕列表 影片播放

  • please go to the line the computer guy dot com, in order to view schematics, code and Maur for the projects that you are learning about.

  • Welcome back.

  • So today's video I'm going to show you basic networking configurations on a Lennox server.

  • Now I will award you with this particular video.

  • This might be one to make your brain hurt a little bit, and that's okay.

  • That's okay.

  • When you're to start trying to explain how networking works in the Lenox world, we get into one of the big issues where this should not be that complicated of a subject.

  • But because there are so many distributions, there are so many versions.

  • There's so many ways of doing any one thing in the Lenox world.

  • When you get something basic as basic as simply managing your I P addresses, that could get a little bit more complicated again.

  • Remember when were talking about Lennox?

  • We're really talking about good new Lenox.

  • What we mean by canoe Lennox is Lennox is the colonel, and then literally everything else within the operating system is something that is added on.

  • And so one of the issues that you run into is again depending on the version, depending on the distribution, depending on a lot of different things, you may be using different tools to be able to manage your networking service is on your particular Lennox system.

  • So while you're watching this video and I'm showing you these demonstrations just kind of keep this in mind.

  • So I'm using a about to 18.4 point three.

  • Lt s server version for when I do these demonstrations.

  • So if you're using a bond to if you're using any rather modern about to everything that I show you today should work.

  • But if you are using analytics distribution and what I show you today doesn't work, well, then you may just have to go off and do some Google searching again.

  • That's when the problems of the Lenox world things that should be a relatively simple wind up being complicated simply because there really are so many options.

  • Yeah, it could be a good thing are they can be a pain in the butt.

  • So what I'm gonna be showing you how to do today on the Bunty servers are gonna be a bit I'm going to show you how to find your I p address and your sudden that mask, I'm going to show you how to be able to find your default gateway.

  • I'm going to show you how to find your DNA servers.

  • Then what I'm going to show you how to do is how to release and renew your D a c p i p address.

  • And then I'm going to show you how to create a static I p address on your server again.

  • This will all be within the U Bahn to 18.4 point three.

  • Lt s server.

  • So again, everything that I show you today, you know, Karen can kind of keep the process and Mom gets to realize for utility for you to do it.

  • You may have to do a little bit of Google surgery.

  • So with that, let's go over to the server so I can show you how all this works.

  • So here we are, at my a bunch of server again.

  • I'm running this on a Mac operating system and using virtual box in order to virtualized the instance of you.

  • Bunty server for the networking component just realized we go into settings and we go into network for what I'm showing you today.

  • I'm using a Bridget adapter, and I'm actually using a hardwire connection for the networking interfaces.

  • So when this virtual machine goes to communicate with the outside world, it will be going through a break adapter.

  • So if you are using the anat on here or in that network or something else that some of the settings, some of the things that you see maybe a little bit different than what I'm showing you shouldn't be significantly different, but just something to keep in mind.

  • Eso Let's log into my little server here.

  • Bob began in 123456 And here we are.

  • We're now long into the server.

  • Let me clear the screen.

  • And now the first thing that I'm going to show you how to do is find your i p address.

  • Now, back in the old days, back in the old days, like a couple of days ago, I would use I f config again.

  • This is an important thing to understand analytics world.

  • There's 1000 ways of skin care.

  • So for a long time we have been using the command I f can fix.

  • So if you go back and you're researching something again something about networking and I tell you to use I have config.

  • That was the tool that was used for a really frightening long time.

  • Right, As if you use the eye Afghan fig tool.

  • Basically, with this, this is going to give your your i p address.

  • So it's going to tell you what your Internet connection is with the name of your network Connection is the E.

  • M.

  • P.

  • Zero s three.

  • So whenever we're modifying configurations for this particular network connection, that is what the name is going to be.

  • Do you remember, with the computer, you may have multiple network connections, right?

  • You may have three or four.

  • I don't know 10 different network cards in your system, so each one of them could be configured differently.

  • So whenever you're going in and doing modifications, do you make sure your modifying the right network card S O.

  • This is the name of the network Hard.

  • If there were more network cards, you see more names we can see that has the i net.

  • So this is the TCP I P address of 10 0 not one, not for And it has a subnet mask of 25525555.0.

  • So again, I have config.

  • To be clear, though, is the old way of doing it all though, as all these things d'oh, it still works.

  • But to be clear, they really are trying to get rid of I f can thick is that if I have config what they want you to do now is used by the I p tool so simply I p.

  • And to find your address, you simply do space a d d e r.

  • And this will give you the address.

  • If we hit Enter now we're taking a look at this.

  • We can see we're basically getting the same time of information that we're getting out of Iife config.

  • But it's but it's just in a different format, right?

  • So what we're gonna do is we're going to go to the second entry here again.

  • That is going to be our network interface E m p zero s three.

  • Just like we just all appear with, I have config, and then we can come back and we can look at some different information.

  • And now for our Internet address here we can see that is a 10.0, not one.

  • Not for just like it is up here.

  • But instead of actually saying with seven at Mask is spelling up out the sum that mask you get to slash 24 eso in the networking world.

  • You'll see this So a class A network is a slash age.

  • A Class B network is a class a slash 16 and of course, a Class C network would be a slash 24.

  • So, depending on how many octet are in your sub, that mask you do the slash and whatever that is.

  • So what I can see here, then, is like an oven, and I have an heir net dressed address of 10.0, not one, not for and it's 2552525.0 subnet mask.

  • So that's again just one of those little bit of differences and again, you know, for you doing things your own way.

  • I still like I have config I use I have to fix it.

  • But but to declare apparently everybody is supposed beginning pushed to the I P tool for dealing with i p addresses and C i p space a d d r.

  • This is what you get.

  • You come down here.

  • This will tell you what the name of your network adapter is.

  • This will tell you what the Internet, the network addresses and the slash that tells you what the something that mask is.

  • And so that's all there is in order to find what your I P addresses.

  • Will it make clear the screen?

  • And so now what we're going to do is we're going to take a look at what your default gateway is.

  • Eso again.

  • Lots of tools, lots of tools to find out what a default gateway.

  • As I just picked this one, if you know a different way of doing it, do a different way.

  • Eyes tool called routes CD round spaced, hyphen n Basically, what it is going to do is going to show you how how traffic gets routed from your computer to the outside world and then hyphen in.

  • What this does is actually give you the I P addresses.

  • Eso what?

  • I'll show you that I simply new route without the the hyphen end and we go down here.

  • What we can see is the destination default and then we just see this gateway, right?

  • So when it says Gateway, we just see Gateway.

  • Well, that's not really useful.

  • So that's like the name of the Gateway.

  • But I don't really need to know the name of the gateway.

  • I need to know the i p address of the gateway.

  • So maybe route space hyphen n basically that says turn this into numbers instead of names on.

  • Then what I can see here is now with this, I have these the destination.

  • So default, basically anything that is outside of this network on the gateway is going be 10.0, not one about one.

  • So that's what my default gateway is on.

  • So this is a way that you could go and just take a look at how the rounding is done.

  • Your particular Lennox box and something to think about is if you have a simple let explodes again like this is a simple server, you should only have a few settings here again with how this is supposed to work.

  • If you're having it networking issues with your Lennox server, you're going in behind somebody else and for some reason to get weird, sporadic problems.

  • If you come here and you see a lot of other records in this in this rounding table, it might mean that basically, you have bad records or you may have problematic records within this table and that you'll probably want to eliminate those.

  • That might be one of the problems that's going on.

  • We're not going to get into that today.

  • All we care about today is this.

  • First.

  • When you look at 0.0 this is the default.

  • What is the gateway 10 1.1?

  • Yea, that works again.

  • One of the big problems, especially when you're using D A C P in the real world.

  • And sometimes when somebody's setting up the D A.

  • C P server, they simply fat finger something.

  • They plugged in the wrong default gateway.

  • You know, they put a 10 dot again like they do like 10.1 not one, not one instead of 10.0, not one, not one you can't get to the outside world.

  • And simply the reason is is because you don't have the right default gateway.

  • So this way you could go and take a look at that.

  • So let me clear the screen again.

  • An hour is gonna go in and take a look at the D.

  • N S s.

  • So this is this is using system d again system.

  • He is part of a bunch of at this point, depending on what version would want to know what distribution you're using.

  • It may or may not be in what you're using.

  • So this is one of those things that again might be problematic for you.

  • You might have to go do a Google search to find out what works on your particular system s.

  • So what we're gonna be doing is we just simply want to see what our D.

  • N s servers are.

  • So we do system d hyphen, resolve space hyphen, hyphen, hyphen, hyphen.

  • Not a single life in a double hyphen on.

  • We asked what the status is, and then we're going to hit, enter.

  • And so here we have the global settings.

  • So for the d.

  • N, a server Tenn 0.11 we can see the D.

  • N s domain if we care about that.

  • And then if we scroll down with things we can see.

  • So up here this is like the global setting and supposed to the global setting for the entire system.

  • Kind of like the default for any network cards you install.

  • But then we can go down and take a look at the specific network card.

  • So again, E N p zero s three.

  • That's the name of the interface that we're using.

  • Current scopes, blah, blah, blah.

  • Then we can come down here to Deanna servers, and we can see it Tenn 0.0 that one that one see, the N s domain is Verizon dot net.

  • So I know that's how it's supposed to be.

  • And so that's That's the way I go in and check to see what the DNC servers are to make sure why or why not.

  • The D.

  • N s is resolving properly.

  • And so that's the basic way to see what your I P addresses how to see what your default gateway is and how to see your d N S O to get out of here.

  • All you do is you press cute and now you're out of here.

  • So let's now talk about D h cp.

  • So I'm gonna clear the screen.

  • And so at this point, we need to actually be able to release our D A.

  • C P address and renew our D a.

  • C P.

  • Address.

  • Again.

  • You get a lot of weird networking problems where sometimes with Lisa's leases expire.

  • But, you know, things haven't synchronised properly.

  • So you mean maybe to renew your d a c P address.

  • So with this, you simply use super Sue Sue do so, super user d'oh!

  • And then you use a two local d big client spell space.

  • And now what?

  • One of things I'm going to add is something called hyphen V.

  • So what Hyphen V is you do not have to add hyphen.

  • Hyphen V is over Bos s.

  • So you'll see this and some of the tools that I'm showing you.

  • Or maybe sometimes you simply put for Bo Sand or Hyphen V.

  • And what this does is the computer that kind of tells you what's going on.

  • It's going through a process, and then the important one that you do have to do is hyphen R s.

  • So what this is, does is it releases it forces the release of the D.

  • A.

  • C.

  • P address eso if we enter and ask for the password.

  • 123456 Killing old process Done it.

  • Uh And so now it's done.

  • The i p address has been released.

  • If we do, I pee space a DDR to see what our I p addresses and we hit inner.

  • We can see we come down here again to e and P zero s three.

  • That is our interface card, and we can see that it does not have an i p for address clear the screen, then passed this all you have to do in order to actually obtain a d a c p addresses we simply use Super User do again d A client.

  • And then I'll do the space hyphen V so you don't need the space.

  • I haven't be.

  • This is simply forever, Bos So it tells us what's going on.

  • And then I hit enter and we can see here goes through and then it picks up the I p address for us.

  • If we do i p a d d are at this point, we can come and we can now see, we have the i p address of can not 0.1 dot 14 with a slash 24.

  • So that's a Class C A 25555550 Sum that mask.

  • And that's really all there is to releasing and renewing your your d a.

  • C p address from that.

  • Now we need to go into actually modifying the static I p address.

  • So let me clear the screen again.

  • And now we're gonna go in and we're going to edit, um, a particular file.

  • So the first thing that we need to dio is we need to change directory and we're going to go to slash e t c slash net plan Sonett plan is the tool that's currently used to kind of manage the I P addresses and all that kind of stuff on the country server.

  • So we're going to go into the directory and then what we're going to be looking for is the configuration file for Net Plan on is a dot Yamil file dot y a m l.

  • That is a networking configuration file.

  • So we do an L s hyphen anil to a list Everything in the Net plan directory and we see this 50 hyphen cloud hyphen.

  • I n I t.

  • And not yem o phile s.

  • So this is the file that we're going to edit in order to give ourselves a static I p address, eh?

  • So we're going to do a super user.

  • Do you're going to use them again?

  • Use whatever the health text editor you want to use.

  • I like them.

  • I use ville.

  • So I'm showing you with them, and then you're gonna do 50 hyphen cloud hyphen.

  • I t dot Why A And Powell should I was all right, hit inner.

  • And now we're in that dot PM will file.

  • And so from here, we're going to do some editing.

  • So if we look right at this point in time, there's not a whole hell of a lot in this Hamel file.

  • And the main reason is because of this setting right here.

  • D a c p four colon.

  • Yes.

  • So, basically, what that means is, hey, go grab the all of the information from the d.

  • C.

  • P server, and so we don't need to write anything else.

  • Right?

  • Well, we're going to actually go into here, and we're going to put everything in from a stack.

  • Eso instead of having yes.

  • So I hit I eyes for insert.

  • Then I'm going to the leak.

  • Yes, and I'm gonna say no.

  • Now.