Linux Network Configuration

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
29,391
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 15, 2011

Info

Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: September 16, 2010
Length of Class: 51 Mintues
Tracks

Linux
Prerequisites

Introduction to Linux
Installing Linux
Basic Linux Tasks
VIM for File Editing
Navigation in Linux
Purpose of Class

This class teaches students how to configure their Linux servers networking.
Topics Covered

ifconfig Command
DHCP Releae and Renew
Restarting the Network Service
Editing the interfaces File to Setup a Static IP Address
Editing the resolv.conf File for DNS
Changing the Serves Hostname'
Ping for Troubleshooting
UFW Firewall Configuration
Class Notes

Basic Tasks
To Show Current IP Addresses and Network Configuration = sudo ifconfi
To Release and Renew IP Address = sudo dhclient
To Restart the Networking Service = sudo /etc/init.d/networking restart
Always Restart the Networking Service After Changing Network Configurations
Network Config file
To Edit the Network Adapter Configurations = sudo vim /etc/network/interfaces
auto eth0 = Auto Negotiate Speed for Ethernet Card 0
iface eth0 inet static /dhcp = Ethernet Card 0 Either Static or DHCP Address. If DHCP Don't Go Further.
address 192.168.1.100 = Static IP Address
netmask 255.255.255.0 = Subnet Mssk
network 192.168.1.0 = Network (Generally Your IP Address Siply with a 0 in the Last Octet))
broadcast 192.168.1.255 = Broadcast Address (The Last Address in Your Subnet. Generally Your IP Address with a 255 in the Last Octet.)
gateway 192.168.1.1 = Default Gateway. Generally Your ISP Modem or Router
To Edit the DNS Resolution File = sudo vim /etc/resolv.conf
To See Current Hostname = sudo /bin/hostname
To Change Hostname = sudo /bin/hostname newhostname
Ping
To Determine if You Can See an IP Address = ping IP Address
To Determine DNS is Working = ping domainname
UFW firewall
To Chaneg Default Handling of Ports When UFW is Enabled = sudo ufw default allow/deny
To Turn UFW on or Off = sudo ufw enable/disable
To Open or Close Ports for Everyone = sudo ufw allow/deny port#
To Delete a UFW Rule = sudo ufw delete allow/deny port#
To Allow Access to All Ports from a Specific IP Address = sudo ufw allow from IP Address
To Allow Access to a Specific Port from a Specific IP Address = sudo ufw allow from IP Address to any port port#
Final Thoughts
Drivers Should Work Out of the Box...
Wireless Networking is Its own Topic

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (elithecomputerguy)

  • how i can change my ip i used sudo dhclient but it give me the same ip :(

    and i used ifconfig eth0 xxx.xxx.x.x cant send request to the server ??

    anyone have any idea ??

  • @Badboysvsgoodboys It will keep giving you the same IP unless the server decides to assign a different one. If you need a specific IP you need to edit the interfaces file.

  • @elithecomputerguy when i use this command vim /etc/network/interfaces

    i get this massage sudo: vim: command not found

    i use linux desktop

    and when i open the file without vim command i find this code

    auto lo

    iface lo inet loopback

    its not like eth0

  • @Badboysvsgoodboys you have to install vim... run: sudo apt-get install vim... and then use it...

Top Comments

  • 1 dislike is a windows user (-:

  • Are you a prison inmate??? always orange!

see all

All Comments (41)

Sign In or Sign Up now to post a comment!
  • Hello ELi I have a couple questions as I am a Network Security major and working primarliy in Linux. I am now learning OPENBSD..do you have any experience with openbsd, if so can you make a tutorial? My next question is for the UFW firewall used in other distro's other than UBUnTU? I am currently taking a firewalls class , and learning IPTABLES. Thank you for your help...great vids

  • Great video. A lot was review, but I did learn some new things. You should do one on samba!

  • write more clearly understood as it is not your handwriting and you can not follow the video,please

  • @123456iambelial Nevermind, i figured it out.

    For those who does not know you would need to edit two files:

    /etc/hostname and /etc/hosts then just change the current hostname. The /etc/hostname there should be only 1 line, so change that then for /etc/hosts there are 2 hostname you need to change and both are located in the 2nd line.

    Cheers

  • Is the /bin/hostname will temporary change your hostname?

    I tried it and it worked, but when I rebooted the VM it went back to its original hostname.

  • Hello Eli i have a problem with my laptop (its a lenovo R61) i have the problem with it says error DLL i missing and next time i turn it on the screen i Crashd (i gonna send a picture of it if you want to se how it loks then give me your e-mail)

    (sorry if i spell somthing wrong i am from denmark)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more