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
Attachment:
signature.asc
Description: Digital signature