how to make IP address permanent.


 
Thread Tools Search this Thread
Operating Systems Solaris how to make IP address permanent.
# 1  
Old 05-07-2012
how to make IP address permanent.

Greetings,

I am using solaris10 x86 OS. I configured IP address using the command.

Code:
>ifconfig e1000g0 plumb
>ifconfig e1000g0 200.200.0.1 up

How to make this configured IP as permanent.. to solaris os.

Last edited by Scrutinizer; 05-07-2012 at 07:33 AM.. Reason: code tags
# 2  
Old 05-07-2012
hi you need to add the entries to the /etc/hosts file, and also edit the file
/etc/hostname.e1000g0

for example

Code:
root@dh-test # vi /etc/hosts

#
# Internet host table
#
127.0.0.1       localhost       dh-test
192.168.10.4    dh-testa        loghost
192.168.10.5    dh-testb
192.168.10.10   dh-test
~


Code:
root@dh-test # cat /etc/hostname.e1000g0
dh-testa netmask 255.255.255.0 broadcast + group prod deprecated -failover
 up addif dh-test 255.255.255.0 broadcast + failover up


root@dh-test # cat /etc/hostname.e1000g2
dh-testb netmask 255.255.255.0 broadcast + group prod deprecated -failover standby up


Code:
root@dh-test # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.10.4 netmask ffffff00 broadcast 192.168.10.255
        groupname production
        ether 0:21:28:6f:6e:26
e1000g0:1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.10.10 netmask ffffff00 broadcast 192.168.10.255
e1000g2: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 3
        inet 192.168.10.5 netmask ffffff00 broadcast 192.168.10.255
        ether 0:21:28:6f:6e:28


Last edited by Scrutinizer; 05-07-2012 at 07:54 AM.. Reason: quote tags changed to code tags
This User Gave Thanks to Revo For This Post:
# 3  
Old 06-11-2012
Thanks a lot Revo that is very usefull......
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to make NFS4 mount permanent ?

Hello, I'm able to mount NFSv3 shares permanently (/etc/filesystems) via smitty nfs. />lsfs -a Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/hd4 -- / jfs2 2097152 -- yes no /dev/hd1 -- ... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Add character to specific columns using sed or awk and make it a permanent change

Hi, I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches. file has lot of functions defined a.sh #!/bin/bash fn a { beautiful evening sunny day } fn b { } fn c { hello world .its a beautiful day ... (12 Replies)
Discussion started by: ashima jain
12 Replies

3. UNIX for Dummies Questions & Answers

Will authconfig make permanent change or lost after reboot?

Hi, I made following configuration to create user directory: # authconfig --enablemkhomedir --update But the directory is created as permission 755, I'd like to modify the script to change directory access permission to 700, where is the script which copies /etc/skel to /home... (0 Replies)
Discussion started by: hce
0 Replies

4. UNIX for Advanced & Expert Users

rm non-permanent delete

I read this article as a way to do a non-permanent of something. I saw 2 problems. The first that my rm is located at /bin/rm. I would assume I would change the location to /bin/rm. The second my rm is a executable file and not a text file. So will replacing my rm file with the shellscript... (3 Replies)
Discussion started by: cokedude
3 Replies

5. Solaris

Process to make changed MAC address permanent

Hi If suppose there is a MAC address of NIC port. I have change the MAC address through following command # ifconfig hme0 ether a:0:30:f0.ad:51 The change MAC address will be there till reboot. Now I would like to know how to make the change MAC address permanent. I believe that... (1 Reply)
Discussion started by: amity
1 Replies

6. Shell Programming and Scripting

How to make Environment Variable Permanent ??

How can i set a environment variable in unix shell ?? I can set it using setenv or export but when i close & open the terminal again i couldn't see that environment variable, how can i make that change permanent ?? (1 Reply)
Discussion started by: chaditya
1 Replies

7. Solaris

how do i make a route entry permanent in the routing table on solaris 8?

how do I make sure that the entry in the routing table on Solaris 8 stay permanent after rebooting the server. For example route add 172.20.1.60 -netmask 255.255.255.0 172.20.255.253 Each time the server reboots the entry disappears when using the command netstat -nr (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

8. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

9. Solaris

Permanent changes to PATH

Hi guys, I'm running Solars 8 on a V100 server at home for testing. If I switch user to root and do: # echo $PATH This is the output: /usr/sbin:/usr/bin I'm using rsync over ssh and need to add /usr/local/bin and /user/local/sbin. I do this by running the line: #... (3 Replies)
Discussion started by: Stin
3 Replies

10. UNIX for Dummies Questions & Answers

How to make ulimit change permanent

ulimit -a gives the following output:$ulimit -a time(seconds) unlimited file(blocks) 2097152 data(kbytes) 131072 stack(kbytes) 16384 memory(kbytes) unlimited coredump(blocks) 32768 nofiles(descriptors) 400 vmemory(kbytes) 147456 Abot output... (3 Replies)
Discussion started by: nervous
3 Replies
Login or Register to Ask a Question