[SunHELP] ethernet aliases
Kevin Reichhart
sunhelp at sunhelp.org
Mon Dec 17 09:03:19 CST 2001
assuming that your physical interface is already working at boot time and is
hme0:
ifconfig hme0:1 plumb
ifconfig hme0:1 <ip address> [netmask <subnet mask>] [broadcast <broadcast
address>]
to get this to come up automatically at boot time:
echo "<hostname>" > /etc/hostname.hme0:1
add an entry to your hosts file for the hostname of the virtual interface
and it's ip address
reboot
ifconfig -a to make sure everything came up ok.
-----Original Message-----
From: Bret Adams [mailto:bret at fabrikant.com]
Sent: Friday, December 14, 2001 6:01 PM
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] ethernet aliases
The ifconfig man page gave me this:
To assign multiple logical interfaces you have to first plumb the physical
interface:
ifconfig le0 plumb (for example)
This opens up the physical interface for TCP/IP streams. IF this has
already been done, go on to add your logical interfaces.
ifconfig le0:1 [ip address] [netmask] [parameters] for the first logical
interface
ifconfig le1:2 [ip address].....etc....etc for the 2nd interface and so
on. I dont know the limit on how many logical interfaces you can have.
Now as to startup I am sure you can use a script in one of the rc#.d
directories to set up the ifconfig commands. I dont know if it has to be
system generated or if it exists already or if you have to make it.
At 02:23 PM 12/14/01 -0800, you wrote:
>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
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list