Click to See Complete Forum and Search --> : Seting Up A Network in Linux KDE
nsolomon2
11-04-2001, 02:53 PM
I was wondering what the easiest way to set up my network would be. I want to run my linux box through a windows box to get to the internet (I can't run the internet to the linux box). All I want to know right now is how to get the linux box to recognize that it is on a network. I have the parameters set up to use the proxy, but I can't ping the other machine. What do I do?
bdg1983
11-04-2001, 04:09 PM
You might want to let us know what distro and version you are using.
Do you know if your ethernet card has been detected and is up and running?
ifconfig will tell you.
lsmod to see if the module for your nic is loaded.
nsolomon2
11-05-2001, 06:39 PM
I'm using Red Hat 7.1 with KDE
For setting up a network for RH, i suggest you read Securing and Optimizing Linux Red Hat Edition (http://www.linuxdoc.org/guides.html#securing_linux). It gives nice guide to set it up without using gui (which is good to know in linux).
bdg1983
11-06-2001, 06:12 AM
You can use the KDE Control Center to configure your ethernet card etc. or use linuxconf (needs to be installed from the 2nd cd I believe).
nsolomon2
11-09-2001, 09:59 PM
I got linuxconf to work, but I couldn't figure out what to do. I would rather do it just with netconf if that is possible. All I want to do now is ping the other machine.
bdg1983
11-10-2001, 03:40 AM
Setup a static ip address or dhcp for your Linux box, add the gateway address that points to your Windows box and then add the dns server from your isp.
My distro does not include 'netconf' so I have never seen how it works.
Vagrant
11-10-2001, 03:58 AM
its very simple to set up the network, jus for the 2 boxes to be able to talk, and get on the internet, ive never tried to do it with a GUI, make sure ur nic is setup properly, and u can do it 2 ways. you can run the program 'netconfig' which is very simple, or you can edit '/etc/sysconfig/network-scripts/ifcfg-eth0' which is pretty self explanatory, you can jus use netconfig, its ncurses, very simple, all it does is edit ifcfg-eth0 as well.. make sure that ur 2 boxes are on the same subnet, and have unique ip addresses, basically make ur win box 192.168.0.1 and ur rh box 192.168.0.2 , they should be able to ping fine after this, to set up internet sharing, install ics on windows, then on ur linux box, ur gateway should be 192.168.0.1, netconfig doesnt always get ur gateway right, so issue this command 'route add default gw 192.168.0.1' and u should be able to access the net fine on linux, good luck ..
*vagrant
Originally posted by Logon Name Gone:
<STRONG>My distro does not include 'netconf' so I have never seen how it works.</STRONG> Mike,
It's a tool common to Redhat and like distros. The GUI presentation differs somewhat from linuxconf, but I think it's just a front-end to the network sections of linuxconf. The only reason I have to back up my assumption is that if you don't have linuxconf installed, running netconf will cough up an error to the effect of "linuxconf not found".
nsolomon2,
Here's a snippet of instruction from one of my previous posts in a similar thread. The points I addressed were dealing specifically with someone using @home's cable service, but the general configuration info should work for you as well:
Regurgitation #1045 (partial):
If linuxconf is available to you:
Go to Config->Networking->Basic host info->Host name. Enter the hostname (computer name) provided by your ISP. Click on the "Adaptor 1" tab, check Enabled and DHCP, if you use it. If you use static addressing, enter your IP and Netmask in the appropriate boxes. For Primary name + domain, enter the full hostname.domain @home provided.
Go to Config->Networking->Name server specification. Check the DNS is required... box. For the default domain, enter the domain provided by @home. Enter the IP addresses of you Primary and Secondary DNS servers.
Go to Config->Networking->Routing and Gateways->Set Defaults. For the Default Gateway, enter the DGA IP provided by @home.
Go to Config->Networking->Host name search path. The normal configuration is "hosts, dns".
How much of the above you'll actually have to do depends on whether you have a static IP or are obtaining one via DHCP.
[ 10 November 2001: Message edited by: DMR ]
bdg1983
11-11-2001, 06:27 AM
Thanks David. It's just that my particular distro does not have linuxconf or netconf. I don't even know what commandline tools are using for configuring the network settings. I either setup static or dynamic during installation and never have to touch networking again.