LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2023, 11:55 PM   #1
bkumar82
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Unable to get the DHCP IP Address on the Bridge with vlan sub interface


Hi

I have a bridge configuration that needs the IP Address however my DHCP Server can be reachable by vlan 3000 and the following is configured in the /etc/network/interfaces and the br0 comes up as the linux boots up and DHCP Discover is sent and the response is being received by the physical layer but the ip address does not reach the br0

auto ens1f0
auto ens1f0.3000
iface ens1f0.3000 inet manual
vlan-raw-device ens1f0

auto br0
iface br0 inet dhcp
bridge_ports ens1f0.3000
#bridge_waitport 0
bridge_maxwait 0
bridge_stp off
Screenshot of the DHCP Discover sent
Screenshot of the DHCP Offer seen in the /var/lib/dhcp/dhclient.br0.leases is attached.

the interface ens1f0 is up
the interface br0 is up

if i try it without the br0 on the interface ens1f0.3000 with dhcp then the ip address is seen for ens1f0.3000 but for the br0 the ip address is not seen.

Version: Debian
Linux test 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64 GNU/Linux
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2023-01-11 at 9.47.53 PM.png
Views:	16
Size:	90.1 KB
ID:	40215   Click image for larger version

Name:	Screen Shot 2023-01-11 at 9.49.57 PM.png
Views:	12
Size:	88.8 KB
ID:	40216  

Last edited by bkumar82; 01-12-2023 at 01:16 AM.
 
Old 01-21-2023, 06:13 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
The fact that a lease entry appears in the lease file would indicate that at some point this must have worked; the client must have sent a DHCP ACK to the server in order to obtain the lease.

I'm not sure how Debian expects the network configuration file to be structured when creating a bridge. I do know that in order for a bridge to work, the following must be done:
  1. A bridge interface must be created
  2. The relevant physical interfaces must be added to the bridge
  3. All physical interfaces must be activated ("up")
  4. The bridge interface must be activated ("up")
  5. Any IP address(es) must be assigned to the bridge interface, not any of the physical interfaces
The steps above may be performed in any order, but steps 1-4 must be completed before 5 if you're using DHCP.

You could try performing these steps manually using the brctl and ip commands, and concentrate on getting the Debian-specific bits right once you've confirmed that the configuration is indeed working.

Also, note that DHCP ACKs are sent directly to the IP address of the DHCP server, and not to the broadcast address. I'm mentioning this because you didn't show the exact tcpdump command used to dump the DHCP transaction; if you were filtering on broadcasts, you'd have missed the final bits of the transaction.
 
Old 01-21-2023, 12:39 PM   #3
bkumar82
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks @ser Olmy i will give it a try and post the outcome.
 
Old 01-21-2023, 04:58 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
The bridge should be over a physical interface normally, NOT a VLAN interface. You can try a bridge over ens1f0.
 
Old 01-28-2023, 03:26 PM   #5
bkumar82
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Found that this was the result of the firmware issue and was fixed after doing the following firmware-misc-nonfree
 
  


Reply

Tags
debian, dhclient, netwoking



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should a VLAN Interface accept only VLAN ID's it is configured for? mike1111111 Linux - Networking 4 01-05-2021 09:13 AM
Private VLAN: proxy_arp_pvlan flag in mac-vlan interface in debian kernel thanigz2589 Linux - Networking 0 08-25-2020 01:45 PM
[SOLVED] Creating a VLAN interface on top of another VLAN interface jbbroccard2 Linux - Networking 1 05-22-2013 01:25 AM
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration