How to add secondary IP address to Solaris ?

Hi Experts,
Version SunOS 5.9 (Sunfire V240) it’s have a IP address and I need to connect different IP range database in the same network.

How can I do that?

How can I add secondary IP address to the same Ethernet in Solaris? Is it possible ?


Please advice !
LVL 1
AffnoAsked:
Who is Participating?
 
TintinCommented:
OK, you have bge instead of eri.

Just change the references of eri to bge, ie:

ifconfig bge0:1 plumb
ifconfig bge0:1 192.168.1.8 netmask 255.255.255.0 up
0
 
TintinCommented:


ifconfig eri0:1 plumb
ifconfig eri0:1 1.2.3.4 netmask 255.255.255.0 up

Create /etc/hostname.eri0:1

with the appropriate hostname in it.

0
 
AffnoAuthor Commented:


SunOS 5.9

login: root
Password:
Last login: Wed Apr 20 09:48:39 from 172.25.21.2
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
#
exit
# bash
# exit
exit
# bash
# exit
exit
# exit
exit
# exit
bash-2.05# ifconfig eri0:1 plumb
ifconfig: plumb: SIOCLIFADDIF: eri0:1: no such interface
bash-2.05# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 172.25.21.138 netmask ffff0000 broadcast 172.25.255.255
        ether 0:3:ba:42:aa:97
bash-2.05# ifconfig eri0:1 1.2.3.4 netmask 255.255.255.0 up
ifconfig: SIOCGLIFNETMASK: eri0:1: no such interface
bash-2.05# ifconfig bge0:1 192.168.1.8 netmask 255.255.255.0 up
ifconfig: SIOCGLIFNETMASK: bge0:1: no such interface
bash-2.05# ifconfig bge0: 192.168.1.8 netmask 255.255.255.0 up
ifconfig: SIOCGLIFNETMASK: bge0:: no such interface
bash-2.05#
0
 
AffnoAuthor Commented:
please advice !
0
 
AffnoAuthor Commented:
Thanks a lot Tintin !!!! see ya around !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.