Monday 7 April 2008

Ip configuration files for Solaris

Create related configuration file. e1000g? are network interfaces you can find for your host via ifconfig -a
ls /etc/hostname.*
/etc/hostname.e1000g0
/etc/hostname.e1000g1
/etc/hostname.e1000g2


Entries in these files
cat hostname.e1000g0
hstnameloc

cat hostname.e1000g1
hstnamesec

cat hostname.e1000g2
hstnamereal


You have to put ip adress to hostname
cat /etc/hosts
10.210.50.69 hstnamereal loghost
192.168.20.6 hstnamesec
192.168.25.6 hstnameloc

Also to netmaks
cat /etc/netmasks
192.168.20.0 255.255.255.0
192.168.25.0 255.255.255.0
10.210.50.0 255.255.255.0

You can configure nodename which you see at the command prompt
cat /etc/nodename
hstnamereal



Virtual interface
cat /etc/hostname.e1000g0:1
hstnamevirtual

add /etc/hosts
10.210.50.70 hstnamevirtual

No comments: