LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-26-2010, 08:24 AM   #16
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159

Hi,

The topic title asks how to do it via the command line.
I suggest the OP look at 'man ifconfig'. Look at 'man route' to get a view of the route table usage.

Just a few useful links;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

These links and others can be found at 'Slackware-Links' .
 
Old 03-26-2010, 11:56 PM   #17
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thumbs up

thanks a lot for such a great help.
 
Old 03-27-2010, 01:49 PM   #18
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by gardenair View Post
...
2- If I give the command

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.100 up
it say "bash: ifconfig:command not found"

well where i am doing wrong ?
i think since fodora-10, redhat would by default not include /sbin in a normal user's $PATH.
/sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.100 up
will probably work.
_____
also, why are you using red-hat-9 ?
 
  


Reply



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
ip address using command line Ammad Linux - Networking 2 04-24-2007 06:12 PM
How to get an IP Address from command line? Big Dog XII Linux - General 4 01-25-2007 11:54 AM
command line address book program oneferna Linux - Software 3 02-12-2006 02:24 PM
Linux command to assign an ip address seb22 LinuxQuestions.org Member Intro 2 06-12-2005 02:19 AM
Linux command to assign an ip address seb22 Linux - Networking 5 05-24-2005 12:03 PM

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

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