changing IP address: /etc/default/tcp and S85tcp

changing IP address: /etc/default/tcp and S85tcp

Post by - bill » Sat, 08 Jan 2000 04:00:00



I am perusing Jeff's excellent article on how to change the system name
or IP address (which I will be doing Sunday :{

As I was looking through the files that I will need to change I noted
that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255

My current IP address is xxx.yyy.177.98

Is the current BROADCAST wrong or what ?

2nd question, same subject:
I note that /etc/rc2.d/S85tcp has a route add command with two (or is it
3) IP numbers following it:
/etc/route add 224.0.0.0 xxx.yyy.177.98 0

that is: the 224.0.0.0 address (??) my IP address and a zero.

why is the 224....address in there ?
--

-bill-


 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Jean-Pierre Radle » Sat, 08 Jan 2000 04:00:00


- bill - propounded (on Fri, Jan 07, 2000 at 05:31:56PM -0500):
| I am perusing Jeff's excellent article on how to change the system name
| or IP address (which I will be doing Sunday :{
|
| As I was looking through the files that I will need to change I noted
| that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255
|
| My current IP address is xxx.yyy.177.98
|
| Is the current BROADCAST wrong or what ?

Maybe.  For a /24 network (old 'Class C' type), you should have BROADCAST
set to 255.255.255.0

| 2nd question, same subject:
| I note that /etc/rc2.d/S85tcp has a route add command with two (or is it
| 3) IP numbers following it:
| /etc/route add 224.0.0.0 xxx.yyy.177.98 0
|
| that is: the 224.0.0.0 address (??) my IP address and a zero.
|
| why is the 224....address in there ?

Multicasting. Look up RFC 1112.

You could commnet it out of /etc/tcp, but any changes made by netconfig &
friends will reinsert the line.  That route consumes no resources by just
existing, except the energy required to scratch one's head.

--
JP

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Tony Lawrenc » Sun, 09 Jan 2000 04:00:00



> I am perusing Jeff's excellent article on how to change the system name
> or IP address (which I will be doing Sunday :{

> As I was looking through the files that I will need to change I noted
> that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255

> My current IP address is xxx.yyy.177.98

> Is the current BROADCAST wrong or what ?

If you are a class C, then you should be xxx.yyy.177.255

If you are less than that, then the 255 is going to change.
If you are more than that, then the 3rd octet would change,
but 171 is a non-contiguous mask, which used to be
technically legal, but was always a mess.

See http://www.aplawrence.com/Unixart/net101.html

Quote:

> 2nd question, same subject:
> I note that /etc/rc2.d/S85tcp has a route add command with two (or is it
> 3) IP numbers following it:
> /etc/route add 224.0.0.0 xxx.yyy.177.98 0

> that is: the 224.0.0.0 address (??) my IP address and a zero.

> why is the 224....address in there ?

For access to MBONE broadcasts.  That is, if you were set up
for multicast, you need that route.

--

SCO articles, help, book reviews, tests,
job listings and more : http://www.ApLawrence.com

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Bill Vermilli » Sun, 09 Jan 2000 04:00:00




Quote:>I am perusing Jeff's excellent article on how to change the system name
>or IP address (which I will be doing Sunday :{
>As I was looking through the files that I will need to change I noted
>that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255
>My current IP address is xxx.yyy.177.98
>Is the current BROADCAST wrong or what ?

A broadcast address depends on the subnet to which it belongs.

You have the network number at the bottom end of a range of
addresses , and a broadcast address at the top end of that range,
and all addresses between them are useable.

The network scheme is binary so the networks are in segments
divisible by two.  The most common is a block of 256 numbers with
254 useable addresses.  This was originally called a class C
network and now known as a /24 block.

If your broadcast address ends in .255 and your network address
ends in .98 - then you must be in full class C address range and
the broadcast would be correct.   Since 98 is in the bottom 1/2 of
256 addresses and the .255 is at the top half then they must be
part of a single block of addresses.

If your address ended in .144 for example with a broadcast of
.255 then you could still be in the block of 256 addresses, or you
could be in a block of 128 starting at .128.  At that point there
would not information to determine what your base network would be.

Given the .98 as your address and .255 as the broadcast, the
broadcast is correct as nothing else will fit those two numbers.

Quote:>2nd question, same subject:
>I note that /etc/rc2.d/S85tcp has a route add command with two (or
>is it 3) IP numbers following it:
>/etc/route add 224.0.0.0 xxx.yyy.177.98 0
>that is: the 224.0.0.0 address (??) my IP address and a zero.
>why is the 224....address in there ?

The 224 network range is for multicast.  There are three types of
transmissions - unicast, multicast and broadcast.

Broadcast is data sent to all machines in a give subnet.  Used
primarily to find a given machine.

The machine matching the query sends it's information back to the
machine that broadcast originally.  Since it is directed only to
one machine this is called a unicast.

The 224 is part of a multicast range of addresses. That means that
one machine can send data out - but while it is not sending to any
specific machine - many machine can elect to receive the data.
It's just the same as if you were tuning into a radio or tv
broadcast.

You will see multicast used for such things as video conferencing,
or events occuring in real time which can be selective received by
multiple targets.  This cuts down on data flowing across the net.

Otherwise you could have several machines each getting a unicast
stream and the data on the net would be the sum total off all
the individual unicast streams.  There is not a lot of multicast
out there - yet.  

This more properly belongs in a network discussion area.  

Networking can be complex but it's quite logical after you get over
the learning curve hump.  Think of it as Unix on steroids. :-)

--

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by - bill » Sun, 09 Jan 2000 04:00:00





> >I am perusing Jeff's excellent article on how to change the system name
> >or IP address (which I will be doing Sunday :{

> >As I was looking through the files that I will need to change I noted
> >that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255

> >My current IP address is xxx.yyy.177.98

> >Is the current BROADCAST wrong or what ?

> A broadcast address depends on the subnet to which it belongs.

> You have the network number at the bottom end of a range of
> addresses , and a broadcast address at the top end of that range,
> and all addresses between them are useable.
---snip---
> Given the .98 as your address and .255 as the broadcast, the
> broadcast is correct as nothing else will fit those two numbers.

note:
 the broadcast address is xxx.yyy.171.255 and my address is
                                  ^^^ (171!)
and my address is  xxx.yyy.177.98
                           ^^^ (177 !)
does that change your reply ?

Quote:

> >2nd question, same subject:

> >I note that /etc/rc2.d/S85tcp has a route add command with two (or
> >is it 3) IP numbers following it:

> >/etc/route add 224.0.0.0 xxx.yyy.177.98 0

> >that is: the 224.0.0.0 address (??) my IP address and a zero.

> >why is the 224....address in there ?

> The 224 network range is for multicast.  There are three types of
> transmissions - unicast, multicast and broadcast.

  Thanks Bill and Tony and JP
 --

--

-bill-


 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Deepak Thadan » Sun, 09 Jan 2000 04:00:00


Bill,
        What is your subnet mask...?  Without a subnet mask, you or
us can not tell what network or subnet you are part of.  Please provide
that information...Only after seeing the subnet mask can we tell you
if the broadcast is correct or not.

Thanks,

Deepak





> > >I am perusing Jeff's excellent article on how to change the system name
> > >or IP address (which I will be doing Sunday :{

> > >As I was looking through the files that I will need to change I noted
> > >that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255

> > >My current IP address is xxx.yyy.177.98

> > >Is the current BROADCAST wrong or what ?

> > A broadcast address depends on the subnet to which it belongs.

> > You have the network number at the bottom end of a range of
> > addresses , and a broadcast address at the top end of that range,
> > and all addresses between them are useable.
> ---snip---
> > Given the .98 as your address and .255 as the broadcast, the
> > broadcast is correct as nothing else will fit those two numbers.
> note:
>  the broadcast address is xxx.yyy.171.255 and my address is
>                                   ^^^ (171!)
> and my address is  xxx.yyy.177.98
>                            ^^^ (177 !)
> does that change your reply ?

> > >2nd question, same subject:

> > >I note that /etc/rc2.d/S85tcp has a route add command with two (or
> > >is it 3) IP numbers following it:

> > >/etc/route add 224.0.0.0 xxx.yyy.177.98 0

> > >that is: the 224.0.0.0 address (??) my IP address and a zero.

> > >why is the 224....address in there ?

> > The 224 network range is for multicast.  There are three types of
> > transmissions - unicast, multicast and broadcast.

>   Thanks Bill and Tony and JP
>  --

> --

> -bill-



 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Jeff Lieberman » Sun, 09 Jan 2000 04:00:00



Quote:>I am perusing Jeff's excellent article on how to change the system name
>or IP address (which I will be doing Sunday :{

Good luck.  You'll need it.

Quote:>As I was looking through the files that I will need to change I noted
>that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255
>My current IP address is xxx.yyy.177.98
>/etc/route add 224.0.0.0 xxx.yyy.177.98 0
>Is the current BROADCAST wrong or what ?

171 is wrong.  Since you have the 3rd octet = 177 in two out of 3ea places,
methinks the value in /etc/default/tcp has a typo error and should be 177.

I forgot exactly how ifconfig works in /etc/tcp, but as I recall, it first
reads /etc/default/tcp, and then overscribbles the values with whatever is
in the ifconfig line in /etc/tcp.  Therefore, methinks you could put just
about anything in /etc/default/tcp, and it will still work.  Run:
        ifconfig -a
and see what is the final result.  It should be consistant and the 3rd
octet should be the same for a Class C network.

Sheesh... There's even a line in /etc/tcp that says "defaults will be
overwritten from /etc/default/tcp".  It looks like only the value of
$DOMAIN is used with $NETMASK and $BROADCAST being overscribbled by the
ifconfig lines.  Yech.

Quote:>why is the 224....address in there ?

MBONE multicast as others have explained.

If you do the name transplant to the Netscape server, let me know what
files you tweaked, as I haven't documented those changes.

--
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Bill Vermilli » Sun, 09 Jan 2000 04:00:00







>> >I am perusing Jeff's excellent article on how to change the
>> >system name or IP address (which I will be doing Sunday :{
>> >As I was looking through the files that I will need to change I
>> >noted that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255
>> >My current IP address is xxx.yyy.177.98
>> >Is the current BROADCAST wrong or what ?
>> A broadcast address depends on the subnet to which it belongs.
>> You have the network number at the bottom end of a range of
>> addresses , and a broadcast address at the top end of that range,
>> and all addresses between them are useable.
>---snip---
>> Given the .98 as your address and .255 as the broadcast, the
>> broadcast is correct as nothing else will fit those two numbers.
>note:
> the broadcast address is xxx.yyy.171.255 and my address is
>                                  ^^^ (171!)
>and my address is  xxx.yyy.177.98
>                           ^^^ (177 !)
>does that change your reply ?

Woops.  I guess so.  If the xxx.yyy are in a normal range then I'd
suspect a typo.  

--

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by - bill » Sun, 09 Jan 2000 04:00:00




> >I am perusing Jeff's excellent article on how to change the system name
> >or IP address (which I will be doing Sunday :{

> Good luck.  You'll need it.

> >As I was looking through the files that I will need to change I noted
> >that in /etc/default/tcp, BROADCAST=xxx.yyy.171.255
> >My current IP address is xxx.yyy.177.98
> >/etc/route add 224.0.0.0 xxx.yyy.177.98 0
> >Is the current BROADCAST wrong or what ?

> 171 is wrong.  Since you have the 3rd octet = 177 in two out of 3ea places,
> methinks the value in /etc/default/tcp has a typo error and should be 177.

> I forgot exactly how ifconfig works in /etc/tcp, but as I recall, it first
> reads /etc/default/tcp, and then overscribbles the values with whatever is
> in the ifconfig line in /etc/tcp.  Therefore, methinks you could put just
> about anything in /etc/default/tcp, and it will still work.  Run:
>         ifconfig -a
> and see what is the final result.  It should be consistant and the 3rd
> octet should be the same for a Class C network.

> Sheesh... There's even a line in /etc/tcp that says "defaults will be
> overwritten from /etc/default/tcp".  It looks like only the value of
> $DOMAIN is used with $NETMASK and $BROADCAST being overscribbled by the
> ifconfig lines.  Yech.

> >why is the 224....address in there ?

> MBONE multicast as others have explained.

> If you do the name transplant to the Netscape server, let me know what
> files you tweaked, as I haven't documented those changes.

Naw, I use Apache.
I found one change in setting the routes:
it is done in 5.0.4 in /etc/rc2.d/S90iproute, which only reads the
commands from /usr/internet/etc/sco_ip, which in my case was only,

net default 216.93.126.1

> --
> Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
> (831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
> http://www.cruzio.com/~jeffl   WB6SSY


--

-bill-


 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by Jeff Lieberman » Sun, 09 Jan 2000 04:00:00



Quote:>Naw, I use Apache.
>I found one change in setting the routes:
>it is done in 5.0.4 in /etc/rc2.d/S90iproute, which only reads the
>commands from /usr/internet/etc/sco_ip, which in my case was only,

>net default 216.93.126.1

Are we using the same operating system?

The file is /etc/rc2.d/S91route and contains:
        route add default xxx.xxx.xxx.xxx
I don't have an S90iproute file.

The /usr/internet/etc/... only exists if you've installed the SCO internet
manager stuff (FASTTRACK) which includes Netscape server.  Mine doesn't and
has nothing below /usr/internet exept for the Netscape manual which I
decided might be useful.

--
Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
(831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
http://www.cruzio.com/~jeffl   WB6SSY

 
 
 

changing IP address: /etc/default/tcp and S85tcp

Post by - bill » Mon, 10 Jan 2000 04:00:00




> >Naw, I use Apache.
> >I found one change in setting the routes:
> >it is done in 5.0.4 in /etc/rc2.d/S90iproute, which only reads the
> >commands from /usr/internet/etc/sco_ip, which in my case was only,

> >net default 216.93.126.1

> Are we using the same operating system?

5.0.4
I did install the Netscape Fasttrack stuff, in error.  Maybe that is why
the files are different.

> The file is /etc/rc2.d/S91route and contains:
>         route add default xxx.xxx.xxx.xxx
> I don't have an S90iproute file.

> The /usr/internet/etc/... only exists if you've installed the SCO internet
> manager stuff (FASTTRACK) which includes Netscape server.  Mine doesn't and
> has nothing below /usr/internet exept for the Netscape manual which I
> decided might be useful.

> --
> Jeff Liebermann  150 Felker St #D  Santa Cruz CA 95060
> (831)421-6491 pgr (831)426-1240 fax (831)336-2558 home
> http://www.cruzio.com/~jeffl   WB6SSY


--

-bill-