Discussion:
[fedora-arm] raspberry pi with F25
solarflow99
2017-01-28 07:32:49 UTC
Permalink
Has anyone setup subinterfaces like eth0.10, etc? I have a tagged vlan and
I can't get it to see the devices at all, all I ever get when trying to
bring up the interface is:

device does not seem to be present delaying initialization

I had to modprobe 8021q manually, but it doesn't help anyways, even without
tagging it doesn't see anything else except eth0 by itself.
Peter Robinson
2017-01-28 09:02:07 UTC
Permalink
Post by solarflow99
Has anyone setup subinterfaces like eth0.10, etc? I have a tagged vlan and
I can't get it to see the devices at all, all I ever get when trying to
device does not seem to be present delaying initialization
I had to modprobe 8021q manually, but it doesn't help anyways, even without
tagging it doesn't see anything else except eth0 by itself.
I don't believe the smsc95xx driver supports vlans (from a grep of the
driver code) I'm not sure if that's a hardware limitation or whether
it's just not been implemented in the driver.
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedor
solarflow99
2017-01-28 21:09:57 UTC
Permalink
hmm, so then why won't normal subinterfaces work either then? Just taking
a look over the code, I see what looks like vlan support as well:

1197 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1197>
*/* Init Rx */*1198
<http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1198>
*/* Set Vlan */*1199
<http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1199>
ret <http://lxr.free-electrons.com/ident?i=ret> =
smsc95xx_write_reg
<http://lxr.free-electrons.com/ident?i=smsc95xx_write_reg>(dev
<http://lxr.free-electrons.com/ident?i=dev>, VLAN1
<http://lxr.free-electrons.com/ident?i=VLAN1>, (u32
<http://lxr.free-electrons.com/ident?i=u32>)ETH_P_8021Q
<http://lxr.free-electrons.com/ident?i=ETH_P_8021Q>);1200
<http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1200>
if (ret <http://lxr.free-electrons.com/ident?i=ret> < 0)1201
<http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1201>
return ret
<http://lxr.free-electrons.com/ident?i=ret>;
Post by solarflow99
Post by solarflow99
Has anyone setup subinterfaces like eth0.10, etc? I have a tagged vlan
and
Post by solarflow99
I can't get it to see the devices at all, all I ever get when trying to
device does not seem to be present delaying initialization
I had to modprobe 8021q manually, but it doesn't help anyways, even
without
Post by solarflow99
tagging it doesn't see anything else except eth0 by itself.
I don't believe the smsc95xx driver supports vlans (from a grep of the
driver code) I'm not sure if that's a hardware limitation or whether
it's just not been implemented in the driver.
solarflow99
2017-01-28 22:21:11 UTC
Permalink
ha! I got it to work. Had to be done manually, I have no idea why the
ifcfg- scripts just won't take it, all it ever accepted was eth0:0 as a
regular subinterface and thats it.


ip link add link eth0 name eth0.1 type vlan id 1
ip addr add 0.0.0.0 dev eth0.1
ip link set eth0.1 up
dhclient eth0.1


# ip -d link show eth0.1
3: ***@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP mode DEFAULT group default qlen 1000
link/ether b8:27:eb:20:25:16 brd ff:ff:ff:ff:ff:ff promiscuity 0
vlan protocol 802.1Q id 1 <REORDER_HDR> addrgenmode eui64 numtxqueues 1
numrxqueues 1

# ip addr show eth0.1
3: ***@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP group default qlen 1000
link/ether b8:27:eb:20:25:16 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.117/24 brd 192.168.0.255 scope global dynamic eth0.1
valid_lft 86066sec preferred_lft 86066sec
inet6 fe80::ba27:ebff:fe20:2516/64 scope link
valid_lft forever preferred_lft forever



And... no one else on here knew that...
Post by solarflow99
hmm, so then why won't normal subinterfaces work either then? Just taking
1197 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1197> */* Init Rx */*1198 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1198> */* Set Vlan */*1199 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1199> ret <http://lxr.free-electrons.com/ident?i=ret> = smsc95xx_write_reg <http://lxr.free-electrons.com/ident?i=smsc95xx_write_reg>(dev <http://lxr.free-electrons.com/ident?i=dev>, VLAN1 <http://lxr.free-electrons.com/ident?i=VLAN1>, (u32 <http://lxr.free-electrons.com/ident?i=u32>)ETH_P_8021Q <http://lxr.free-electrons.com/ident?i=ETH_P_8021Q>);1200 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1200> if (ret <http://lxr.free-electrons.com/ident?i=ret> < 0)1201 <http://lxr.free-electrons.com/source/drivers/net/usb/smsc95xx.c#L1201> return ret <http://lxr.free-electrons.com/ident?i=ret>;
Post by solarflow99
Post by solarflow99
Has anyone setup subinterfaces like eth0.10, etc? I have a tagged vlan
and
Post by solarflow99
I can't get it to see the devices at all, all I ever get when trying to
device does not seem to be present delaying initialization
I had to modprobe 8021q manually, but it doesn't help anyways, even
without
Post by solarflow99
tagging it doesn't see anything else except eth0 by itself.
I don't believe the smsc95xx driver supports vlans (from a grep of the
driver code) I'm not sure if that's a hardware limitation or whether
it's just not been implemented in the driver.
Peter Robinson
2017-01-31 23:08:59 UTC
Permalink
Post by solarflow99
ha! I got it to work. Had to be done manually, I have no idea why the
ifcfg- scripts just won't take it, all it ever accepted was eth0:0 as a
regular subinterface and thats it.
ip link add link eth0 name eth0.1 type vlan id 1
ip addr add 0.0.0.0 dev eth0.1
ip link set eth0.1 up
dhclient eth0.1
# ip -d link show eth0.1
state UP mode DEFAULT group default qlen 1000
link/ether b8:27:eb:20:25:16 brd ff:ff:ff:ff:ff:ff promiscuity 0
vlan protocol 802.1Q id 1 <REORDER_HDR> addrgenmode eui64 numtxqueues 1
numrxqueues 1
# ip addr show eth0.1
state UP group default qlen 1000
link/ether b8:27:eb:20:25:16 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.117/24 brd 192.168.0.255 scope global dynamic eth0.1
valid_lft 86066sec preferred_lft 86066sec
inet6 fe80::ba27:ebff:fe20:2516/64 scope link
valid_lft forever preferred_lft forever
And... no one else on here knew that...
Likely nobody has a need to use vlans on the device. I certainly
haven't tested it.
Post by solarflow99
Post by solarflow99
hmm, so then why won't normal subinterfaces work either then? Just taking
1197 /* Init Rx */
1198 /* Set Vlan */
1199 ret = smsc95xx_write_reg(dev, VLAN1, (u32)ETH_P_8021Q);
1200 if (ret < 0)
1201 return ret;
Post by Peter Robinson
Post by solarflow99
Has anyone setup subinterfaces like eth0.10, etc? I have a tagged vlan and
I can't get it to see the devices at all, all I ever get when trying to
device does not seem to be present delaying initialization
I had to modprobe 8021q manually, but it doesn't help anyways, even without
tagging it doesn't see anything else except eth0 by itself.
I don't believe the smsc95xx driver supports vlans (from a grep of the
driver code) I'm not sure if that's a hardware limitation or whether
it's just not been implemented in the driver.
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscri

Continue reading on narkive:
Loading...