OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • DHCP send option not sent
« previous next »
  • Print
Pages: 1 [2] 3 4 ... 6

Author Topic: DHCP send option not sent  (Read 8314 times)

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: DHCP send option not sent
« Reply #15 on: January 29, 2022, 03:27:29 pm »
Quote from: marjohn56 on January 29, 2022, 01:56:57 pm
@nemric  - Seems the version from 21.7 is working OK, at least on my test device so I'm attaching it here. No guarentees, but try it. At least you have a local device and can revert. @nivek1612 is concerned he might lose everyhing if he tries, so would you try it and let us know? Remember to set the permissions to 0555 after copying the attached to /sbin .

Hi, I'm not sure to understand what you ask me for.
I'm running 21.7 now, and my vlan100 get an ip from ISP and everything works fine

The file you want me to try is for 22.1 ?
Logged

s4rs

  • Full Member
  • ***
  • Posts: 113
  • Karma: 4
    • View Profile
Re: DHCP send option not sent
« Reply #16 on: January 29, 2022, 03:56:37 pm »
Quote from: marjohn56 on January 29, 2022, 02:44:27 pm
Quote from: s4rs on January 29, 2022, 02:02:25 pm
I am having Internet access issues post 22.1 upgrade. I did a tcpdump on the WAN interface when connecting to my ISP. A DHCP address is being offered and accepted but I get no traffic. Can't ping, nothing is getting out. Strange..


If you are getting a WAN v4 address, then it's not the client causing you issues. Try some deeper diagnostics from the WAN interface, ping 8.8.8.8 for example, if that works then try a ping to www.google.com, that will prove if the dns ( unbound ) is working. My test system which is running 22.1 is working fine, and it's a simple dual stack setup.

Pinging the GW fails. Interface info and failure below

Code: [Select]

igb0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: WAN
        options=4000400<LRO,NOMAP>
        ether d4:a9:28:14:e8:98
        inet6 fe80::d6a9:28ff:fe14:e898%igb0_vlan10 prefixlen 64 scopeid 0x6
        inet 108.20.117.101 netmask 0xffffff00 broadcast 108.20.117.255
        groups: vlan
        vlan: 10 vlanproto: 802.1q vlanpcp: 0 parent interface: igb0
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Guest (igb0_vlan200) -> v4: 192.168.200.30/27
 LAN (igb0_vlan100) -> v4: 192.168.1.254/24
 PIAWG (wg0)     -> v4: 10.7.154.210/8
 WAN (igb0_vlan10) -> v4/DHCP4: 108.20.117.101/24


PING 108.20.117.1 (108.20.117.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down


Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: DHCP send option not sent
« Reply #17 on: January 29, 2022, 06:31:01 pm »

Yes please, if you can run up 22.1 and then copy the dhclient over to that and reboot, see if it works... if not then we need to look elsewehere for the issue, but I suspect that it's the client.

Quote from: nemric on January 29, 2022, 03:27:29 pm
Quote from: marjohn56 on January 29, 2022, 01:56:57 pm
@nemric  - Seems the version from 21.7 is working OK, at least on my test device so I'm attaching it here. No guarentees, but try it. At least you have a local device and can revert. @nivek1612 is concerned he might lose everyhing if he tries, so would you try it and let us know? Remember to set the permissions to 0555 after copying the attached to /sbin .

Hi, I'm not sure to understand what you ask me for.
I'm running 21.7 now, and my vlan100 get an ip from ISP and everything works fine

The file you want me to try is for 22.1 ?
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: DHCP send option not sent
« Reply #18 on: January 29, 2022, 06:34:23 pm »

Are you on OR France as well?

Quote from: s4rs on January 29, 2022, 03:56:37 pm
Quote from: marjohn56 on January 29, 2022, 02:44:27 pm
Quote from: s4rs on January 29, 2022, 02:02:25 pm

I am having Internet access issues post 22.1 upgrade. I did a tcpdump on the WAN interface when connecting to my ISP. A DHCP address is being offered and accepted but I get no traffic. Can't ping, nothing is getting out. Strange..



If you are getting a WAN v4 address, then it's not the client causing you issues. Try some deeper diagnostics from the WAN interface, ping 8.8.8.8 for example, if that works then try a ping to www.google.com, that will prove if the dns ( unbound ) is working. My test system which is running 22.1 is working fine, and it's a simple dual stack setup.


Pinging the GW fails. Interface info and failure below

Code: [Select]

igb0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: WAN
        options=4000400<LRO,NOMAP>
        ether d4:a9:28:14:e8:98
        inet6 fe80::d6a9:28ff:fe14:e898%igb0_vlan10 prefixlen 64 scopeid 0x6
        inet 108.20.117.101 netmask 0xffffff00 broadcast 108.20.117.255
        groups: vlan
        vlan: 10 vlanproto: 802.1q vlanpcp: 0 parent interface: igb0
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Guest (igb0_vlan200) -> v4: 192.168.200.30/27
 LAN (igb0_vlan100) -> v4: 192.168.1.254/24
 PIAWG (wg0)     -> v4: 10.7.154.210/8
 WAN (igb0_vlan10) -> v4/DHCP4: 108.20.117.101/24


PING 108.20.117.1 (108.20.117.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down

Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13679
  • Karma: 1176
    • View Profile
Re: DHCP send option not sent
« Reply #19 on: January 29, 2022, 07:30:55 pm »
The old one was https://github.com/opnsense/src/commit/5e4e4f842b714e

Looking at the config it should ignore vlan-parent and vlan-id so that vlan-pcp is still read and used. I've made sure to set net.link.vlan.mtag_pcp=1 on 22.1 for that reason.

One thing to try is to scrub vlan-parent and vlan-id from the configuration, but I worked on compatibility with defunct options including submitting it to FreeBSD so I would rather assume the PCP is not set correctly?


Cheers,
Franco
Logged

s4rs

  • Full Member
  • ***
  • Posts: 113
  • Karma: 4
    • View Profile
Re: DHCP send option not sent
« Reply #20 on: January 29, 2022, 10:44:54 pm »
Quote from: marjohn56 on January 29, 2022, 06:34:23 pm


No I am in the US and my carrier is Verizon FIOS. I don't think its a carrier issue since 22.1 fails in my lab just like it does with my provider.

Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: DHCP send option not sent
« Reply #21 on: January 29, 2022, 11:21:05 pm »

No, I know it's not the ISP, just wondered if you were OR France.

Quote from: s4rs on January 29, 2022, 10:44:54 pm
No I am in the US and my carrier is Verizon FIOS. I don't think its a carrier issue since 22.1 fails in my lab just like it does with my provider.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

nivek1612

  • Full Member
  • ***
  • Posts: 179
  • Karma: 23
    • View Profile
Re: DHCP send option not sent
« Reply #22 on: January 30, 2022, 12:20:34 pm »
@nemric let me know if you are unsure how to replace the dhclient file. I can help. I just don't want to try on my remote system in case it crashes the router. I will have no way back. Sitting next to it is very easy and risk free. 
Logged
OPNsense 22.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 22.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: DHCP send option not sent
« Reply #23 on: January 30, 2022, 12:54:20 pm »
Hi,

I will give it a try tomorrow, I need internet today ^^

@marjohn56 my ISP is not OR france (presume it's orange) but like orange I need a VLAN to bypass the box.
Logged

s4rs

  • Full Member
  • ***
  • Posts: 113
  • Karma: 4
    • View Profile
Re: DHCP send option not sent
« Reply #24 on: January 30, 2022, 01:53:33 pm »
Quote from: marjohn56 on January 29, 2022, 01:56:57 pm
@nemric  - Seems the version from 21.7 is working OK, at least on my test device so I'm attaching it here. No guarentees, but try it. At least you have a local device and can revert. @nivek1612 is concerned he might lose everyhing if he tries, so would you try it and let us know? Remember to set the permissions to 0555 after copying the attached to /sbin .

I tested the dhclient you attached. While DHCP is working consistently for me with the new client it doesn't fix getting out to the internet. I still lose internet access with 22.1 and when I ping I get this error

Code: [Select]
root@crawford:~ # ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host

while it is getting an IP address routing doesn't seem to be getting setup properly.. Let me know anything else you think I should test.
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: DHCP send option not sent
« Reply #25 on: January 30, 2022, 03:26:14 pm »
Quote from: marjohn56 on January 29, 2022, 06:31:01 pm

Yes please, if you can run up 22.1 and then copy the dhclient over to that and reboot, see if it works... if not then we need to look elsewehere for the issue, but I suspect that it's the client.


I finally make the image of 22.1 written on an USB key, see other post ...

What if I write your Dhclient on the USBkey to test it from live boot ? will the test be the same ?
To be honest I don't really want to update, test, reinstall(or not) and so on ^^ but I agree to make some test !
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: DHCP send option not sent
« Reply #26 on: January 30, 2022, 04:02:44 pm »
So, I tried to replace dhclient on the USB key and then try to boot on live OS

My Vlan didn't obtain any ip again, the pb seems to be elsewhere :(
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 179
  • Karma: 23
    • View Profile
Re: DHCP send option not sent
« Reply #27 on: January 31, 2022, 09:22:08 am »
Hmmm interesting

Did you remember to change the permissions of the dhclient after you copied it to the usb.
Logged
OPNsense 22.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 22.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13679
  • Karma: 1176
    • View Profile
Re: DHCP send option not sent
« Reply #28 on: January 31, 2022, 10:35:20 am »
Maybe, just maybe this is about VLAN parent not being assigned now using hardware features that are not supported/broken? Try to assign the VLAN parent, enable it and see if that yields a response. From what I can see here and assuming dhclient does what it supposedly can the problem might be not there at all.

For reference see: https://github.com/opnsense/core/issues/5521


Cheers,
Franco
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 179
  • Karma: 23
    • View Profile
Re: DHCP send option not sent
« Reply #29 on: January 31, 2022, 10:51:37 am »
Hi Franco

So I tried that but no joy.

Added a new interface on igb0 called "VLAN Spoof"
 
Rebooted after save and apply

Still no IP
« Last Edit: January 31, 2022, 10:58:07 am by nivek1612 »
Logged
OPNsense 22.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 22.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

  • Print
Pages: 1 [2] 3 4 ... 6
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • DHCP send option not sent
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2