Powered By Blogger

Laman

Pengikut

Rabu, 04 Mei 2011

Konfigurasi router ubuntu

Konfigurasi router ubuntu
1. Konfigurasi Network
EDIT FILE /etc/network/interfaces dengan cara:
nano /etc/network/interfaces
start networking dengan cara:
/etc/init.d/networking restart

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.3.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.3.3

auto eth1
iface eth1 inet static
address 172.100.1.1
netmask 255.255.255.0
network 172.100.1.0
broadcast 172.100.1.255

2.EDIT FILE: file /etc/sysctl.conf
nano file /etc/sysctl.conf
net.ipv4.ip_forward=1

3.KONFIGURASI ROUTING
Edit File /etc/rc.local
nano /etc/rc.local
echo”1” > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -s 172.100.1.0/24 -d 0/0 -j SNAT –to 192.168.3.1
Exit()

4.Reboot PC dengan perintah reboot.

Tidak ada komentar:

Posting Komentar