Networking Forums

Networking Forums > Computer Networking > Linux Networking > Virtual Ethernet Interfaces

Reply
Thread Tools Display Modes

Virtual Ethernet Interfaces

 
 
Troy C
Guest
Posts: n/a

 
      10-04-2004, 09:14 PM
OS: suse 9.1
kernel 2.6.5-7.108-default


Trying to create an interface eth0:1

I've tried using YAST to create the virtual to no avail;
it adds additional lines to the /etc/sysconfig/network/ifcfg-eth0
called nm_* but they don't seem to be working.

I've tried manually creating /etc/s/network/ifcfg-eth0:1
but 'ifup eth0:1' fails w/
ERROR: Interface eth0:1 is not available

Is there something new in 2.6??

Also, what is the "UNIQUE='B35A.iShmefsNM+5' in the ifcfg-eth0 refer to?
[it's not the mac addr]..

Thanks,
TroyC

p.s. if there's a new howto etc, plz provide the link.
I googled & the only thing I found was a reference stating that
the "ethx:y" nomenclature was depreciated... anyone know bout that?

 
Reply With Quote
 
 
 
 
Innocenti Maresin
Guest
Posts: n/a

 
      10-04-2004, 09:43 PM
Troy C wrote:

> I've tried manually creating /etc/s/network/ifcfg-eth0:1
> but 'ifup eth0:1' fails w/
> ERROR: Interface eth0:1 is not available


Use "ipconfig eth0 add 192.168.blah.blah" to create a virtual interface.
This is an undocumented feature



--
qq~~~~\ [ Read Usenet in the proper place ]
/ /\ \
\ /_/ /
\____/ Linux console notes http://www.comtv.ru/~av95/linux/console/

 
Reply With Quote
 
Troy C
Guest
Posts: n/a

 
      10-04-2004, 10:19 PM
Yes,
Sorry, failed to mention that.

Yes it works manually.
So I can *MANUALLY* setup 'ifup eth0:1 192.168.1.1 netmask 255.255.255.0
up' and all is good. However upon reboot, there's no [working] way to
manually-automagically set it.

Any other thoughts about the config setup?

TroyC

On Mon, 04 Oct 2004 21:43:42 +0000, Innocenti Maresin wrote:

> Troy C wrote:
>
>> I've tried manually creating /etc/s/network/ifcfg-eth0:1
>> but 'ifup eth0:1' fails w/
>> ERROR: Interface eth0:1 is not available

>
> Use "ipconfig eth0 add 192.168.blah.blah" to create a virtual interface.
> This is an undocumented feature


 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      10-05-2004, 06:05 AM
On 2004-10-04, Troy C <(E-Mail Removed)> wrote:
> up' and all is good. However upon reboot, there's no [working] way to
> manually-automagically set it.


Change the configuration scripts where the interfaces are configured
and add in there your moridification.

Davide


--
When all you have is a Swiss Army Knife, every problem looks like email.
-- Peter da Silva
 
Reply With Quote
 
Frank Harenberg
Guest
Posts: n/a

 
      10-05-2004, 10:24 AM

On Tue, 05 Oct 2004 06:05:27 +0000, Davide Bianchi wrote:

> On 2004-10-04, Troy C <(E-Mail Removed)> wrote:
>> up' and all is good. However upon reboot, there's no [working] way to
>> manually-automagically set it.

>
> Change the configuration scripts where the interfaces are configured
> and add in there your moridification.
>
> Davide

You will find in /etc/sysconfig/networking a file ifcfg-eth-id-MAC-Address
Edit this file with eg:

BROADCAST1='192.168.100.255'
BROADCAST2='192.168.90.255'
IPADDR1='192.168.100.1'
IPADDR2='192.168.90.1'
NETMASK1='255.255.255.0'
NETMASK2='255.255.255.0'
NETWORK1='192.168.100.0'
NETWORK2='192.168.90.0'

then do
rcnetwork restart
ip addr
and you should see the two networks assigned to your NIC.
BTW: don't use ifconfig eth0:1, the better way is to do it with ip addr
add

Frank
 
Reply With Quote
 
Troy C
Guest
Posts: n/a

 
      10-08-2004, 07:20 PM
Frank,

Thanks, that worked. [well on SUSE, I needed underscores [_1 _2]]

But when I do an 'ifconfig -a |more'
it doesn't show the additional interface...is there a way to see the
'additional' ips?

TroyC

On Tue,
05 Oct 2004 12:24:15 +0200, Frank Harenberg wrote:

>
> On Tue, 05 Oct 2004 06:05:27 +0000, Davide Bianchi wrote:
>
>> On 2004-10-04, Troy C <(E-Mail Removed)> wrote:
>>> up' and all is good. However upon reboot, there's no [working] way to
>>> manually-automagically set it.

>>
>> Change the configuration scripts where the interfaces are configured
>> and add in there your moridification.
>>
>> Davide

> You will find in /etc/sysconfig/networking a file ifcfg-eth-id-MAC-Address
> Edit this file with eg:
>
> BROADCAST1='192.168.100.255'
> BROADCAST2='192.168.90.255'
> IPADDR1='192.168.100.1'
> IPADDR2='192.168.90.1'
> NETMASK1='255.255.255.0'
> NETMASK2='255.255.255.0'
> NETWORK1='192.168.100.0'
> NETWORK2='192.168.90.0'
>
> then do
> rcnetwork restart
> ip addr
> and you should see the two networks assigned to your NIC.
> BTW: don't use ifconfig eth0:1, the better way is to do it with ip addr
> add
>
> Frank


 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      10-10-2004, 10:52 PM
Troy C wrote:
> Frank,
>
> Thanks, that worked. [well on SUSE, I needed underscores [_1 _2]]
>
> But when I do an 'ifconfig -a |more'
> it doesn't show the additional interface...is there a way to see the
> 'additional' ips?


Use the command "ip". Try "ip addr"

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning virtual Interfaces to Debian 5 The Doctor Linux Networking 5 03-24-2009 11:07 PM
Allocating many 'net_device's (virtual interfaces) tal.omer.17@gmail.com Linux Networking 6 02-03-2008 09:16 AM
Multiple Virtual Ethernet Interfaces netfiber@gmail.com Linux Networking 0 02-02-2007 12:05 AM
** Help REQ: Rate Limiting on Virtual Interfaces NoNameHere Linux Networking 1 12-10-2003 08:15 PM
Help with dhcpd and virtual interfaces noc Linux Networking 1 07-10-2003 04:59 PM



1 2 3 4 5 6 7 8 9 10 11