Featured Posts

php-logoCentOS : Cara Upgrade dari PHP 5.1.x ke PHP 5.3 Sejak CentOS 5.6 dirilis, paket PHP 5.3 sudah ada. dibawah ini bagaimana cara upgrade PHP 5.1.x menjadi PHP5.3 Pertama stop terlebih dahulu Apache Web Server: #service httpd stop Hapus paket-paket...

Read more

iptablesCara Membuka Port di Firewall Linux CentOS Secara default firewall iptable menyimpan konfigurasi di /etc/sysconfig/iptables . Anda dapat mengedit file tersebut dan menambahkan  aturan/rules untuk membuka nomor-nomer yang ada pada port. Konfigurasi...

Read more

ubuntuForce Monitor Resolution on Ubuntu 10.10 Ketika Distro Ubuntu 10.10 release, saya langsung coba install pada komputer lama. Ternyata saya dapatkan resolusi monitor tidak sesuai dengan monitor saya yaitu 1440x900 pixel. Selalu yang didapat 800x600...

Read more

twitter-bird-2Rangkuman Tweet Malam oleh Fahri Hamzah tentang KH... Bagi yang tidak sempat ngTweet, ini saya rangkum Tweet Malam oleh Fahri Hamzah tentang KH Hilmi Aminuddin. Dibaca dari paling bawah ke atas, 1# -> 100# Semoga bermanfaat. ------------------------- 100kita...

Read more

Jilbab “Dunia ini adalah perhiasan dan sebaik-baiknya perhiasan adalah istri yang shaleh.” (Rasulullah SAW) “Segala sesuatu ada penegurnya, dan penegur hati adalah rasa malu!” (Rasulullah SAW) “Perempuan...

Read more

  • Prev
  • Next

Twitter Updates...

  •  

Ubuntu Networking Configuration Using Command Line

Category : Gadget, Linux

4

The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).

By Default most of the users configure their network card during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system

Configuring DHCP address for your network card
If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card

sudo vi /etc/network/interfaces

# The primary network interface – use DHCP to find our address
auto eth0
iface eth0 inet dhcp