LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2003, 10:21 PM   #1
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Rep: Reputation: 15
Networking: What is the broadcast ip?


I've worked with networks for what seems like years...

I know this:

1. each nic has its own ip address
2. each nic has a subnet mask (which dictates what ips it can see?)
3. each nic can route to a different DNS server
4. what dns servers do and how to set one up
5. an nic can get it's settings from a DHCP server


My Questions:

1. What does NIC stand for?
2. What does the broadcast IP do?! (Please, as much information as possible)
3. I'm setting up a small business network on linux, what are some good rules to practice?

Thanks alot! (in advance)
 
Old 11-14-2003, 10:33 PM   #2
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
1. Network Interface Card
2. dur...
3. Learn about ipchains or iptables (for security/ router purposes), and how to manage networking using samba (to interact with windows), and nfs (mountable linux-to-linux filesharing network, very useful)
 
Old 11-15-2003, 12:46 AM   #3
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 15
2. dur...?

That doesn't help much...

3. ...

I know about ip chains, I know about samba (although we don't plan on having any windows networking at all) and I know about NFS...

Cheers anyway

....

What I
 
Old 11-15-2003, 02:23 AM   #4
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
2. as the name suggests, broadcast ip is generally used to broadcast the ip packet to all hosts connected in any network domain
take an example, if ur n/w id is 192.168.0.0 and subnet mask is 255.255.255.0 (Class C n/w ), then generally ur broadcast address will be 192.168.0.255
one main application of broadcast ip is in ARP(Address Resolution Protocol) to get the mapping between IP address and corresponding NIC address

3. well this depends on ur business needs actually
 
Old 11-15-2003, 08:40 AM   #5
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
i didnt know about two, so i wasnt about to spit out some false information

hey, man, i did what i could, and it seems like you already know the basics of running a good network
 
Old 11-15-2003, 10:30 AM   #6
baz2
Member
 
Registered: Nov 2002
Posts: 73

Rep: Reputation: 15
Just to add a bit, a "broadcast" is a packet sent to every host on the subnet. So any packet sent to, say, 192.168.1.255 gets sent to every host on the 192.168.1.0 subnet. A number of protocols use broadcasts to get the information they need to fulfill their function. As mentioned, ARP is one of these. ARP resolves IP addresses to MAC addresses. For a packet to reach its final destination, it must know the MAC address of the destination. An ARP broadcast is kind of like shouting on a network "If your IP address is x.x.x.x, would you tell me what your MAC address is?"

Another protocol that uses broadcasts is DHCP. In the "Discover" phase of the DHCP process, a broadcast is sent out to all hosts on the network asking, in effect "Hey, are any of you DHCP servers? If so, offer to supply me with an IP address."
 
Old 11-15-2003, 12:46 PM   #7
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 15
thanks alot you guys!

linux 1, windows 0

again, I really appriciate the knowledge, I've learnt more about operating systems by upgrading my works computers to linux in one week, than I did under windows for 1 year!
 
Old 11-15-2003, 08:13 PM   #8
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 15
can someone tell me the command for editing the broadcate ip? i cant find it in this 1000 + redhat9 bible...

thanks
 
Old 11-16-2003, 12:51 AM   #9
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30

[root@TFHS root]# ifconfig --help
Usage:
ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]
[add <address>[/<prefixlen>]]
[del <address>[/<prefixlen>]]
[[-]broadcast [<address>]] [[-]pointopoint [<address>]]
[netmask <address>] [dstaddr <address>] [tunnel <address>]
[outfill <NN>] [keepalive <NN>]
[hw <HW> <address>] [metric <NN>] [mtu <NN>]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]
[txqueuelen <NN>]
[[-]dynamic]
[up|down] ...
 
Old 11-16-2003, 01:07 PM   #10
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
That's the command line way. If you want an easier approach (like a gui) try "netconfig" as root.

-twantrd
 
Old 11-16-2003, 09:46 PM   #11
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Like I've preached ALOT thru my years on linux....learn to do it on the command line first....then you can (if you want) to learn it on the GUI. Once you learn to do it on the command line you won't need to use a gui.
 
Old 11-16-2003, 10:47 PM   #12
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 15
seabass: cheers dude, I think you're right

Today I started editing the IPTables...

Should have really done this straight away :P

again, thanks you guys!
 
Old 11-17-2003, 07:53 AM   #13
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>2. each nic has a subnet mask (which dictates what ips it can see?)
It dictates what ip's it can send packets to directly on it's local
thernet segment. Packets addressed to outside the subnet are
sent to a gateway address instead of directly

>For a packet to reach its final destination, it must know the MAC address of the destination.
or the MAC of the defalut gateway that routes traffic to the final destination.

>3. each nic can route to a different DNS server
It could be set up that way but it dosn't have to be.

Normally when a computer wants to talk to one of the dns servers
it knows about, it will look at it's routing table to descided
where to send a packet addresses to the dns server. If the
route to all the dns servers the machine knows about is through
one NIC then that is where all the name lookup traffic will go.

>4. what dns servers do and how to set one up

A dns server translates a name eg yahoo.com into an ip address.

Sometimes they also translate ip addresses into domain names but
most people arn't concerned with that, read up on it yourself if
you want to know about that.

Most people use send domainname->ip querys to resolving dns
servers provided by their isp.
A resolvign nameserver talks to the root nameservers, the
nameservers for top-level-domains like .com and the servers for
individual sites.

To set one up you run software such as bind or djbdns on a
machine with port 53 tcp and udp accessible from the
machines that are going to contact it.


Setup depends if you want a server to resolve any internet domain
name (e.g yahoo.com) or you want a server that tells people
the ip of your-personal-domain-name.com


>5. an nic can get it's settings from a DHCP server
Yes, a dhcp server can set the ip address, default route,
nameservers, maybe other stuff.
 
Old 11-17-2003, 02:29 PM   #14
Patrick Bulteel
Member
 
Registered: Nov 2003
Location: United Kingdom
Distribution: Mandrake, RedHat, Suse, Ubuntu, Debian
Posts: 37

Rep: Reputation: 15
One more note. Your broadcast address (and gateway) is dictated by your netmask. This is called subnetting and is somewhat complicated to explain.

Quick eg. Your ip 192.168.2.129, netmask 255.255.255.240. Therefore your broadcast is 192.168.2.143 and you have ips 192.168.2.[128-143] minus 1 ip on each end for broadcast and network.

I usually recommend using a calculator for this:
http://www.cotse.com/networkcalculator.html
 
Old 11-19-2003, 02:02 AM   #15
scorpatron
Member
 
Registered: Nov 2003
Location: New Zealand
Distribution: Redhat 9 2.4.20-8 Athlon, Windows 2000 Professional, FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 15
How difficult is it to setup IPv6? i dunno if it's called that exactly.. when you use the subnet mask 255.0.0.0/24 .. I know how it works, I just dont know how to set it up
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't know what broadcast address is? blmartin777 Debian 10 05-07-2004 02:06 PM
Monitoring broadcast gummimann Linux - Networking 2 11-07-2003 09:03 AM
How do I broadcast a message? miknight Linux - General 3 04-26-2003 01:24 AM
What is a broadcast ip? snocked Linux - Newbie 7 01-28-2003 09:56 AM
What does Broadcast mean? BHanrahan Linux - Newbie 3 09-03-2002 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration