Thursday, April 3, 2014

Setup Static IP on Solaris 10


# ls -ld /etc/host*
-rw-r--r--   1 root     root           5 Apr  2 19:14 /etc/hostname.e1000g0
lrwxrwxrwx   1 root     root          12 Jan 22  2013 /etc/hosts -> ./inet/hosts
-rw-r--r--   1 root     root           5 Apr  2 19:14 hostname.e1000g0
lrwxrwxrwx   1 root     root          12 Jan 22  2013 hosts -> ./inet/hosts
# ifconfig e1000g0
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.195 netmask ffffff00 broadcast 192.168.1.255
        ether 8:0:27:13:f7:38

# cat /etc/hostname.e1000g0
sol1
# ls -ld /etc/defaul*
drwxr-xr-x   2 root     sys           31 Apr  2 23:53 /etc/default
-rw-r--r--   1 root     root          12 Apr  2 19:14 /etc/defaultrouter
# cat /etc/defaultrouter
192.168.1.1
# cat /etc/inet/hosts
#
# Internet host table
#
127.0.0.1       localhost
::1     localhost
192.168.1.195   sol1    loghost

No comments:

Post a Comment