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 |
#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 loopback network interface auto eth0 iface eth0 inet static address 192.168.1.27 netmask 255.255.255.0 gateway 192.168.1.1 |
#/etc/init.d/networking restart Reconfiguring network interfaces...done. |
#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) |
Lisensi Dokumen: Copyright ® 2013 Namrif NominalNol. Dilarang menyalin sebagian dan atau seluruh konten tanpa ijin penulis. Konten ini dilindungi oleh Undang-undang HAKI Indonesia. Jika masih ingin menggunakan konten ini, silahkan cantumkan link ke konten ini. |
0 komentar:
Speak up your mind
Tell us what you're thinking... !