How can I get my Solaris 11 system to
to two different IP addresses on the same interface?
- Each device on an IP
ethernet should have a name. Since your workstation
is going to be
(in effect) TWO devices, you need to choose a second
name. That second
name needs to be added to the file /etc/hosts on the system, AND to the database on
service systems that will include it in their
domain, for example DNS. Example.
If you have a system known as "herring" which responds to the IP address 126.96.36.199, and you also want it to respond to 188.8.131.52 as "jupiter", the you
will ensure that you have both the following lines
in /etc/hosts (and/or DNS):
- You now need to choose
ethernet interface the second address will be used
At this point your system is
the second IP address, and this configuration will
persist across a reboot.
- If it will be used
SAME interface that you already use (for "herring") in our example, then you run the
ipadm command to
bring the second name into use, as follows:
ipadm create-addr -T static -a 184.108.40.206/16
(in this example, the default
interface has the name "net0")
First Alternative course tutors can answer
questions like this ... and are happy to do so.