Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.