How will you add a virtual IP address to a server. Given the interface qe0 and IP 10.10.1.150?

# ifconfig qe0:1 plumb
# ifconfig qe0:1 10.10.1.150 up

Questions by sridhar_madadi   answers by sridhar_madadi

Showing Answers 1 - 6 of 6 Answers

Syntax:

                          #ifconfig qe0:1 plumb

                          # ifconfig qe0:1 10.10.1.150 up

    where "qe0" is an interface (e.g., le0) and N is a number between 1 and
    <MAX>.  Removing the pseudo interface and associated address is done
    with "ifconfig qe0:1  10.10.1.150 down".

    As with physical interfaces, all you need to do is make the
    appropriate /etc/hostname.qe0:X file.

  Was this answer useful?  Yes

Mohammed Mujahid

  • Feb 2nd, 2007
 

#ifconfig interface_name addif ipaddress up

  Was this answer useful?  Yes

ifconfig qe0:1 plumb 10.10.1.150 netmask <netmask> up

For making it persistant after reboot, we can add /etc/hostname.qe0:1 file with hostname inside it. Also we can map the ip address to hostname in the /etc/hosts.

srujan

  • Dec 25th, 2011
 

USE CMD ifconfig qe0 addiff 10.10.1.150 up

  Was this answer useful?  Yes

ramanan

  • May 24th, 2012
 

ifconfig qe0:1 10.10.1.150 netmask 255.255.255.0 broadcast + up

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions