Networking Forums

Networking Forums > Computer Networking > Linux Networking > Virtual interface + vlan

Reply
Thread Tools Display Modes

Virtual interface + vlan

 
 
Wolter Kroes
Guest
Posts: n/a

 
      10-10-2006, 06:55 PM
Hello

I have an network interface connected to a lot of VLANs
This is no problem.
Now i want some interfaces to have more ip addresses
something like: eth0:1.199

so on interface eth0 i want an alias 1 tagged with Vlan 199
How can this be done?

Kind regards
Joost


 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-12-2006, 09:09 AM
Hello,

Wolter Kroes a écrit :
>
> I have an network interface connected to a lot of VLANs
> This is no problem.
> Now i want some interfaces to have more ip addresses
> something like: eth0:1.199


Rather eth0.199:1.

> so on interface eth0 i want an alias 1 tagged with Vlan 199
> How can this be done?


The usual way : append the alias suffix to the interface name.
I assume the VLAN interface name is "eth0.199", so the alias name will
be "eth0.199:1".

Or you can just get rid of ifconfig and this stupid alias stuff and use
the "ip addr" command from the iproute2 package to manage network
interfaces. Unlike ifconfig, "ip addr" supports multiple addresses on an
interface in a *consistent* way.
 
Reply With Quote
 
Wolter Kroes
Guest
Posts: n/a

 
      10-13-2006, 04:02 PM
Thanx for the answer

witchout ifconfig and by applying it "by hand" it works like a charm

Joost



"Pascal Hambourg" <boite-a-(E-Mail Removed)> wrote in message
news:egl0nq$8iq$(E-Mail Removed)...
> Hello,
>
> Wolter Kroes a écrit :
>>
>> I have an network interface connected to a lot of VLANs
>> This is no problem.
>> Now i want some interfaces to have more ip addresses
>> something like: eth0:1.199

>
> Rather eth0.199:1.
>
>> so on interface eth0 i want an alias 1 tagged with Vlan 199
>> How can this be done?

>
> The usual way : append the alias suffix to the interface name.
> I assume the VLAN interface name is "eth0.199", so the alias name will be
> "eth0.199:1".
>
> Or you can just get rid of ifconfig and this stupid alias stuff and use
> the "ip addr" command from the iproute2 package to manage network
> interfaces. Unlike ifconfig, "ip addr" supports multiple addresses on an
> interface in a *consistent* way.



 
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
Simulated NAT Traversal on Virtual Box | Two Virtual Interface - eth-0/eth1 Sumit Linux Networking 0 06-24-2011 01:09 AM
How to set VLAN priority for socket (not for interface) linux62i@yahoo.com Linux Networking 0 10-27-2006 11:57 AM
Multiple MACs from same Interface OR MAC/VLAN NATting nikhil.subscribed@gmail.com Linux Networking 0 08-28-2006 10:02 AM
arp the vlan interface Max Linux Networking 0 06-01-2004 09:00 PM
Virtual interface Slav Inger Linux Networking 2 04-20-2004 01:54 PM



1 2 3 4 5 6 7 8 9 10 11