Link to home
Start Free TrialLog in
Avatar of AtulSharma
AtulSharma

asked on

Default IPAddress on Boot

How do i go about finding all the IP Addresses that are configured to come up on my Solaris machine on boot time.
Can i add a logical IP to the list as well ?
ASKER CERTIFIED SOLUTION
Avatar of soupdragon
soupdragon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elf_bin
elf_bin

Find information on network interfaces:
ifconfig -a

To add (say to hme0):
# Plumb the interface.
/usr/sbin/ifconfig hme0:1 plumb
# Add netmask (x.x.x.x) & IP address (y.y.y.y)
/usr/sbin/ifconfig hme0:1 netmask x.x.x.x y.y.y.y
# Add broadcast address z.z.z.z (if in a stub network)
/usr/sbin/ifconfig hme0:1 broadcast z.z.z.z
/usr/sbin/ifconfig hme0:1 -trailers
# Bring interface up and use it.
/usr/sbin/ifconfig hme0:1 up
# Netmask for original interface
/usr/sbin/ifconfig hme0 netmask a.a.a.a
# Broadcast for orginal interface
/usr/sbin/ifconfig hme0 broadcast b.b.b.b
# Enable forwarding across both interfaces.
/usr/sbin/ndd -set /dev/ip ip_forwarding 1

The key thing is to remember that a virtual interface is driver:number (i.e.: hme0:1)

Hope this helps.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by soupdragon

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer