Sponsored Content
Operating Systems Solaris how to make IP address permanent. Post 302636213 by Revo on Monday 7th of May 2012 06:52:17 AM
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:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
pbuilder-uml.conf(5)						     pbuilder						      pbuilder-uml.conf(5)

NAME
pbuilder-uml.conf - configuration file for user-mode-linux port of pbuilder DESCRIPTION
/etc/pbuilder/pbuilder-uml.conf contains default values used in pbuilder-user-mode-linux program invocation. FORMAT
MY_ETH0=tuntap,,,192.168.0.2 Configures ethernet setting used for booting linux. See how rootstrap boots your system, and copy that. Specify --eth0=slirp,12345,/usr/bin/slirp-fullbolt to use the slirp connection. UML_IP=192.168.0.3 IP address to use for guest OS. This can be set to dhcp for obtaining IP address through DHCP. UML_NETMASK=255.255.255.0 Guest OS netmask UML_NETWORK=192.168.0.0 Guest OS network UML_BROADCAST=255.255.255.255 Guest OS broadcast UML_GATEWAY=192.168.0.1 Guest OS gateway PBUILDER_UML_IMAGE=${HOME}/uml-image Guest OS file system image. UML_MOUNT_TMPFS=no Whether to mount tmpfs inside the guest image. This is probably mostly useless. BUILDPLACE=${HOME}/tmp/ The location which build will take place. pbuilder-user-mode-linux will place temporary COW files to there. The user running UML needs to be able to access that directory. UML_MEM=128 The amount of memory allowed for UML. Give more value to here. UML_HOSTNAME=uml-host The hostname for the UML. The hostname should be available in /etc/hosts so that hostname -f will be able to return the FQDN. UML_BUILDRESULT=/directory/of/build/result The directory where build result of pbuilder-user-mode-linux is stored. ROOTSTRAP_IMAGESIZE=size-in-megabytes The size, in MB, of the disk iamge to create. Defaults to 1000. NOTES
It is advised to set APTCACHEHARDLINK to no in ~/.pbuilderrc. see pbuilderrc(5) for details. AUTHOR
Initial coding, and main maintenance is done by Junichi Uekawa <dancer@debian.org>. The homepage is available at http://pbuilder.alioth.debian.org FILES
/etc/pbuilder/pbuilder-uml.conf, ${HOME}/.pbuilderrc SEE ALSO
/usr/share/doc/pbuilder/pbuilder-doc.html, pbuilder-user-mode-linux(1), pbuilder(8), pbuilderrc(5), pdebuild(1) Debian 2003 Jan 8 pbuilder-uml.conf(5)
All times are GMT -4. The time now is 06:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy