Headlines News :
Home » , , , , , , » How to configure IP Address on Linux Debian 6.03 Squeeze

How to configure IP Address on Linux Debian 6.03 Squeeze

Written By Firman on 01 Mei 2012 | 5/01/2012

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. Configure the network interface in Debian Squeeze almost no significant difference with the Debian Lenny . 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.
Share this article :

0 komentar:

Speak up your mind

Tell us what you're thinking... !

 
Support : Politeknik Elektronika Negeri Surabaya | SMK Negeri 1 Kota Mojokerto | SMP Negeri 1 Prambon Sidoarjo
Copyright © 2012. Bukan's Tutorial - All Rights Reserved
Template Created by Mas Kolis Re-Building by Bukan's Tutorial
Proudly powered by Blogger