Setting IP di Debian


Setting IP

#nano /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
address 192.168.11.200
netmask 255.255.255.0
network 192.168.11.0
broadcast 192.168.11.255
gateway 192.168.11.254

allow-hotplug eth1
iface eth1 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255

Setting DNS

#nano /etc/resolv.conf
nameserver 202.134.0.155
nameserver 203.130.196.5

Setting Masquarade

#nano /etc/rc.local
iptables -t nat -A POSTROUTING -j MASQUERADE

Setting Forwarding

#nano /etc/sysctl.conf
net.ipv4.ip_forward = 1


jika sudah di reboot.......

sekian dari saya........... terimakasih............


Category:

Tidak ada komentar:

Posting Komentar