Default Gateway [Fedora 8]


Simple tutorial mungkin ada gunanya
IP static
Linux Fedora 8
Mode text
Lan Eth0 corrupt dan kita ganti dengan LAN card baru..!
1. Ketik perintah ifconfig -a
[root@teknis ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:C7:85:3C:CA <– copy
cn,cmclcl,c,s;c,s;cls;lcslc
mlacls,c,s;c

copy macaddress LAN card baru dam masukkan ke
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=123.255.xxx.xx
HWADDR=00:08:C7:85:3C:CA
IPADDR=123.255.205.50
NETMASK=255.255.255.252
NETWORK=123.255.205.48
ONBOOT=yes
TYPE=Ethernet
lalu restart network /etc/init.d/network restart
dan reboot
2. Ping http://www.yahoo.com
bila gak nyambung coba cek default gatewaynya
mungkin default gatewaynya gak mao jalan [start]
coba ketik perintah [root@teknis ~]#route -n
[root@teknis ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
123.255.xxx.xx 0.0.0.0 255.255.255.252 U 0 0 0
eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
192.168.234.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth1
0.0.0.0 123.255.xxx.xxx 0.0.0.0 UG 0 0 0
eth0 <—- default gatewaynya

Hal ini bisa diakali dengan memberi scripts di rc.local
[vi /etc/rc.local]
/sbin/route add default gw 123.255.xxx.xxx
dan save [F2]
3. Reboot sekali lagi
4. Cek gatewaynya, udah jalan apa gak [route -n] dan ping ke http://www.yahoo.com

~ by kecoakmelet on February 15, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: