logical interface in solaris 10
Hi there,
I need to configure logical interface in a solaris 10 3/05 server. After reading the Solaris 10 IP services manual, I am not quite sure what to do. All the examples and explanation are about using the new subcommand addif of ifconfig. It was not clear in the documentation if the setting logical interfaces via addif will persist across boot.
Can one still configure logical interface in Solaris 10 in a more traditional way like in Solaris 8? In an Solaris 8 server I will do the following.
Let's assume I want to configure in a solaris 8 server a logical interface named hme0:1 with IP address 192.168.20.28 with netmask 255.255.255.0 for hostname host001
# cat /etc/hostname.hme0:1
host001
^D
# echo "192.168.20.28 host001" >> /etc/inet/hosts
# echo "192.168.20.0 255.255.255.0" >> /etc/inet/netmasks
# reboot -- -r
Can one still do that in solaris 10 3/05 server?
[957 byte] By [
shen] at [2007-11-26 10:07:41]

# 1
> Hi there,
>
> I need to configure logical interface in a solaris 10
> 3/05 server. After reading the Solaris 10 IP services
> manual, I am not quite sure what to do. All the
> examples and explanation are about using the new
> subcommand addif of ifconfig. It was not clear in the
> documentation if the setting logical interfaces via
> addif will persist across boot.
No. No 'ifconfig' command is persistent.
> Can one still configure logical interface in Solaris
> 10 in a more traditional way like in Solaris 8? In an
> Solaris 8 server I will do the following.
>
> Let's assume I want to configure in a solaris 8
> server a logical interface named hme0:1 with IP
> address 192.168.20.28 with netmask 255.255.255.0 for
> hostname host001
>
> # cat /etc/hostname.hme0:1
> host001
> ^D
> # echo "192.168.20.28 host001" >> /etc/inet/hosts
> # echo "192.168.20.0 255.255.255.0" >>
> /etc/inet/netmasks
> # reboot -- -r
>
> Can one still do that in solaris 10 3/05 server?
Absolutely.
You don't need to reboot (you can run ifconfig for this boot and let the files do the work next time) and the -r doesn't do anything with interfaces (expecially virtual interfaces) anyway.
--
Darren