OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: adem0x on June 25, 2017, 05:46:00 pm

Title: Setting speed and duplex for PPPoE
Post by: adem0x on June 25, 2017, 05:46:00 pm
In the OPNsense box I have an Intel quad gigabit NIC, one of which is connected to an old (don't know year or model details) Cisco PPPoE router.

Apparently, this Cisco router has only 100 MBit/s ports that also expects the other side to be limited to 100 MBit/s --autonegotiate does not seem to work reliably.

In my case, when I connect with Intel quad gigabit NIC, Cisco router's port gets overloaded and shuts that port down. The only way to get it back up is by resetting the router.

Since it is ISP's equipment, I am not allowed to do the resetting by myself (I am not even allowed to enter the room where the router is). And, that means I have to call for service so that someone comes and does the resetting.

Having had to to do this a couple of times has earned me a lot of frowning looks from both the service people and from others that use the same router.

So.. A long story short:

Is there a way to setting (and limiting) the speed and duplex for the physical NIC port that uses PPPoE.

PS: There's such an option for 'Dynamic IP' option; I am asking how I could to the same for PPPoE.
Title: Re: Setting speed and duplex for PPPoE
Post by: bartjsmit on June 25, 2017, 05:51:32 pm
Interfaces -> WAN -> Speed and duplex

Bart...
Title: Re: Setting speed and duplex for PPPoE
Post by: adem0x on June 26, 2017, 07:27:44 am
But, please take a look at the attached screenshot.

There's no 'Interfaces -> WAN -> Speed and duplex'.

This is for WAN1 (I have changed its name; that's why I blacked it out) which is igb0.

Here's the relevant part of the output for 'pciconf -lv'

Code: [Select]
igb0@pci0:1:0:0:        class=0x020000 card=0x12a18086 chip=0x150e8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82580 Gigabit Network Connection'
    class      = network
    subclass   = ethernet
igb1@pci0:1:0:1:        class=0x020000 card=0x12a18086 chip=0x150e8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82580 Gigabit Network Connection'
    class      = network
    subclass   = ethernet
igb2@pci0:1:0:2:        class=0x020000 card=0x12a18086 chip=0x150e8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82580 Gigabit Network Connection'
    class      = network
    subclass   = ethernet
igb3@pci0:1:0:3:        class=0x020000 card=0x12a18086 chip=0x150e8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82580 Gigabit Network Connection'
    class      = network
    subclass   = ethernet
re0@pci0:2:0:0: class=0x020000 card=0x79131462 chip=0x816810ec rev=0x0c hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet

BTW, I am using OPNsense 17.1.8-amd64
Title: Re: Setting speed and duplex for PPPoE
Post by: bartjsmit on June 26, 2017, 06:20:06 pm
Mine shows 'Speed and Duplex' under the 'MSS' line.

Which version are you on?

Bart...
Title: Re: Setting speed and duplex for PPPoE
Post by: adem0x on June 26, 2017, 06:37:37 pm
Initially, I think I started with 17.1.4

Now: recently updated to OPNsense 17.1.8-amd64.

It has always been this way and it's driving me up the wall.
Title: Re: Setting speed and duplex for PPPoE
Post by: bartjsmit on June 26, 2017, 06:54:43 pm
The speed and duplex selection may be driver specific, although when pressed I would go for Intel myself. Do you have another NIC you can test with?

Bart...
Title: Re: Setting speed and duplex for PPPoE
Post by: adem0x on June 26, 2017, 09:39:53 pm
I have just tried another NIC card. Details are below.

Code: [Select]
em0@pci0:3:0:0: class=0x020000 card=0x10bc8086 chip=0x10bc8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller (Copper)'
    class      = network
    subclass   = ethernet
em1@pci0:3:0:1: class=0x020000 card=0x10bc8086 chip=0x10bc8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller (Copper)'
    class      = network
    subclass   = ethernet
em2@pci0:4:0:0: class=0x020000 card=0x10bc8086 chip=0x10bc8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller (Copper)'
    class      = network
    subclass   = ethernet
em3@pci0:4:0:1: class=0x020000 card=0x10bc8086 chip=0x10bc8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82571EB Gigabit Ethernet Controller (Copper)'
    class      = network
    subclass   = ethernet
re0@pci0:5:0:0: class=0x020000 card=0x79131462 chip=0x816810ec rev=0x0c hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet

And, the result is the same.

Speed and Duplex option does not show for the first port (it does show for the other 3 ports) when it is PPPoE.

I am inclined to think that this is a bug in the OPNsense GUI.
Title: [SOLVED] Re: Setting speed and duplex for PPPoE
Post by: adem0x on June 26, 2017, 10:00:09 pm
In the Interfaces page of OPNsense GUI, I deleted all the interfaces on the quad NIC, and recreated each one.

This solved the problem: Now every interface shows the 'Speed and Duplex' listbox.