twitter rss

How to configure IP Address on Linux Debian 3.0 Woody

IP address is the most important thing in the administration of a server. Because the identity of the server computer. Without an IP address, the computer will not be able to connect to a network. Here's how to configure network interfaces, or in this case you can call it, IP address

1. Configuration Impermanent
There are two ways that you can choose, the first is the impermanent ip address configuration  / that temporary work only as long as the computer stays on. Type the command => ifconfig space eth0 space ip address space netmask space subnetmask and press Enter as the following example
#ifconfig eth0 200.100.2.7 netmask 255.255.255.192
To ensure that the settings are correct, check by typing ifconfig and press Enter, so the result looks like the following (according to configuration)
#ifconfig
eth0   Link encap:Ethernet HWaddr 00:0c:29:58:cf:68
          inet addr:200.100.2.7 Bcast: 200.100.4.63 Mask: 255,255,255,192
          inet6 addr: fe80 :: 20c: 29ff: fe58: cf68/64 Scope: Link
          UP BROADCAST running multicast MTU: 1500 Metric: 1
          RX packets: 1610 errors: 0 dropped: 0 overruns: 0 frame: 0
          TX packets: 1419 errors: 0 dropped: 0 overruns: 0 carrier: 0
          collisions: 0 txqueuelen: 1000
          RX bytes: 189305 (184.8 KIB) TX bytes: 198940 (194.2 KIB)
          Interrupt: 18 Base address : 0x1080
lo Link encap: Local Loopback
          inet addr: 127.0.0.1 Mask: 255.0.0.0
          inet6 addr ::: 1/128 Scope: Host
          UP loopback Running MTU: 16436 Metric: 1
          RX packets: 46 errors: 0 dropped: 0 overruns : 0 frame: 0
          TX packets: 46 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0
          RX bytes: 3036 (2.9 KIB) TX bytes: 3036 (2.9 KIB)

2. Configuration Permanent
You can also permanently configure IP address, with configuring IP address as the following example
#pico /etc/network/interfaces
The following example shows that you will use an IP address C class, with address 192.168.1.27 and subnetmask 255.255.255.0
#The loopback network interface
auto eth0
iface eth0 inet static
address 192.168.1.27
netmask 255.255.255.0
gateway 192.168.1.1
After that, save it by pressing Ctrl + O , and exit the text editor by pressing Ctrl + X . Then do restart the toward "networking" by typing /etc/init.d/networking restart and press Enter, as the following example
#/etc/init.d/networking restart
Reconfiguring network interfaces...done.
To ensure that the settings are correct, check by typing ifconfig and press Enter, so the result looks like the following (according to configuration)
#ifconfig
eth0   Link encap:Ethernet HWaddr 00:0c:29:58:cf:68

          inet addr:192.168.1.27 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe58:cf68/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:189305 (184.8 KiB) TX bytes:198940 (194.2 KiB)
          Interrupt:18 Base address:0x1080
lo       Link encap:Local Loopback

          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
          RX bytes:3036 (2.9 KiB) TX bytes:3036 (2.9 KiB)
Configuring the Network Interface is already done, now you already have an ip address. If you try to connect to a network, make sure your ip address and subnetmask in accordance with the configuration settings on the network.
Baca Selengkapnya..

Konfigurasi Network Interface(Setting IP Address) pada Linux Debian 7.0 Wheezy

IP address merupakan hal paling penting dalam administrasi sebuah server. Karena merupakan  identitas bagi komputer server tersebut. Tanpa IP address, komputer tidak akan dapat terhubung ke dalam sebuah jaringan. Konfigurasi network interface pada Debian Wheezy hampir tidak ada perbedaan berarti dengan pada Debian Lenny. Berikut cara konfigurasi network interface atau dalam hal ini agan sebut saja IP address :

1. Konfigurasi Sementara
Ada dua cara yang dapat dipilih, yang pertama adalah setting ip address secara remanen / sementara yang hanya bekerja selama komputer terus menyala. ketikkan perintah ifconfig(spasi)eth0(spasi)(ip address)(spasi)netmask(spasi)(subnetmask) kemudian tekan Enter seperti contoh berikut 
#ifconfig eth0 200.100.4.8 netmask 255.255.255.192

Untuk memastikan bahwa settingan sudah benar, cek dengan mengetik ifconfig lalu tekan Enter, sehingga hasilnya terlihat seperti berikut (sesuai konfigurasi)
#ifconfig
eth0   Link encap:Ethernet HWaddr 00:0c:29:58:cf:68
          inet addr:200.100.4.8 Bcast:200.100.4.63 Mask:255.255.255.192
          inet6 addr: fe80::20c:29ff:fe58:cf68/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:189305 (184.8 KiB) TX bytes:198940 (194.2 KiB)
          Interrupt:18 Base address:0x1080
lo       Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
          RX bytes:3036 (2.9 KiB) TX bytes:3036 (2.9 KiB)


2. Konfigurasi Permanen
Atau juga dapat menggunakan ip address permanen, dengan cara melakukan konfigurasi pada "interfaces" seperti contoh berikut
#pico /etc/network/interfaces

Contoh berikut menunjukkan bahwa agan akan menggunakan ip address kelas C, 192.168.1.10 dengan subnetmask 255.255.255.0
#The loopback network interface
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

Setelah itu save dengan menekan Ctrl+O, dan keluar dengan menekan Ctrl+X. Kemudian lakukan restart pada "networking" dengan mengetik /etc/init.d/networking restart lalu tekan Enter, seperti contoh berikut
#/etc/init.d/networking restart
Reconfiguring network interfaces...done.

Untuk memastikan bahwa settingan sudah benar, cek dengan mengetik ifconfig lalu tekan Enter, sehingga hasilnya terlihat seperti berikut (sesuai konfigurasi)
#ifconfig
eth0   Link encap:Ethernet HWaddr 00:0c:29:58:cf:68
          inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe58:cf68/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:189305 (184.8 KiB) TX bytes:198940 (194.2 KiB)
          Interrupt:18 Base address:0x1080
lo       Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
          RX bytes:3036 (2.9 KiB) TX bytes:3036 (2.9 KiB)

Konfigurasi Network Interface sudah selesai, sekarang agan sudah memiliki ip address. Jika agan mencoba terhubung ke dalam suatu jaringan, pastikan ip address dan subnetmask yang agan setting sesuai dengan konfigurasi pada jaringan tersebut. 

Baca Selengkapnya..

Followers

Recent Post