News: This forum is now permanently frozen.
Pages: [1]
Topic: [Solved] APU1C: how to make gigabit NICs run at 1 Gbps?  (Read 2022 times)
« on: April 03, 2014, 18:12:18 »
winnall *
Posts: 10

I've got M0n0wall 1.8.1 running on an APU1C from PC Engines. I'm using it to replace an old ALIX because our Internet provider is offering more speed, which means we need a firewall which has and can service gigabit ethernet (as opposed to 100Mb). APU1c has such gigabit interfaces, as shown by the following extract from dmesg:

re2: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port 0x3000-0x30ff mem 0xfea00000-0xfea00fff,0xfe900000-0xfe903fff at device 0.0 on pci3

When M0n0wall first came up on the APU1C the interfaces reported

Media 100baseTX <full-duplex>

but that didn't worry me because it was still connected to 100Mb devices.

However, I have now started to replace the connected devices with gigabit devices (and cables!). But M0n0wall still reports the media as being 100baseTX. More to the point, the LEDs on the connected device (a gigabit switch) are also reporting 100 Mb.

ifconfig reports

re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
   ether 00:0d:b9:32:fe:6e
   inet 192.168.1.5 netmask 0xfffff800 broadcast 192.168.7.255
   inet6 fe80::20d:b9ff:fe32:fe6e%re2 prefixlen 64 scopeid 0x3
   nd6 options=41<PERFORMNUD,NO_RADR>
   media: Ethernet autoselect (100baseTX <full-duplex>)
   status: active


suggesting to me ("autoselect") that the interface should have automatically set itself to 1000base-something.

How do I tell M0n0wall to run the interfaces at 1 Gb?

Steve
« Last Edit: April 04, 2014, 00:17:12 by winnall »
« Reply #1 on: April 03, 2014, 18:46:39 »
Fred Grayson *****
Posts: 994

Run ifconfig -m and see what it reports under supported media.


--
Google is your friend and Bob's your uncle.
« Reply #2 on: April 03, 2014, 19:50:31 »
winnall *
Posts: 10

Thanks for your reply.

ifconfig -m shows the following:

re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
   capabilities=839db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC,LINKSTATE>
   ether 00:0d:b9:32:fe:6e
   inet 192.168.1.5 netmask 0xfffff800 broadcast 192.168.7.255
   inet6 fe80::20d:b9ff:fe32:fe6e%re2 prefixlen 64 scopeid 0x3
   nd6 options=41<PERFORMNUD,NO_RADR>
   media: Ethernet autoselect (100baseTX <full-duplex>)
   status: active
   supported media:
      media autoselect mediaopt flowcontrol
      media autoselect
      media 1000baseT mediaopt full-duplex,flowcontrol,master
      media 1000baseT mediaopt full-duplex,flowcontrol
      media 1000baseT mediaopt full-duplex,master
      media 1000baseT mediaopt full-duplex
      media 1000baseT mediaopt master
      media 1000baseT
      media 100baseTX mediaopt full-duplex,flowcontrol
      media 100baseTX mediaopt full-duplex
      media 100baseTX
      media 10baseT/UTP mediaopt full-duplex,flowcontrol
      media 10baseT/UTP mediaopt full-duplex
      media 10baseT/UTP
      media none


I tried ifconfig re2 media 1000baseT and ifconfig re2 media 1000baseTX but both cause the NICs to hang (the LEDs go off and communication ceases.

Steve
« Reply #3 on: April 03, 2014, 20:00:49 »
Fred Grayson *****
Posts: 994

I was going to suggest setting media options in the config.xml file, but the result would likely be the same.

--
Google is your friend and Bob's your uncle.
« Reply #4 on: April 03, 2014, 22:27:48 »
winnall *
Posts: 10

Do you think this is something I would be better off pursuing with PC Engines, the makers of the APU1C?

Steve
« Reply #5 on: April 03, 2014, 22:40:13 »
Fred Grayson *****
Posts: 994

I would ask PC Engines and also tell them exactly what device it is connected to.

--
Google is your friend and Bob's your uncle.
« Reply #6 on: April 04, 2014, 00:16:38 »
winnall *
Posts: 10

You're not going to believe this  Roll Eyes

I had bought and was using a pristine Cat 6 cable to connect the APU1C to the switch. Googling around led me to think I ought to at least try with a Cat 5e cable, and I found one in my drawer full of useful cables.

Lo, it worked straightaway. There's a lesson there somewhere.

Thanks for your help.

Steve
« Reply #7 on: April 04, 2014, 00:36:05 »
Fred Grayson *****
Posts: 994

Ouch.

--
Google is your friend and Bob's your uncle.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines