Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two IP's on one NIC

Reply
Thread Tools Display Modes

Two IP's on one NIC

 
 
Markus Wenke
Guest
Posts: n/a

 
      07-29-2004, 08:35 AM
Hi,

I want to add a virtual eth0:1 to my first NIC.
How can I do this?

I copy the eth0-file to eth0:0 and change the IP adresses in it.
(the files are in /etc/sysconfig/network)

and if I make a "ifup eth0:0", linux said:

eth0:0
ERROR: Interface eth0:0 is not available

that means ifup finds the configfile, but it doesn find the interface,....
What can I do?



thanks in advance

Markus

 
Reply With Quote
 
 
 
 
Brendon Caligari
Guest
Posts: n/a

 
      07-29-2004, 08:43 AM

"Markus Wenke" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to add a virtual eth0:1 to my first NIC.
> How can I do this?
>
> I copy the eth0-file to eth0:0 and change the IP adresses in it.
> (the files are in /etc/sysconfig/network)
>
> and if I make a "ifup eth0:0", linux said:
>
> eth0:0
> ERROR: Interface eth0:0 is not available
>
> that means ifup finds the configfile, but it doesn find the interface,....
> What can I do?


what distribution?

check that you have a
DEVICE=eth0:0
in your 'config file'


However, you can always 'ifconfig' it.

B.


 
Reply With Quote
 
Markus Wenke
Guest
Posts: n/a

 
      07-29-2004, 08:58 AM
Brendon Caligari wrote:
> "Markus Wenke" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>Hi,
>>
>>I want to add a virtual eth0:1 to my first NIC.
>>How can I do this?
>>
>>I copy the eth0-file to eth0:0 and change the IP adresses in it.
>>(the files are in /etc/sysconfig/network)
>>
>>and if I make a "ifup eth0:0", linux said:
>>
>>eth0:0
>>ERROR: Interface eth0:0 is not available
>>
>>that means ifup finds the configfile, but it doesn find the interface,....
>>What can I do?

>
>
> what distribution?
>
> check that you have a
> DEVICE=eth0:0
> in your 'config file'
>
>
> However, you can always 'ifconfig' it.
>



is ifconfig deprecated?
I want understand the "new" system, for future ;-)

 
Reply With Quote
 
Markus Wenke
Guest
Posts: n/a

 
      07-29-2004, 09:01 AM
Brendon Caligari wrote:
> "Markus Wenke" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>Hi,
>>
>>I want to add a virtual eth0:1 to my first NIC.
>>How can I do this?
>>
>>I copy the eth0-file to eth0:0 and change the IP adresses in it.
>>(the files are in /etc/sysconfig/network)
>>
>>and if I make a "ifup eth0:0", linux said:
>>
>>eth0:0
>>ERROR: Interface eth0:0 is not available
>>
>>that means ifup finds the configfile, but it doesn find the interface,....
>>What can I do?

>
>
> what distribution?
>
> check that you have a
> DEVICE=eth0:0
> in your 'config file'
>


I added "DEVICE=eth0:0" in my ifcfg-eth0:0
and the same error appears

 
Reply With Quote
 
Brendon Caligari
Guest
Posts: n/a

 
      07-29-2004, 09:05 AM

"Markus Wenke" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Brendon Caligari wrote:
> > "Markus Wenke" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >
> >>Hi,
> >>
> >>I want to add a virtual eth0:1 to my first NIC.
> >>How can I do this?
> >>
> >>I copy the eth0-file to eth0:0 and change the IP adresses in it.
> >>(the files are in /etc/sysconfig/network)
> >>
> >>and if I make a "ifup eth0:0", linux said:
> >>
> >>eth0:0
> >>ERROR: Interface eth0:0 is not available
> >>
> >>that means ifup finds the configfile, but it doesn find the

interface,....
> >>What can I do?

> >
> >
> > what distribution?
> >
> > check that you have a
> > DEVICE=eth0:0
> > in your 'config file'
> >
> >
> > However, you can always 'ifconfig' it.
> >

>
>
> is ifconfig deprecated?
> I want understand the "new" system, for future ;-)



The new way? Start the machine in GUI mode go throught he system
configuration menus and do it from there. Change the settings and reboot
the machine :-)

The scripts that actually start up an interface and likes are built around
ifconfig.


B.





 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11