Hasil Pencarian

Kamis, 09 April 2009

sharing server gatway

untuk server:

-mii-tool
-ifconfig eth0 119.135.208.150/28
-ifconfig eth1 10.0.0.1/28
-route add default gw 119.135.208.139
-vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEFICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

-vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=10.0.0.1
NETMASK=255.0.0.0
ONBOOT=yes

-vi /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes

-service network restart
-ifconfig eth0
-ifconfig eth1

-vi /etc/resolv.conf
cek apakah sudah ada ip dns

-echo "1" > /proc/sys/net/ipv4/ip_forward
-iptables -t nat -A POSTROUTING -o eth0 -J MASQUERADE
-setup
configure firewall disable

cek ping ip eth0,eht1
cek ping gateway
cek mtr ip dns
cek ping domain

untuk client :


ipaddr : 10.0.0.2
netmask : 255.255.255.240
gateway : 10.0.0.1

masukkan ip dns yang dicek di -vi /etc/resolv.conf

cek ping gateway
cek tracert ip dns
cek tracert domain

0 komentar:

Unlock