Sunday, May 9, 2010

setting network in solaris 10

Baru coba install solaris 10 di virtualbox OS nya menggunakan ubuntu 10.04,eh ga bisa ngenet.coba di ping ke dns nya speedy..
comment
# ping 202.134.0.61
ICMP Host Unreachable from gateway localhost (192.168.100.169)
for icmp from localhost (192.168.100.169) to 202.134.0.61
akhirnya ku coba setting dns nya dengan bantuan suhu atau dewan pembina mess "kemenyan" (cak win)
^_^
kita mulai ajah

 applications>utilities>Terminal
setelah itu ketik
#bash
bash-3.00# cat /etc/hosts
#
# Internet host table
#
::1     localhost
192.168.100.169 localhost       loghost
bash-3.00# cat /etc/default/
cat: input error on /etc/default/: Is a directory
bash-3.00# vi /etc/defaultroute
"/etc/defaultroute" [New file]
192.168.100.101
~
~
~
.....
bash-3.00# cat /etc/hostname.e1000g0
localhost
bash-3.00# cat /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.100.0   255.255.255.0
setelah itu kita restart
bash-3.00# svcadm restart physical
bash-3.00# ping 202.134.0.61
ICMP Host Unreachable from gateway localhost (192.168.100.169)
 for icmp from localhost (192.168.100.169) to 202.134.0.61
ternyata oh ternyata
bash-3.00# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
192.168.100.0        192.168.100.169      U         1          0 e1000g0
224.0.0.0            127.0.0.1            U         1          0 lo0
127.0.0.1            127.0.0.1            UH        5         39 lo0
bash-3.00# route delete -net 192.168.100.0 192.168.100.169
delete net 192.168.100.0: gateway 192.168.100.169
bash-3.00# route add -net 192.168.100.0 192.168.100.101
add net 192.168.100.0: gateway 192.168.100.101: Network is unreachable
bash-3.00# route add default 192.168.100.101
add net default: gateway 192.168.100.101: Network is unreachable
bash-3.00# svcadm restart physical
bash-3.00# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843 mtu 1500 index 2
        inet 192.168.100.169 netmask ffffff00 broadcast 192.168.100.255
        ether 8:0:27:47:a9:56
bash-3.00# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
192.168.100.0        192.168.100.169      U         1          0 e1000g0
224.0.0.0            127.0.0.1            U         1          0 lo0
127.0.0.1            127.0.0.1            UH        5         28 lo0



kita tambah gateway nya yang baru
bash-3.00# route add default 192.168.100.101
add net default: gateway 192.168.100.101
bash-3.00# ping 202.134.0.61
202.134.0.61 is alive

bisa deeh...coba mozilanya bung.

2 comments:

Egi Adithia Pradana said...

wuih mantaf nyeting networknya open solaris

dendy said...

namanya juga baru belajar...