Setting IP Virtual on Solaris 10


Before this you should define or configure for main interface, on example : ce0
Activate virtual interface card, for example : 3 virtual interface
# ifconfig ce0:1 plumb up
# ifconfig ce0:2 plumb up
# ifconfig ce0:3 plumb up

Giving IP Address to all virtual interface
# ifconfig ce0:1 10.10.4.11 netmask 255.255.255.0 broadcast 10.10.4.255 up
# ifconfig ce0:2 10.10.4.12 netmask 255.255.255.0 broadcast 10.10.4.255 up
# ifconfig ce0:3 10.10.4.13 netmask 255.255.255.0 broadcast 10.10.4.255 up

You just add script that executed when system reboot.
# vi /etc/rc3.d/S23ipaddvirtual
#!/bin/bash
/sbin/ifconfig ce0:1 10.10.4.11 netmask 255.255.255.0 broadcast 10.10.4.255 up
/sbin/ifconfig ce0:2 10.10.4.12 netmask 255.255.255.0 broadcast 10.10.4.255 up
/sbin/ifconfig ce0:3 10.10.4.13 netmask 255.255.255.0 broadcast 10.10.4.255 up

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command