SETTING ROUTER
#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
#nano /etc/resolv.conf
nameserver 202.134.0.155
nameserver 203.130.196.5
#nano /etc/rc.local
iptables -t nat -A POSTROUTING -j MASQUERADE
#nano /etc/sysctl.conf
net.ipv4.ip_forward = 1
# reboot
sudah jadi deh!!
coba yaa !!!
|
#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
#nano /etc/resolv.conf
nameserver 202.134.0.155
nameserver 203.130.196.5
#nano /etc/rc.local
iptables -t nat -A POSTROUTING -j MASQUERADE
#nano /etc/sysctl.conf
net.ipv4.ip_forward = 1
# reboot
sudah jadi deh!!
coba yaa !!!
Tidak ada komentar:
Posting Komentar