FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 06-08-2011, 08:55 PM
Stappers
 
Default Bug#627704: VLAN test with 'ip' WAS: Bug#627704: Realtek Ethernet adapters (r8169 driver)

On Wed, Jun 08, 2011 at 09:10:56PM +0100, Ben Hutchings wrote:
> On Wed, Jun 08, 2011 at 10:07:05PM +0200, Moritz Muehlenhoff wrote:
> >
> > I performed all checks except the VLAN ones (for which I'm unsure what
> > and how to test it).
>
> Use vconfig to create a VLAN interface on top of the r8169 interface
> (e.g. 'vconfig add eth0 2', creating interfacce eth0.2).

On the Internet is stated in many places that vconfig is deprecated.
One place of them is http://bugs.debian.org/501402

The replacement is in 'ip' from the 'iproute' package.

> Do the same on some other machine on the same LAN using the same VID.
> Assign addresses to the VLAN interfaces and try to pass traffic between them.

Here an example to check VLAN without installing vconfig.
Two hosts are used, 'viggo' and 'inertia'

|viggo:~
|# cat /proc/net/vlan/config
|VLAN Dev name | VLAN ID
|Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
|viggo:~
|# ip link add link eth0 name eth0_foo type vlan id 100
|viggo:~
|# cat /proc/net/vlan/config
|VLAN Dev name | VLAN ID
|Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
|eth0_foo | 100 | eth0
|viggo:~
|# ifconfig eth0_foo 192.168.144.1
|viggo:~
|#
|-----------8<----------8<--------
|inertia:~
|# ip link add link eth0 name foo type vlan id 100
|inertia:~
|# ifconfig foo 192.168.144.2
|inertia:~
|# ping -w 3 192.168.144.2
|PING 192.168.144.2 (192.168.144.2) 56(84) bytes of data.
|64 bytes from 192.168.144.2: icmp_req=1 ttl=64 time=0.025 ms
|64 bytes from 192.168.144.2: icmp_req=2 ttl=64 time=0.005 ms
|64 bytes from 192.168.144.2: icmp_req=3 ttl=64 time=0.004 ms
|64 bytes from 192.168.144.2: icmp_req=4 ttl=64 time=0.004 ms
|
|--- 192.168.144.2 ping statistics ---
|4 packets transmitted, 4 received, 0% packet loss, time 2999ms
|rtt min/avg/max/mdev = 0.004/0.009/0.025/0.009 ms
|inertia:~
|# ping -w 3 192.168.144.1
|PING 192.168.144.1 (192.168.144.1) 56(84) bytes of data.
|64 bytes from 192.168.144.1: icmp_req=1 ttl=64 time=3.40 ms
|64 bytes from 192.168.144.1: icmp_req=2 ttl=64 time=0.153 ms
|64 bytes from 192.168.144.1: icmp_req=3 ttl=64 time=0.157 ms
|64 bytes from 192.168.144.1: icmp_req=4 ttl=64 time=0.375 ms
|
|--- 192.168.144.1 ping statistics ---
|4 packets transmitted, 4 received, 0% packet loss, time 2999ms
|rtt min/avg/max/mdev = 0.153/1.023/3.408/1.379 ms
|inertia:~
|# ssh 192.168.144.1
|The authenticity of host '192.168.144.1 (192.168.144.1)' can't be established.
|RSA key fingerprint is c8:70:04:7f:c5:8d:52:e0:8e:04:4c:a1:bf:12:24:00.
|Are you sure you want to continue connecting (yes/no)? no
|Host key verification failed.
|inertia:~
|# ifconfig foo down
|inertia:~
|# ip link delete dev foo
|inertia:~
|#

Hope this helps
at least it avoids installing the vlan package (for the obsolete vconfig)


Cheers
Geert Stappers
 
Old 06-08-2011, 10:58 PM
Ben Hutchings
 
Default Bug#627704: VLAN test with 'ip' WAS: Bug#627704: Realtek Ethernet adapters (r8169 driver)

On Wed, 2011-06-08 at 22:55 +0200, Stappers wrote:
> On Wed, Jun 08, 2011 at 09:10:56PM +0100, Ben Hutchings wrote:
> > On Wed, Jun 08, 2011 at 10:07:05PM +0200, Moritz Muehlenhoff wrote:
> > >
> > > I performed all checks except the VLAN ones (for which I'm unsure what
> > > and how to test it).
> >
> > Use vconfig to create a VLAN interface on top of the r8169 interface
> > (e.g. 'vconfig add eth0 2', creating interfacce eth0.2).
>
> On the Internet is stated in many places that vconfig is deprecated.
> One place of them is http://bugs.debian.org/501402
>
> The replacement is in 'ip' from the 'iproute' package.
[...]

I know, but I still remember how to use vconfig. :-)

Ben.

--
Ben Hutchings
Lowery's Law:
If it jams, force it. If it breaks, it needed replacing anyway.
 

Thread Tools




All times are GMT. The time now is 11:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org