LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-27-2003, 11:28 PM   #1
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Rep: Reputation: 0
Utter Newbie network question


Hi all,
I've finally got a copy of Linux working after many hours and much bad language but I can't figure out how to set up my network address etc...

I'm running Trustix Secure Linux which I think is based on RedHat, but everything must be done through the command line. I have a USB SMC2206 lan interface and want to connect to my network with it. I've searched around the net a lot and have a file called Pegasus.C and no idea what I need to do with it (assuming it is the right program!)

Can someone please point me in the right direction?

Cheers
 
Old 04-28-2003, 08:43 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Check /etc/sysconfig/network
 
Old 04-28-2003, 10:30 AM   #3
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
I've edited the etc/sysconfig/network file and now it looks like this:

NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=box
GATEWAY=192.168.0.1
GATEWAYDEV=ETH0

When I try to ping the gateway I get:

Network is unreachable

I assume that it doesn't yet know what eth0 is supposed to be, how can I tell it?

Thanks
 
Old 04-28-2003, 12:17 PM   #4
LoungeLizard
Member
 
Registered: Apr 2003
Location: Tampa, Florida
Distribution: Mint 17.2 ,OpenSuse, Kali and Pepermint OS 6
Posts: 276

Rep: Reputation: 30
did you make sure the setting took...and have you restarted the networking service or restarted since you made the changes
 
Old 04-28-2003, 12:23 PM   #5
Stijn147
LQ Newbie
 
Registered: Apr 2003
Posts: 8

Rep: Reputation: 0
edit the file:

/etc/sysconfig/network-scripts/ifcfg-eth0
 
Old 04-28-2003, 12:24 PM   #6
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
I don't know if any of the changes took, I did reboot the machine.
I didn't see anything about eth0 come up in the boot screen (there's a command for getting all that stuff back isn't there?)

What do I do with this driver thing I have? I tried copying it to /etc/ but that was just a guess

Thanks
 
Old 04-28-2003, 12:28 PM   #7
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
Also I don't have the file
/etc/sysconfig/network-scripts/ifcfg-eth0

I assume I can make this file with VI or something but don't know how it's supposed to look
 
Old 04-28-2003, 12:30 PM   #8
Stijn147
LQ Newbie
 
Registered: Apr 2003
Posts: 8

Rep: Reputation: 0
run /sbin/ifconfig
and post the output please
 
Old 04-28-2003, 12:34 PM   #9
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
Ifconfig says:

Lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask 255.0.0.0
 
Old 04-28-2003, 12:36 PM   #10
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
Ifconfig says:

Lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU:3924 metric :1

rx packets:0 errors:0verruns:0 frame:0 txpackets:0

infact everything says :0 after this point


(sorry about that, I acidently tabbed onto submit :-) )
 
Old 04-28-2003, 12:43 PM   #11
Stijn147
LQ Newbie
 
Registered: Apr 2003
Posts: 8

Rep: Reputation: 0
This means that the only network interface found on your computer is the loopback interface
(every computer has such an interface, with that you can make connections with your own computer)
Your lan is thus not recognized by the kernel, you have to find a driver for your USB SMC2206 lan interface.

have you tried compiling Pegasus.c ? ( $gcc pegasus.c)

If it is a module you have to load it in the kernel with insmod
 
Old 04-28-2003, 12:49 PM   #12
fishturd
LQ Newbie
 
Registered: Apr 2003
Distribution: Trustix Secure Linux (based on Redhat I think)
Posts: 7

Original Poster
Rep: Reputation: 0
I just tried using :

gcc /etc/pegasus.c

and got

/etc/pegasus.c:49 linux/usb.h: no such file or directory
/etc/pegasus.c:715 parse error
/etc/pegasus.c:973 parse error

This isn't what I wanted it to say is it?
 
  


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
Utter Newbie needs game/sound help Splunge Linux - Hardware 6 12-07-2004 06:00 PM
Utter newbie seeking OSS project advice EducatedStupid Linux - Software 3 04-06-2004 05:11 PM
Utter newbie building system TheTwistedSpasm Linux - Hardware 3 12-06-2003 09:04 AM
A newbie with a network question XtremeDawg Linux - Networking 3 10-03-2003 08:09 AM
Newbie network question kabads Linux - Networking 1 06-20-2003 01:56 PM

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

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