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 05-10-2018, 07:36 AM   #1
creinkaizer598
LQ Newbie
 
Registered: Nov 2017
Posts: 12

Rep: Reputation: Disabled
Help some problems in dhcpcd


I have problem in dhcpcd. When i enable the dhcpcd there is always broadcast in the static ip (viewed through ip addr)
< static ip > brd 10.255.255.255
So how do i remove this broadcast thing? And also can i set the some routes in the routing table when enabling dhcpcd except the gateway? Any help is appreciated. Thanks!
 
Old 05-10-2018, 07:49 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Please post more detailed information.

What is the sequence defined in dhcpd to issue the address, what is the address pool.

Copy & paste all the information from ip addr and post.

We don't magic powers. And instead of guessing what information you hold back I think it is fair that you put in your effort to provide the information.

Besides, a broadcast address of 10.x.x.255 does not look strange to me.

jlinkels
 
1 members found this post helpful.
Old 05-10-2018, 08:04 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
I have problem in dhcpcd. When i enable the dhcpcd there is always broadcast in the static ip (viewed through ip addr)
< static ip > brd 10.255.255.255
What distribution/version are you running? I agree that your question is confusing and you have not provided enough information. The first steps in the DHCP protocol does send a broadcast message because the client networking has not been configured yet. The client can send an IP address to the server. The only way to not send a broadcast message is to not use DHCP and configure a static IP address.
 
1 members found this post helpful.
Old 05-11-2018, 08:00 AM   #4
creinkaizer598
LQ Newbie
 
Registered: Nov 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm running an android linux using only terminal emulator. Ip addr output below
https://www.uploadhouse.com/viewfile.php?id=26035419
I want that brd 10.x.x.255 beside my static ip will be disappeared. Is there some sort of option in dhcpcd.conf that will get rid of it? Sorry for noob question im new at this thing.

Last edited by creinkaizer598; 05-11-2018 at 08:06 AM.
 
Old 05-11-2018, 09:06 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
New to what thing? The ip command shows the configuration / status of your network adapter.

You can not completely hide your self on a local LAN.
 
Old 05-12-2018, 01:51 AM   #6
creinkaizer598
LQ Newbie
 
Registered: Nov 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
That static ip address was given by dhcpcd. So now i want to reconfigure dhcpcd.conf. It seems that brd ip is and metric in routing table is default. i did change the default metric to 1 by putting metric 0 to dhcpcd.conf. Is there a similar option like metric that will completely erase the brd ip?

Last edited by creinkaizer598; 05-12-2018 at 01:52 AM.
 
Old 05-16-2018, 06:19 AM   #7
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
The broadcast address is setup automatically by most commands that set the IP address.
It mostly never gets used as few programs can usefully use broadcast.

I would interpret that "brd" address in "ip addr" as what broadcast address that device would answer.
The first line of the output from "ip addr" has the enable flags, such as <BROADCAST,MULTICAST,UP> .

The command to clear the broadcast address.
> ifconfig eth0 -broadcast

When I try this I get the message.
Warning: Interface eth0 still in BROADCAST mode.
I assume that my hardware or driver does not allow turning off BROADCAST.

When you leave off the broadcast address, it does not change anything, but gives no error message.
> ifconfig eth0 broadcast

But when I set a broadcast address of 0.0.0.0, the brd goes away in "ip addr".
However, it leaves the BROADCAST flag still enabled.
> ifconfig eth0 broadcast 0.0.0.0

To set a broadcast address.
> ifconfig eth0 broadcast 192.168.2.255

For more information
> man ifconfig

Last edited by selfprogrammed; 05-16-2018 at 06:36 AM.
 
  


Reply



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
DDclient slack13 dhcpcd.sh vs dhcpcd.eth0.exe question nl1at Slackware 3 10-27-2010 01:51 PM
dhcpcd problems slugman Slackware 12 06-10-2010 06:07 AM
dhcpcd wireless problems. dhcpcd wlan0 removes essid entry in iwconfig. Romanus81 Slackware 3 08-25-2008 10:34 PM
dhcpcd problems relpats_eht Slackware 3 09-18-2005 07:07 PM
dhcpcd problems drobe011 Slackware 1 07-09-2005 09:32 PM

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

All times are GMT -5. The time now is 06:25 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