Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-14-2004, 03:31 PM   #1
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, 04:25 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,662

Rep: Reputation: 210Reputation: 210Reputation: 210
The commands to configure a network interface is 'ifconfig'. You give an interace an IP using
ifconfig eth0
where eth0 is interface (first NIC) and 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).


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 07:44 AM
Configuring Network Kensai cAos 8 03-14-2004 11:11 AM
Configuring Network in Console intl99 Mandriva 2 03-12-2004 12:19 PM
Configuring Network MrJBot Linux - Newbie 2 10-21-2003 09:28 PM
configuring network pabdom Linux - Networking 3 08-30-2003 04:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration