Also note that this form is deprecated.  Alexey has a tool called 'ip' which
if you're familiar with cisco, should be second hand.

It does not use "eth0:x" form but uses the proper tag of secondary.

ip address add 1.2.3.4/24 brd + dev eth0
ip address add 1.2.3.5/24 brd + dev eth0
...


example:
# ip a s eth1  (ip address show)
6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:a0:cc:54:e1:eb brd ff:ff:ff:ff:ff:ff
    inet 208.129.67.66/26 brd 208.129.67.127 scope global eth1
    inet 208.129.67.67/26 brd 208.129.67.127 scope global secondary eth1
    inet 208.129.67.69/26 brd 208.129.67.127 scope global secondary eth1

This tool is much more advanced and replaces ifconfig and route.  It's use
should be encouraged. The program source and a command reference are listed
below.

-d

[1] ftp://ftp.inr.ac.ru/ip-routing/
[2] http://dawn.elte.hu/~endre/ip-cref/

On Fri, 24 Mar 2000, Aaron Dewell wrote:

> Date: Fri, 24 Mar 2000 00:39:45 -0900 (AKST)
> From: Aaron Dewell <[EMAIL PROTECTED]>
> To: Bruce McAlister <[EMAIL PROTECTED]>
> Cc: "Linux-Net (E-mail)" <[EMAIL PROTECTED]>
> Subject: Re: 2 IP Adresses on 1 ethernet card
> 
> 
> Yes, but note that solaris countes dev0:0 the same as dev0, which linux
> does not.  I.e. in Linux, eth0:0 is the first secondary, but in solaris it
> is dev0:1.  A little gotcha I've run into more than once...  You either
> pay close attention to what you're doing, or start the numbering in Linux
> at 1, then there's no problem.
> 
> On Fri, 24 Mar 2000, Bruce McAlister wrote:
> > Hi Guys
> > 
> > I have an Intel Pro 100B ethernet card. The IP address for the card is
> > 196.25.211.51 and defined as eth0
> > the command I used to bind the addresses to this card is as follows
> > 
> >     ifconfig eth0 196.25.211.51 broadcast 196.25.211.63 netmask
> > 196.25.211.48
> > 
> > if I wanted to bind another IP address to this card could I do something
> > like this
> > 
> >     ifconfig eth0:1 196.25.211.59 broadcast 196.25.211.63 netmask
> > 196.25.211.48 
> > 
> > under solaris this is possible as the above example, I was just wondering
> > how i would do it, i need to do it on a linux production server so i need to
> > be sure of the command so as not to interfere with the rest of the ipdetail?
> > If the command is not correct, could someone please point me in the correct
> > direction. the NET3-HOWTO does not diverse on this type of thing, so any
> > info would be much appreciated
> > 
> > Thanx
> > Bruce
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-net" in
> > the body of a message to [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to