Thread: network set up.

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    33

    network set up.

    can anyone help me by giving a step by step procedure of setting a network between two computers using a ethernet.

  2. #2
    Registered User
    Join Date
    Apr 2011
    Posts
    33

    network set up

    can anyone help me by giving a step by step procedure of setting a network between two computers using a ethernet.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    At what level?

    Install operating systems
    Install network cards
    Install network drivers
    Hook up a switch or router
    Connect network cables
    Use network.

  4. #4
    Registered User
    Join Date
    Apr 2011
    Posts
    33

    network set up

    i hav installed all the pre requisites in both the computers.
    now i hav connected them via ethernet.
    but i dont know how to configure the settings in linux.
    i hav red hat enterprise linux as my os.

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Just get a crossover cable and plug an end of the cable into each computer's NIC.

    Or get a hub/switch and plug a normal ethernet cable from each computer into it.

    So basically:
    1) Acquire a crossover ethernet cable.
    2) Plug one end into computer A.
    3) Plug the other end into Computer B.
    4) Profit.

    Now if you want to get into higher level stuff than hardware, you're going to have to specify whether or not you want to use TCP/IP or some other protocol. If you want TCP/IP just give each computer an IP address on the same network:
    Computer A:
    IP 192.168.0.1
    Netmask 192.168.0.255

    Computer B:
    IP 192.168.0.2
    Netmask 192.168.0.255

    That should work.
    Last edited by itsme86; 05-09-2011 at 08:52 AM.
    If you understand what you're doing, you're not learning anything.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Threads merged.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Apr 2011
    Posts
    33
    Quote Originally Posted by Salem View Post
    Threads merged.
    should the netmask must be same in both computers.?
    how do i set the ip.?

  8. #8
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Dibyayan Chakra View Post
    should the netmask must be same in both computers.?
    how do i set the ip.?
    How to set up a linux network (yes, click the red text and read the information)

  9. #9
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You said you "installed all the pre requisites in both the computers. now i hav connected them via ethernet." What does that mean? Are you on a LAN with a router, or using a cross-over cable?

    Via a router, it is very simple: you do not have to do anything, just get the LAN ip's and use them. Obviously, your LAN connection has to be working first.

    If you are using a cross-over, it is almost as simple, but I haven't done it in a long time -- try googling "linux cross-over connection". The difference is, since you don't have any connection on at least one of the machines, you have to use ifconfig to set one up.
    Last edited by MK27; 05-10-2011 at 08:57 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  10. #10
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by Dibyayan Chakra View Post
    should the netmask must be same in both computers.?
    Didn't I show it using the same netmask right here?
    Quote Originally Posted by itsme86
    Computer A:
    IP 192.168.0.1
    Netmask 192.168.0.255

    Computer B:
    IP 192.168.0.2
    Netmask 192.168.0.255
    Ok, so why are you asking?
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Network!
    By Joanna in forum Tech Board
    Replies: 3
    Last Post: 07-20-2004, 06:40 AM
  2. network USB
    By GanglyLamb in forum Tech Board
    Replies: 2
    Last Post: 06-23-2003, 08:42 AM
  3. USB Network?
    By Aidman in forum Tech Board
    Replies: 25
    Last Post: 06-06-2003, 09:22 PM
  4. Network
    By tuarek in forum C++ Programming
    Replies: 2
    Last Post: 09-06-2002, 07:15 AM
  5. PC 2 PC network
    By Zeeshan in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 07-15-2002, 02:58 AM