LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2004, 07:06 PM   #31
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15

$@##% #%#^#*#& I had to shut down the computer to replace the floppy. Well I'm back on and decided to ping them again.
Second computer to main "Network unreachable"
Main to second computer:root@localhost mlg]# ping -c4 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
From 66.225.244.154 icmp_seq=1 Time to live exceeded
From 66.225.244.154 icmp_seq=2 Time to live exceeded
From 66.225.244.154 icmp_seq=3 Time to live exceeded
From 66.225.244.154 icmp_seq=4 Time to live exceeded

--- 192.168.0.2 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3002ms

I didn't do anything but basically reboot

 
Old 09-02-2004, 07:31 PM   #32
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
Well I ran ifconfig again and everything is back to where it started??????????????? I know that everything is not suppose to reset every time you reboot. What did I do wrong??????
When I went to shutdown to replace the floppy I shut down second computer before I realized that it was the wrong one, no wise cracks please so they were both basically rebooted and they are both right back to where we started. Should I redo the IP addys and mask's now, I'll wait until I get a reply.
 
Old 09-02-2004, 07:32 PM   #33
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
after the reboot, you'll need to do

ifconfig eth0 down
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
ifconfig eth0 up

again, or you could just edit the

/etc/sysconfig/network-scripts/ifcfg-eth0

file manually from both machines to set static ip's.
good luck.
 
Old 09-02-2004, 07:45 PM   #34
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
Like peace dog said PEACEDOG, just edit /etc/sysconfig/network-scripts/ifcfg-eth0 should be self explantory, than we the sysboots up it will read that file and set the IP correctly.

Good thing you got them pinging... Follow that link and do what it says and youll be on your way, just post again if you need anything!

Andrew
 
Old 09-02-2004, 09:19 PM   #35
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
I need to go to bed but I love this stuff. I'm on the windows puter now but I'm off to edit on Linux. You guys are great!!
 
Old 09-02-2004, 09:42 PM   #36
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
Man I hate being a dumb a##
I've pasted and typed in the above edit command a dozen different ways. The only way I've found to get into anything is with the VI text editer. Below is what it shows the mask is right, do I need to insert the IP address, again if you could give me some help on this. I certainly don't want to have to start over every time I reboot.
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
WIRELESS_ENC_KEY=""
 
Old 09-02-2004, 10:24 PM   #37
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
I've got them pinging again but I need to get the setup saved before I go any farther. I can't find anything in my book right nowsurprise Part of it is because I'm tired, so I'm off to bed. See you all tomorrow, I hope
 
Old 09-03-2004, 01:40 AM   #38
timtin
LQ Newbie
 
Registered: Sep 2004
Distribution: redhat linun AS
Posts: 9

Rep: Reputation: 0
go on
 
Old 09-03-2004, 06:41 AM   #39
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
for a static address your network scripts should look similar to this

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.0.0
NETMASK=255.255.255.0
IPADDR=192.168.0.1
USERCTL=no

on one machine and

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.0.0
NETMASK=255.255.255.0
IPADDR=192.168.0.2
USERCTL=no

on the other.
good luck.
 
Old 09-03-2004, 05:39 PM   #40
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
Well I got the shared internet connection working but it wasn't my doing. I went to the link peacedog gave me to get the firwall configured once I had the computers pinging and I got totally lost. Got the Linux book out, read a bunch of that read in the link again and the more I read the more confused I got. This is going to be slow going for me it looks like. Well anyway I let Mandrake set up the shared connection, took five minutes. I didn't want to do it that way, that's how I networked windose and I never learned anything, not much anyway. Ahh but there's plenty of days ahead and plenty of time to crash plenty of computers.
Thankyou gentleman for your time and patience.
 
Old 09-03-2004, 06:13 PM   #41
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
i believe mandrake uses squid proxy for it's internet sharing, if that's correct you could start your reading on squid, i suggested a link earlier that has a ton of good info. you could also read up here

http://www.netfilter.org/documentati...entation-howto

good luck.
 
Old 09-03-2004, 07:00 PM   #42
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
Im glad its working for you. Maybe when at a latter time if you really want to do it your self you can...

Andrew
 
Old 09-03-2004, 07:37 PM   #43
mgrist
Member
 
Registered: Sep 2004
Location: Greenville, S.C.
Distribution: Slackware & Mandrake
Posts: 37

Original Poster
Rep: Reputation: 15
I saved that earlier link peacedog along with the one you just posted. I haven't given up, just need a break. I want it to stay fun.
I'll get it andrew, I'm stubborn, can't seem to let anything whip me. Boy the trouble that has caused in my life
 
  


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
pc to linux networking pencoluk Linux - Networking 3 01-05-2005 10:21 AM
linux networking... mario_c Linux - Newbie 1 10-09-2004 10:14 AM
Linux Networking Arch3r Linux - Networking 0 07-22-2003 03:01 PM
Linux Networking Wimpie22 Linux - Networking 0 05-24-2003 09:49 AM
Linux Networking MGLindsey Linux - Networking 1 06-28-2002 12:20 PM

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

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