Find the answer to your Linux question:
Results 1 to 2 of 2
So check this out: bash# ifconfig eth0 172.16.1.0 netmask 255.255.255.0 After I run the ifconfig command again, it states that the broadcast address is 172.16.255.255 rather than 172.16.1.255. So it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    route (broadcast addr)


    So check this out:

    bash# ifconfig eth0 172.16.1.0 netmask 255.255.255.0
    After I run the ifconfig command again, it states that the broadcast address is 172.16.255.255 rather than 172.16.1.255.

    So it looks like the broadcast address is really defined by the ip address and the assumed netmask (255.255.0.0) rather than what I type (255.255.255.0).

    Correct me if I'm wrong but shouldn't the broadcast addr be determined from the netmask and the IP address?
    The best things in life are free.

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Can anyone at least try this out on other distros than Debian and tell me if they see the same result?

    As I'm studying for the LPI 202 exam, I would like to be 100% sure about these little things before taking the exam.
    The best things in life are free.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •