LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2004, 04:31 PM   #1
wwedd
LQ Newbie
 
Registered: Mar 2004
Location: Umeå, Sweden
Distribution: Slackware 9.1
Posts: 1

Rep: Reputation: 0
Configuring the network


I have just installed Slack 9.1 to one of my two comps, wanna use the linux-machine as a router (got two network-cards installed).
As a total noob i just wanna get som startinghelp on where you config the network, and how....
 
Old 03-14-2004, 05:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The commands to configure a network interface is 'ifconfig'. You give an interace an IP using
ifconfig eth0 192.168.1.1
where eth0 is interface (first NIC) and 192.168.1.1 is IP, secnd NIC is eth1.

To see current settings run 'ifconfig' or 'ifconfig interface'.

Then there's 'route'. It sets routing table. Without parameters it also prints it to you. The command you'll probably need to use is
route add default gw IPaddress
route add default interface
They're both to set default gateway - the place all packates that doen't fit the rules go (usually it means the outside world). First one uses IP (you have a machine that provides Internet access), second one - interface (the machine you're running the command on provides Internat access).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help configuring the network netcat Slackware 5 07-09-2005 08:44 AM
Configuring Network Kensai cAos 8 03-14-2004 12:11 PM
Configuring Network in Console intl99 Mandriva 2 03-12-2004 01:19 PM
Configuring Network MrJBot Linux - Newbie 2 10-21-2003 10:28 PM
configuring network pabdom Linux - Networking 3 08-30-2003 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 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