Ubuntu Server 14.04 Setup Part 3 - Set Static IP
Skills:
Systems Design Basics90%
Key Takeaways
Setting up a static IP address on Ubuntu Server 14.04 using the ifconfig command and editing the /etc/network/interfaces file
Full Transcript
all right so up to this point we've installed BTU server and we've changed the host name to test server and the next step is pretty important um by default our server was given an IP address from the DHCP um Gateway which is my net gear router all right so what we want to do is set it as a static IP address so that it doesn't change um and we're also going to set a couple of other things so in Linux if you want to see your IP information you can use the command if if oh let me just click in here if config and if you're familiar with Windows it's ip config um pretty much does the same kind of thing all right so let's take a look at this um you can see that our IP address our internal IP address is 10.0.3 all right my network um I'm on my home network which is a a 10.00 network all right so my router or my Gateway is 10.0.0 one all right and then I have about um 15 physical and virtual machines on my network all right so I'm going to actually use this IP address I'm just going to make sure that I set it as a static IP address okay so what we want to do is edit a file so we're going to say pseudo Nano Etc SL Network slash interfaces all right so there's a few things that we want to do here uh if we go down here we want to leave these lines we just want to change this one here this um inet DHCP all right like I said by default uh we're using the DHCP server and we don't want to do that we want to set this as static all right and then there's a few lines we want to add uh under here okay so the first one will be the actual IP address okay which I'm going to keep as the one that the DHCP server assigned which is 10 0013 okay I'm going to add a few other things here too I'm going to add in my net mask which is is going to be 255 255 255 do0 okay next I want to define the network now if you have a local network it you could very well be using the 16 the uh 198.162 do0 or whatever um my network is on the 10.0.0.0 all right um broadcast I don't think that this is um required but I like to put it anyways which is going to be 10255 all right now the Gateway you do have to have that which is going to be in my case my my Netgear router which is on 101 and then finally we're going to put in our DNS name servers and I usually just use the public Google's public name servers which is 8.8.8.8 and then I'm going to put a space and put 8.8.4.4 okay so those are Google's public name servers so that's pretty much all we need to do here so I'm going to do a contr x and make sure I click y to save and that's it all right now that we have a static IP address I want to remove the DHCP client um because I don't want I don't want to have any more IP address add is handed to the server so I'm going to say pseudo apt get remove DHCP 3- client all right so now that we have that out of the way we can now restart the network all right so that's how you can uh make your IP address static and also add your DNS name servers for your server
Original Description
Simple steps to create a static IP address for your Linux Ubuntu server
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Traversy Media · Traversy Media · 40 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
▶
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Changing Your DNS/Nameservers
Traversy Media
Create a MySQL database in cPanel
Traversy Media
Install & Uninstall Joomla Extensions
Traversy Media
Adding and linking an article in Joomla
Traversy Media
Create a Joomla Blog
Traversy Media
Import & Export A MySQL Database
Traversy Media
Use A Custom Font On Your Website Using CSS
Traversy Media
Connect Joomla Site With Dreamweaver
Traversy Media
Remove Phoca Gallery 3.2.3 Footer Text
Traversy Media
Drupal 7 Security Update 7.19 to 7.20
Traversy Media
Add An Addon Domain In Cpanel
Traversy Media
Pull A Heroku Rails App and Database
Traversy Media
Create a Custom Joomla 2.5 Module - Part 1
Traversy Media
Create a Custom Joomla 2.5 Module - Part 2
Traversy Media
Create a Custom Joomla 2.5 Module - Part 3
Traversy Media
Joomla SEO Tutorial - sh404sef Configuration
Traversy Media
Font Dragr
Traversy Media
Convert an HTML Template to Joomla 2.5/3.0 - Part One
Traversy Media
Convert an HTML Template to Joomla 2.5/3.0 - Part Two
Traversy Media
Rockettheme Rocketlauncher Joomla Site in Under 10 Minutes
Traversy Media
JQuery FAQ Slider Tutorial
Traversy Media
301 Redirect With htaccess File
Traversy Media
Convert HTML to Wordpress Theme - Part 1
Traversy Media
Convert HTML to Wordpress Theme - Part 2
Traversy Media
Easy JQuery Widgets
Traversy Media
Codeigniter App Part 1 - Creating the Database
Traversy Media
Codeigniter App Part 2 - Installation and Configuration
Traversy Media
Codeigniter App Part 6 - Login/Register System
Traversy Media
Codeigniter App Part 7 - Models List CRUD
Traversy Media
Codeigniter App Part 8 - Models Task CRUD
Traversy Media
Node.js Part 1 - Install NodeJS on Windows
Traversy Media
Node.js Part 3 - Building a Static Page Server
Traversy Media
Node.js Part 4 - NPM
Traversy Media
Node.js Part 2 - Install MongoDB in Windows
Traversy Media
Create a Joomla Quickstart with Custom Sample Data
Traversy Media
Install MongoDB in Ubuntu
Traversy Media
HTML5 Web Storage
Traversy Media
Create a Joomla Bootstrap Template From Scratch
Traversy Media
Ubuntu Server 14.04 Setup Part 1 - Installation
Traversy Media
Ubuntu Server 14.04 Setup Part 3 - Set Static IP
Traversy Media
Create A Wordpress Widget - Part 1
Traversy Media
Create A Wordpress Widget - Part 2
Traversy Media
Create A Wordpress Widget - Part 3
Traversy Media
Create A Wordpress Widget - Part 4
Traversy Media
Get Started With Sass on Windows
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 1
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 6
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 4
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 5
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 3
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 2
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 7
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 10
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 8
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 11
Traversy Media
Build An HTML5 Template With Bootstrap and SASS - Part 9
Traversy Media
Build An Audio Player Using HTML5 & jQuery - Part 1
Traversy Media
Build An Audio Player Using HTML5 & jQuery - Part 2
Traversy Media
Youtube Data API v3 & jQuery To List Channel Videos
Traversy Media
Using Bootstrap With Ruby on Rails
Traversy Media
More on: Systems Design Basics
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Built a suite of client-side dev tools to fix the "production data" privacy gap
Dev.to · Rayan Ahmad
5 Best BrowserStack Alternatives to Optimize Your Testing Infrastructure
Medium · DevOps
️ The Lifecycle Symphony: A Senior SRE’s Deep Dive into Init and Sidecar Containers
Medium · DevOps
`wrangler dev --remote` silently writes to your production KV namespace — here's the fix
Dev.to · 강해수
🎓
Tutor Explanation
DeepCamp AI