LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-14-2005, 03:13 PM   #1
Cerb3rus
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Okay.. I really need help :S


Well, this is my first time that I ever got down to installing Linux (which is Yoper), and I have absolutely no idea how to connect to LAN internet through it. Is there manual settings I have to change or something?
 
Old 09-14-2005, 03:34 PM   #2
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
GUI or Command line?

That would depend on whether you wish to use the GUI or the command line.

GUI (Graphical User Interface) will have something in the system options on setting up a network. SuSE, Fedora, Mandriva, etc. have some easy to follow setup options.

Command line is a little different. Some of the commands are:

for IP/Subnet Mask = root@#ifconfig eth0 192.168.1.5/24
root@#ifconfig eth0 192.168.1.5/255.255.255.0

Gateway = root@#route add default gw 192.168.1.1 eth0

DNS = got me on that one, still not quite sure

Also, check out this location on your HardDrive: /etc/sysconfig/network-scripts

On that DNS issue: I found this on http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasicnet.html So check it out:

/etc/named.conf - Used for domain name service to configure named. Other files used are dependent on this file. This file is explained further in the DNS section
/etc/resolv.conf - Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.
domain mycompany.com
search mycompany.com mynet.net
nameserver 192.168.1.100
nameserver 192.168.199.1
nameserver 192.168.1.10

The third line specifies that DNS should be tried on my machine first then use the normal nameserver on the fifth line. The fourth line specifies that my machine is running nameservices on another network which is using interface 192.168.199.1. This assumes the nameserver is set up on my machine which is explained in another section.
 
Old 09-14-2005, 04:10 PM   #3
Cerb3rus
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
GUI preferred.

Okay, you said simple options, so what should I be looking for? The Network Connections? If so, I need to type certain things, but as I said, I just installed Linux, so I don't even know how to check certain things like that (let alone check other drives o.o).
 
Old 09-14-2005, 05:58 PM   #4
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
Okay

Depending on your distro, you should have something that represents a start button, like in Windows. This will open a menu ( think windows 9x-2k style). Now, find the sub-menu that says something like system or configuration.

In SuSE, you will have to find YaST. Everything else (from what I've seen) will have an option to configure your system. Go into that and find Network.

Now, you need to configure your LAN. Your interface, if you only have one NIC, will be eth0. Set up your IP and your Subnet mask and hostname (computername) host domain (workgroup or domain, your choice. Just make it look something like an internet address).

Next, it should ask you for either your DNS or Gateway, or both. Just fill those in, like in Windows. Your gateway is going to be the router that accesses the internet. Your DNS needs to be the same as any other on your LAN. Personally, I use my ISP's DNS just to make things a little faster and more reliable.

That should be it. Just remeber to do all this as root, your system will ask for the password if you're not. GUI should restart your NIC for you, so don't worry about that.

If it doesn't, issue these two commands at the command prompt:

ifconfig eth0 down
ifconfig eth0 up
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



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

All times are GMT -5. The time now is 11:23 PM.

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