Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6562
  • Last Modified:

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 !
0
Affno
Asked:
Affno
  • 3
  • 2
1 Solution
 
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
 
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
 
AffnoAuthor Commented:
Thanks a lot Tintin !!!! see ya around !
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now