[SunHELP] ethernet aliases
Lund, Dennis
sunhelp at sunhelp.org
Mon Dec 17 07:06:07 CST 2001
If you want them to be permanent, create a startup script that creates the
interfaces and routes at boot up. We put the script in /etc/rc2.d. Here is
an example:
As root:
# vi S82ipinit
# This sets the IP, netmask and broadcast address for interface hme0:1
/usr/sbin/ifconfig hme0:1 10.253.0.1 netmask 0xffffc000 broadcast
10.253.63.255 up
# This adds the route for the interface.
/usr/sbin/route add net 172.16.4.0 10.253.0.254 1
This brings up hme0:1 at boot up and creates the route for it. If using
Solaris 8, you may also want to add the netmask to the /etc/netmask file.
Hope this helps.
-----Original Message-----
From: Will Yardley [mailto:william+sun at hq.newdream.net]
Sent: Friday, December 14, 2001 5:24 PM
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] ethernet aliases
Bret Adams wrote:
> I thought you can also use tcpconfig to make permanent changes. I
> know with tcpconfig you lose some options that are available with
> ifconfig but mostly related to debugging.
is this on solaris 8? i don't see it:
bacall [~]% which tcpconfig
tcpconfig not found
bacall [~]% locate tcpconfig
bacall [~]% uname -sr
SunOS 5.8
anyway all i want to do is to add additional IP addresses which will
come up when the machine is rebooted.
seems like this shouldn't be difficult to do.....
--
The three wise men brought frank incest and mirth.
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
<html>
<body>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style="font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p>
</body>
</html>
More information about the SunHELP
mailing list