basic networking


 
Thread Tools Search this Thread
Special Forums IP Networking basic networking
# 1  
Old 03-10-2002
Question basic networking

Here are some really stupid questions, but I'm not really sure what I'm doing, so any help will be appreciated. I'm trying to learn linux and basic networking. I have 2 computers: one has windows and the other I just installed Red Hat 7.1. In the network configuration screen of the Red Hat install, where do I get the IP address, network, broadcast, hostname, gateway & DNS? Can I just make these up? Also, How do I connect the computers? Right now I have the RJ45 from one network card to the other.
Thanks
# 2  
Old 03-10-2002
you must use the same rank of ips for the two pcs.
if you have 192.168.0.1 in you windows box you can assing 192.168.0.2 to you linux box. you can play with the ip number depende of you mask.
if you havea mask 255.255.255.0, you only can use 255 ips for your network, this is a class C network.
e.g.
ip: 192.168.0.1
network: 192.168.0.0
mask: 255.255.0.0
brodcast: 192.168.255.255
this will be a class B network

the hostname is the name of you box, you can use you name like bob, but you can't repeat names in other pc.
gateway is the box or router that connects you lan with internet or other network.
dns is the service that translates name address to ip address. if you need you can set up a dsn server on your linux box, or simple use the dns server of your isp.
if you are using one silgle utp cable to connect the pcs, you must use the code A in one rj, and the code B in the other.

# 3  
Old 03-11-2002
first of all, the example you gave is incorrect. if the first octet of the ip address starts with 192, then it is a class C address, not a class B. This means that the mask is 255.255.255.0 by default.

Second of all, you won't have 255 possible ip addresses, you will only have 254. The formula is 2 to the nth power - 2, where n represents the number of unmasked bits i.e., number of zeros in the fourth octet. the minus 2 is because you can't use zero (network number) and you can't use 255 (broadcast). However, some of your newer routers and switches will accomodate the zero network.

Third, if you are connecting computer to computer, make sure your cat 5 cable is a crossover cable, not a straight through or roll over. when connecting like devices, i.e., computer to computer, pin 1 is crossed to pin 3 and pin 2 is crossed to pin 6.

if you have any more questions, feel free to email me personally.

M.
# 4  
Old 03-11-2002
true true true.
sorry Smilie
# 5  
Old 03-14-2002
Thanks for your help. I'm still having some problems. I set up my linux computer as follows:
ip: 192.168.0.1
network: 192.168.0.0
mask: 255.255.255.0
broadcast:192.168.0.255
gateway: 192.168.0.254

I also bought a crossover cat 5 cable and a linux compatible modem. When I try to ftp or telnet to 192.168.0.1 from my windows computer, everything times out. Am I missing something?

Also, I installed the new modem and it works (dials and connects), but netscape won't open any websites.
Please help.

Smilie
# 6  
Old 03-21-2002
Windows Configuration

how is your windows machine configured? wow i have spent many of nites before tests trying to find the information clearly explained like manderson19 did nice job and you were right on the money....
# 7  
Old 03-31-2002
I set up the windows computer with the same configuration except an ip of 192.168.0.2

I can dial out and connect to the internet with both computers (separately) now.

When I ping 192.168.0.1 from the windows computer or 192.168.0.2 from the linux box, they both time out.

I must be missing something somewhere. I had no idea this would be so difficult when I started. Any other suggestions will be appreciated.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

Networking

hi From mt windows machine I can ping a LINUX machine but there is no arp entry for the same LINUX on my windows. How is it possible and what can I do to add the arp entry as I need it. thanks (1 Reply)
Discussion started by: leghorn
1 Replies

2. IP Networking

Basic networking question

Hii, Today morning I attended an interview, they had showed me the attached image and had few questions about that. The image shows a network with 4 nodes viz.. A B C & D and two switches(layer2) and a router(layer3). Just wanted to know can node A and node D would be on same network e.g... (4 Replies)
Discussion started by: zing_foru
4 Replies

3. IP Networking

Basic networking please help

I am running Ubuntu Desktop and Ubuntu Server editions on two separate VMs. For the desktop I have set network adapters: Adapter 1: internal network called intnet Adapter 2: NAT Server: Adapter 1: internal network called intnet Now I'm suppose to set ip addresses which I'm pretty sure... (5 Replies)
Discussion started by: shadowcat
5 Replies

4. IP Networking

Networking

Hi, I have a question on networking. I will try to ask with an example... Suppose i am googling something, as in searching something in the google page. In this case what I basically want to know is, does the client do a connect evrytime to the server whenever a search is done in google,... (1 Reply)
Discussion started by: naan
1 Replies

5. IP Networking

C networking

Can anybody help me regarding networking using c language i know how to capture the packets and to verify it`s protocol destination and source ip etc. Can anybody help me to direct a packet coming to an ip to some other ip of my choice ........ Hope reply ... (0 Replies)
Discussion started by: Sannair
0 Replies

6. UNIX for Advanced & Expert Users

how ..........networking

hi everyone this is dipendra, i am interested in networking,i know simple socket programming . and now i am wonder to get in to audio socket. i have no clue how to build audio socket.so i am looking if u can provide me a link regarding the audio socket building tutorials. (1 Reply)
Discussion started by: dipendra_regmi
1 Replies

7. UNIX for Dummies Questions & Answers

Basic networking setup in unix

I have a SunOS 5.8 box and have always downloaded & applied patches via my PC, but I want to be able to go out to sunsolve directly from the console ... however, I guess it doesn't know the IP of our domain's DNS server or something. Where are these setting held on a Sun box??? (1 Reply)
Discussion started by: FredSmith
1 Replies

8. Slackware

Basic networking questions.

Hey, I'm new to Linux. I have a few questions about it. I run Slackware. After the installation the Linux installation had problems with my old hardware (network card, sound card) so I removed them and Linux would start. But now, I can't seem to use the network card in Linux because it's not... (3 Replies)
Discussion started by: RellioN
3 Replies
Login or Register to Ask a Question