openSUSE Forums > Network/Internet » How Do I Change the Bcast Addr??

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-Aug-2008, 15:17
Puzzled Penguin
 
Join Date: Aug 2008
Location: Southern California, USA
Posts: 13
wilberfan hasn't been rated much yet
Default How Do I Change the Bcast Addr??

Just installed openSUSE 11, and I can't get online yet. I'm pretty sure it's because I need a broadcast address of 192.168.0.255 and my ifconfig says it's currently 192.168.1.255. (My other two distros connect fine using 192.168.0.255.)

How the heck do you change that number? I see nothing in the network config gui....

BTW, I'm trying to set up a static connection...

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 27-Aug-2008, 15:31
ab@novell.com
Guest
 
Posts: n/a
Default Re: How Do I Change the Bcast Addr??

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Do you have your IP address and subnet mask set properly? For example
if your IP was set to 192.168.1.x with subnet 255.255.255.0 this could
happen. Alternatively if IP was set to 192.168.0.x or 192.168.1.x and
subnet mask was set to 255.255.254.0 (notice the '4') this could also
happen. Broadcast addresses are usually calculated as the last IP in
the range combining your network and subnet mask so one of those is
(imo) probably wrong.

Good luck.





wilberfan wrote:
> Just installed openSUSE 11, and I can't get online yet. I'm pretty sure
> it's because I need a broadcast address of 192.168.0.255 and my ifconfig
> says it's currently 192.168.1.255. (My other two distros connect fine
> using 192.168.0.255.)
>
> How the heck do you change that number? I see nothing in the network
> config gui....
>
> BTW, I'm trying to set up a static connection...
>
> Thanks in advance!
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItbmf3s42bA80+9kRAvqvAJ9DQ9RjEOA7uWuS4P3b/VssLYY/HQCeOqFG
kNgLfGbS2i1J0Ock4MiiYfg=
=d/tW
-----END PGP SIGNATURE-----
Reply With Quote
  #3 (permalink)  
Old 27-Aug-2008, 15:49
Puzzled Penguin
 
Join Date: Aug 2008
Location: Southern California, USA
Posts: 13
wilberfan hasn't been rated much yet
Default Re: How Do I Change the Bcast Addr??

Here's the numbers that work on both my 'buntu and Sidux installations:

IP ADDR: 192.168.1.100
Netmask: 255.255.255.0
Gateway: 192.168.1.1
Network: 192.168.1.0
Broadcast:192.168.0.255

I've carefully put the first 3 into the appropriate places in the SUSE network config...but don't see anywhere I can specify the last two...

(I'm not sure if I need to set the "network" number--but I have memories of no 'net connection if that last (broadcast) number was incorrect.)
Reply With Quote
  #4 (permalink)  
Old 27-Aug-2008, 16:01
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,221
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: How Do I Change the Bcast Addr??

The broadcast address and network address can be computed from the IP address and netmask. In your case the broadcast address is 192.168.1.255. Here are the forrmulae, in C notation:

network = ip & netmask;
bcast = ip | ~netmask;
Reply With Quote
  #5 (permalink)  
Old 27-Aug-2008, 17:31
Puzzled Penguin
 
Join Date: Aug 2008
Location: Southern California, USA
Posts: 13
wilberfan hasn't been rated much yet
Default Re: How Do I Change the Bcast Addr??

Quote:
Originally Posted by ken_yap View Post
The broadcast address and network address can be computed from the IP address and netmask. In your case the broadcast address is 192.168.1.255. Here are the forrmulae, in C notation:

network = ip & netmask;
bcast = ip | ~netmask;
You'll have to forgive me--but I have no idea what that means (being a non-C speaker)

All I know is this: If I don't specify that my broadcast address is 192.168.0.255 I do NOT connect to the internet. Whether that's "correct" or not--that seems to be what *works*.

(Now, I'll grant you that perhaps something needs to be changed in the modem and/or router (but I have no idea what or where yet. Since, after 3 hours of trying, no one (including Google) has been able to tell me how to change the broadcast address in the network setup in openSUSE 11, I'm willing to entertain the idea that I'll need to change the modem and/or router.)

It's a Motorola SB5101 Modem and a LinkSys BEFSX41 Router...)
Reply With Quote
  #6 (permalink)  
Old 27-Aug-2008, 17:40
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,221
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: How Do I Change the Bcast Addr??

That's a truly weird situation since in that case your broadcast address is not inside your subnet. I can't even begin to imagine why that would be necessary. And in fact the subnet broadcast address (which is what it is) is not used very much, I think Samba uses it, but for most other uses, the global broadcast address 255.255.255.255 is used.

But you can edit the settings after YaST is done, in /etc/sysconfig/network/ifcfg-eth0 (assuming it's eth0) and set BROADCAST to what you want. Hopefully that will get you going and you won't have to investigate this oddity before you change your router.
Reply With Quote
  #7 (permalink)  
Old 27-Aug-2008, 17:41
ab@novell.com
Guest
 
Posts: n/a
Default Re: How Do I Change the Bcast Addr??

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't see how your broadcast address can be 192.168.0.255 when
EVERYTHING else is 192.168.1.x. If that is a setting you put on your
router then fix it along with your other settings. Maybe I'm out of
touch with my TCP/IP knowledge but I don't think so....

Good luck.





wilberfan wrote:
> Here's the numbers that work on both my 'buntu and Sidux installations:
>
> IP ADDR: 192.168.1.100
> Netmask: 255.255.255.0
> Gateway: 192.168.1.1
> Network: 192.168.1.0
> Broadcast:192.168.0.255
>
> I've carefully put the first 3 into the appropriate places in the SUSE
> network config...but don't see anywhere I can specify the last two...
>
> (I'm not sure if I need to set the "network" number--but I have
> memories of no 'net connection if that last (broadcast) number was
> incorrect.)
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItdgU3s42bA80+9kRAsh3AJwO4Wlpuir+HlPhPIi6aK QO0oi6JwCeLpGS
U42HqDE1cj601GS1Xf21GCQ=
=88Rh
-----END PGP SIGNATURE-----
Reply With Quote
  #8 (permalink)  
Old 27-Aug-2008, 18:37
Puzzled Penguin
 
Join Date: Aug 2008
Location: Southern California, USA
Posts: 13
wilberfan hasn't been rated much yet
Default Re: How Do I Change the Bcast Addr??

Thanks for the suggestion! I'll try it here in a second...

But first: Before I saw your most recent reply, I was poking around my router config screens.

I have the option of changing the router address to whatever I want. Since that third number (192.168.*1*.1) seemed to be at some kind of variance to the broadcast address (192.168.0.255), I changed the router IP to 192.168.*0*.1.

I also noticed that the router config screen gives me the following choices of subnet masks:

255.255.255.0
.128
.192
.224
.240
.248
.252

I don't know why those SPECIFIC ones (this is all still somewhat new to me!)--but would I be better off selected something other than 255.255.255.0?

Appreciate your help so far...!
Reply With Quote
  #9 (permalink)  
Old 27-Aug-2008, 18:48
ab@novell.com
Guest
 
Posts: n/a
Default Re: How Do I Change the Bcast Addr??

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Unless you are ready to learn a lot more about networking, stick with
255.255.255.0. Actually, if those are all the last octet (replacing the
..0) then you don't want them as it will make life less-easy, rather than
easier.

Good luck.





wilberfan wrote:
> Thanks for the suggestion! I'll try it here in a second...
>
> But first: Before I saw your most recent reply, I was poking around my
> router config screens.
>
> I have the option of changing the router address to whatever I want.
> Since that third number (192.168.*1*.1) seemed to be at some kind of
> variance to the broadcast address (192.168.0.255), I changed the router
> IP to 192.168.*0*.1.
>
> I also noticed that the router config screen gives me the following
> choices of subnet masks:
>
> 255.255.255.0
> .128
> .192
> .224
> .240
> .248
> .252
>
> I don't know why those SPECIFIC ones (this is all still somewhat new to
> me!)--but would I be better off selected something other than
> 255.255.255.0?
>
> Appreciate your help so far...!
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItefd3s42bA80+9kRAr/IAKCGfY4sMvJNuWKHiD4RVJG7qtjHBQCfdpQH
8RPScpCknmnrNLzr5VQscuA=
=yp74
-----END PGP SIGNATURE-----
Reply With Quote
  #10 (permalink)  
Old 27-Aug-2008, 18:57
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,221
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: How Do I Change the Bcast Addr??

Those subnet masks correspond to different sizes of subnet, going from a 256 (actually 254 effectively, since the network address and the broadcast address are not available) size subnet downwards, halving each time. I don't see any reason why making your subnet smaller would make any difference to your situation.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2