[opensuse] subnet mask for 192.168.1.2
In yast network card static IP adderss, Subnet Mask and Hostname My IP address is 192.168.1.2 and my hostname is hh1.local What's my Subnet Mask? Lynn x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/28/2007 07:19 PM, primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
Probably 255.255.255.0 assuming you have a class C network, for simplification means you can have 254 computers in that net. That really depends on your network. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 October 2007 12:19, primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
Normally it's 255.255.255.0 -- Powered by SuSE 10.0 Kernel 2.6.13 X86_64 KDE 3.4 Kmail 1.8 12:41pm up 73 days 17:13, 5 users, load average: 2.16, 2.18, 2.12 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
Lynn x
That's impossible to say, as it depends entirely on your local network, though typically it would be 255.255.255.0 or /24. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 October 2007 06:15:56 am James Knott wrote:
primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
Lynn x
That's impossible to say, as it depends entirely on your local network, though typically it would be 255.255.255.0 or /24.
-- Use OpenOffice.org http://www.openoffice.org
Primm, I must applaud you for your good response. When I read the original posting, I started cracking up. Lynn, You would have a subnet mask of 255.255.255.0 if everything on your local network will use the 192.168.1.X range. If you would incorporate another "Subnet" (ie. 192.168.2.X), you would have a subnet of 255.255.254.0. There is alot more to this, and that is really just a basic basic thing I showed. Your subnet mask would vary depending on network needs. Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ben Kevan wrote:
If you would incorporate another "Subnet" (ie. 192.168.2.X), you would have a subnet of 255.255.254.0. There is alot more to this, and that is really just a basic basic thing I showed. Your subnet mask would vary depending on network needs.
Not quite. You could also use 255.255.255.0 with 192.168.2.x. If your mask were 255.255.254.0, then the address range in your example would be 192.168.2.x and 192.168.3.x. The sub net mask is used only to determine which portion of the address is used for the network and which for the host address. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2007-10-28 at 18:43 -0400, James Knott wrote:
Ben Kevan wrote:
If you would incorporate another "Subnet" (ie. 192.168.2.X), you would have a subnet of 255.255.254.0. There is alot more to this, and that is really just a basic basic thing I showed. Your subnet mask would vary depending on network needs.
Not quite. You could also use 255.255.255.0 with 192.168.2.x. If your mask were 255.255.254.0, then the address range in your example would be 192.168.2.x and 192.168.3.x. The sub net mask is used only to determine which portion of the address is used for the network and which for the host address.
I'm confused, then...fortunately I'm not also a network guru, so I have an excuse of sorts...;-) 254 would set the LSB of the byte to 0, wouldn't that allow checking of .0.x and .1.x ranges of address...? Wouldn't the mask for .2.x and .3.x be 255.255.253.0? Tom in NM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Tom Patton wrote:
I'm confused, then...fortunately I'm not also a network guru, so I have an excuse of sorts...;-)
254 would set the LSB of the byte to 0, wouldn't that allow checking of .0.x and .1.x ranges of address...? Wouldn't the mask for .2.x and .3.x be 255.255.253.0?
Tom in NM
No, it wouldn't set that bit to 0. It moves that bit to the host side of the address. It becomes clearer if you use the other notation, which says how many bits are part of the network address. So, 255.255.254 = /23 or 23 network bits and 9 host bits. Looking at the host side, the address range runs from 0.0 to 1.255, with 0.0 being the network address and 1.255, the broadcast. Add the host address to the network address of 192.168.2+x.x to get the complete address range of 192.168.2.0 to 192.168.3.255 I often have to worry about subnet masks in my work. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-10-29 at 07:17 -0400, James Knott wrote:
Tom Patton wrote:
I'm confused, then...fortunately I'm not also a network guru, so I have an excuse of sorts...;-)
254 would set the LSB of the byte to 0, wouldn't that allow checking of .0.x and .1.x ranges of address...? Wouldn't the mask for .2.x and .3.x be 255.255.253.0?
Tom in NM
No, it wouldn't set that bit to 0. It moves that bit to the host side of the address. It becomes clearer if you use the other notation, which says how many bits are part of the network address. So, 255.255.254 = /23 or 23 network bits and 9 host bits. Looking at the host side, the address range runs from 0.0 to 1.255, with 0.0 being the network address and 1.255, the broadcast. Add the host address to the network address of 192.168.2+x.x to get the complete address range of 192.168.2.0 to 192.168.3.255
Thanks, James. I think I wasn't confused, I was looking at it from the host side, and didn't catch in your first post that you had already added the network address...we were both seeing a total hosts of 0x01ff machines. I mistakenly took your first post to allow 0x03ff machines. I then further goofed by suggesting 0x03ff hosts as a mask of 255.255.253.0, when I meant 255.255.252.0. And I see I'm open to another comment, since I included the network and broadcast entities as machines...but you know what I meant. I guess I'm happier following the electrons through the gates than the packets through the switches...;-) Tom in NM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2007-10-28 at 12:19 +0100, primm wrote:
What's my Subnet Mask? Make sure your PC's mask matches the one at your gateway device. I'm assuming your GW is 192.168.1.1.
Toshi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 October 2007 05:19, primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
/sbin/ifconfig will show you what you currently have. Look for the bit that says Mask:... As other have said it is most likely 255.255.255.0. Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 October 2007 20:58:42 Don Raboud wrote:
On Sunday 28 October 2007 05:19, primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
/sbin/ifconfig will show you what you currently have. Look for the bit that says Mask:...
As other have said it is most likely 255.255.255.0.
Don
/sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:33:DE inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:4cff:fefd:33de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1639 errors:0 dropped:0 overruns:0 frame:0 TX packets:1195 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1788172 (1.7 Mb) TX bytes:93299 (91.1 Kb) Interrupt:20 eth1 Link encap:Ethernet HWaddr 00:05:1C:10:EE:75 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Base address:0x4000 Does that confirm 255.255.255.0? Thanks, Lynn. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
primm wrote:
On Sunday 28 October 2007 20:58:42 Don Raboud wrote:
On Sunday 28 October 2007 05:19, primm wrote:
In yast network card static
IP adderss, Subnet Mask and Hostname
My IP address is 192.168.1.2 and my hostname is hh1.local
What's my Subnet Mask?
/sbin/ifconfig will show you what you currently have. Look for the bit that says Mask:...
As other have said it is most likely 255.255.255.0.
Don
/sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:33:DE inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:4cff:fefd:33de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1639 errors:0 dropped:0 overruns:0 frame:0 TX packets:1195 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1788172 (1.7 Mb) TX bytes:93299 (91.1 Kb) Interrupt:20
eth1 Link encap:Ethernet HWaddr 00:05:1C:10:EE:75 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Base address:0x4000
Does that confirm 255.255.255.0? Thanks, Lynn.
Yes "Mask:255.255.255.0". -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 29 October 2007 04:15, primm wrote:
On Sunday 28 October 2007 20:58:42 Don Raboud wrote:
On Sunday 28 October 2007 05:19, primm wrote:
<snip>
What's my Subnet Mask?
/sbin/ifconfig will show you what you currently have. Look for the bit that says Mask:...
As other have said it is most likely 255.255.255.0.
/sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:33:DE inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
<snip>
eth1 Link encap:Ethernet HWaddr 00:05:1C:10:EE:75 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
<snip>
Does that confirm 255.255.255.0?
Yes. Each of your two interfaces has the same mask (the "Mask:255.255.255.0" bit), and because of this they are on different networks. eth0 can communicate with all machines with addresses 192.168.1.*. eth1 can communicate with all machines with addresses 192.168.2.*. To have communication between them (or with other networks), you need to have routing information set up appropriately. -- Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Ben Kevan
-
Don Raboud
-
Don Raboud
-
James Knott
-
Joe Morris (NTM)
-
Mike
-
primm
-
Tom Patton
-
Toshi Esumi