Virtual interface + vlan

Virtual interface + vlan

Post by Wolter Kroe » Thu, 12 Oct 2006 03:55:17



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

 
 
 

Virtual interface + vlan

Post by Pascal Hambour » Fri, 13 Oct 2006 18:09:12


Hello,

Wolter Kroes a crit :

Quote:

> 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.

Quote:> 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.

 
 
 

Virtual interface + vlan

Post by Wolter Kroe » Sun, 15 Oct 2006 01:02:33


Thanx for the answer

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

Joost


Quote:> 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.

 
 
 

1. Virtual interface/Virtual web hosting

I need to host virtual websites on a server with a single ethernet
interface.  I am using Kernel 2.0.27 but I did not compile this myself
and am not sure which options and modules are present.

I understand that IP aliasing is possible as well as networking
aliasing; but I do not know if these are patches, modules, or are part
of my existing kernel.

I have seen commands such as:
/sbin/ifconfig eth0 alias www.domain.com
/sbin/if config eth0:0 up
etc.  

but I am rather new to Linux and need more detail
(spell it out for me....please)
I have read the mini-How to on virtual hosting.  It wasn't enough.
                                Thanks in advance, Fred

2. Linux Ethernet HOWTO (part 1/3)

3. To vlan or not to vlan, that's the question

4. browser's http headers

5. Virtual Host/Virtual Interface for NSCA HTTPD 1.5

6. Cross-compiling glibc->libc5 on RH5.x

7. one physical interface, 3 virtual interfaces, and inetd

8. Backup.Unet 3.0 anyone?

9. Multiple MACs from same Interface OR MAC/VLAN NATting

10. How to set VLAN priority for socket (not for interface)

11. Multicast UDP deamon and VLAN interfaces

12. One real interface, one IP and many VLANs?

13. vlan issue with bridge router, local virtual iface needs to be in same subnet