Ip Address For Linux Debian

Konfigurasi Ip Address

_

Semua peralatan yang terhubung ke jaringan computer, membutuhkan alamat khusus yang disebut Ip Address. Agar semua peralatan tersebut dapat berhubungan satu sama lain. Oleh sebab itu, Network Interface Card tidak akan berarti apa-apa, jika Ip Address pada interface tersebut tidak diset terlebih dahulu.

Kelompok4:/home/kelompok4# nano /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

# The loopback network interface

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.2.4

netmask 255.255.255.0

network 192.168.2.0

broadcast 192.168.2.255

gateway 192.168.2.253

auto eth1

iface eth1 inet static

address 192.168.3.4

netmask 255.255.255.0

network 192.168.3.0

broadcast 192.168.3.255

kelompok4:/home/kelompok4# /etc/init.d/networking restart

Konfigurasi Ip Forward

Aktifkan IP FORWARDING, agar transfer data dapat berjalan antara dua jaringan yang berbeda. Ip Forwarding ini berfungsi sama seperti halnya bridge. Namun dalam konsep ini, debian berfungsi menjadi router. Gunakan cara cepatnya serperti berikut.

kelompok4:/home/kelompok4# nano /etc/sysctl.conf

# Uncomment the next line to enable packet forwarding for IPv4

net.ipv4.ip_forward=1 #hilangkan “#” pada bagian ini

#. . .

kelompok4:/home/kelompok4# /etc/init.d/networking restart

0 komentar:

Posting Komentar

 
Download this Blogger Template From Coolbthemes.com