Set-Up LAN in CentOS 4.6?

Issues related to configuring your network
Kellemora
Posts: 8
Joined: 2008/09/08 20:01:24
Location: From St. Louis, MO but now live in Knoxville, TN
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by Kellemora » 2008/09/12 02:19:21

Hi Gerald

In my original post I included this line

"I don't know what questions to ask or what info you need to know as other OS's work properly right out of the box."

Obviously I'm LOWER than Noob! Just have ONE toe in the water so far is all.

Studying three different platforms or Distro's don't help much either as each works differently and uses different commands.

That is something else I didn't know only 3 short weeks ago!

I'm not afraid to admit that my first two times of reading through all the books I had purchased, 99% of it was over my head, way over in fact. I even stooped as low as actually buying Red Hat Linux for DUMMIES, which was, as always, a waste of money. I have also purchased several books by Naba Barkakati and have ordered some books by Michael Jang which are not here yet. I'm also a subscriber of O'Reilly On-line!
So, I am quite SERIOUS about learning Linux.

I will apologize to Alan and obtain the information he has requested.

But give the following some thought for a second.

If I asked you to go get me a fork, and you had no idea what a fork was, the difficulty of honoring my request suddenly becomes exponentially more difficult to follow through on doesn't it.

By the same token, in order to comply with Alan's request, I have a lot more studying to do.

I have to figure out whether to use Terminal or Root Terminal, then I have to figure out whether I should use sudo, sudo su, su - or gksu. I'm sure one of those with work with gedit in CentOS. Then I have to figure out if the requested documents are in Root, in a file in Root and if so which file and if there are more than one folder with the same documents in them.

In other words, like Shultz, I Know Nothing!

Alan's on the right track by asking for the files he needs to see where the problem may lie, because I surely didn't know!

But the EXTRA Step would have been to let me know WHERE those files are and how to obtain them, automatically assuming I don't know that kind of info yet. It never hurts to be thorough with a request, as already pointed out.

Again, thank you Gerald!

I will have to get back with Alan after I figure out what to do here at this end!

TTUL
Gary

Kellemora
Posts: 8
Joined: 2008/09/08 20:01:24
Location: From St. Louis, MO but now live in Knoxville, TN
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by Kellemora » 2008/09/12 02:35:09

Hi Alan

First off I want to APOLOGIZE for my previous comments and say thanks for keeping your cool about it too!

I'm not ashamed to admit that until I study a little more, I'm not exactly sure how to supply the information you have requested. I know I've looked up things in root and edited many files already, but this old man gets confused on which commands to use for different things.

I learn things one step at a time, solving one problem at a time, and am quite proud when I do finally figure something out.
I look for clues, this worked until I did this, then everything messed up, so better not do that again, hi hi........ Now to get things back the way they were before I messed things up, which can be yet another challenge.

As I mentioned in my response to Gerald, until I experiment, I don't know whether to use sudo, sudo su, su - or gksu, and I assume gedit will open the file and I can copy it from there, once I figure out exactly where those files are of course.
To a Noob, they could be anywhere!

The books don't help much until I try things hands-on for myself and learn the hard way. At least then I remember it longer too.

Now that I know which files you need to view to assist me, I will find them and study them, compare them with fresh install files and files I may have messed up. I will also compare with similar files to see the differences, even though their may be vast differences on other platforms, there usually is.

It may be tomorrow evening before I can get back to you with your request. I shuttle the elderly to doctors appointments 2 to 3 times a week and it usually ties up most of my day.

Thank You!

TTUL
Gary

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by AlanBartlett » 2008/09/12 10:44:28

[b]Gary[/b],

Actually, all I've done is to re-iterate [b]Gerald[/b]'s original request.

If you are logged in as yourself, you will need to get yourself to a [i]terminal[/i] command line (a CLI) from your usual graphical desktop (a GUI) and then assume [b]root[/b]'s powers with a [b]su -[/b] command (don't miss the hyphen). You should see the right-hand end of your CLI prompt change from a [b]$[/b] to a [b]#[/b]. You now have [i]super-user[/i] powers.

If you are logged in as [b]root[/b], you will just need to get to a [i]terminal[/i] command line (CLI) from the (GUI).

Please now type each of those three commands, one after the other at a [b]#[/b] prompt. It is the system's response (the output) to those commands that [b]Gerald[/b] would like to see.

To give you some idea what you might see, here's the result on my workstation:

[code]
$ su -
Password:
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:C0:4F:24:66:81
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:4fff:fe24:6681/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12147 errors:0 dropped:0 overruns:1 frame:0
TX packets:8060 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10424092 (9.9 MiB) TX bytes:2372521 (2.2 MiB)
Interrupt:11 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4822 (4.7 KiB) TX bytes:4822 (4.7 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.1.1
#
[/code]

As I do not use a [b]CentOS 4[/b] system, I think it best if I let others (who do) to continue to assist you in your quest.

Have you heard of the saying (I may not have it quite right): [i]Give a man a fish and you've given him one meal. Teach him how to fish and he will be able to feed himself for life.[/i] ? That's the philosophy we try to use within the [i]CentOS Community[/i].

Kellemora
Posts: 8
Joined: 2008/09/08 20:01:24
Location: From St. Louis, MO but now live in Knoxville, TN
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by Kellemora » 2008/09/13 00:46:54

Hi Alan & Gerald

I actually figured it out on my own, getting the files that is, everything works so much differently in CentOS!

I don't think they are going to help much though. I compared them with the same printouts from computers that are working fine and they appear to read identical.

I know resolve.conf works because I'm ON the internet. In fact I'm using CentOS right now and Mozilla Firefox to make this post.

But here it is anyhow: resolve.conf
; generated by /sbin/dhclient-script
search hsd1.tn.comcast.net.
nameserver 68.87.68.162
nameserver 68.87.74.162
nameserver 68.87.64.196

And next is the route -n
[root@HPpav753nCentOS ~]# sudo route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@HPpav753nCentOS ~]#

And last the ifconfig -a file. Interestingly, the last entry sit0 does not appear on any of the other computers that are working just fine.
The ONLY difference between the three computers is the line that reads inet addr:
it shows 192.168.1.106 on one of them, the other two end in 104 like this one with CentOS.
[root@HPpav753nCentOS ~]# sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:40:CA:33:46:90
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::240:caff:fe33:4690/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:794 errors:0 dropped:0 overruns:0 frame:0
TX packets:882 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:400402 (391.0 KiB) TX bytes:176590 (172.4 KiB)
Interrupt:177 Base address:0xc800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1955 errors:0 dropped:0 overruns:0 frame:0
TX packets:1955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1784670 (1.7 MiB) TX bytes:1784670 (1.7 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@HPpav753nCentOS ~]#

I have noticed that the smb.conf files are vastly different between EACH of the computers, even between the working ones, but have not had time to study them yet to see exactly what really is different about them.

I did find that smb was NOT running on this computer so I restarted it, made no difference though.

Also picked up 5 more books today that look like I may understand them better. Written by Red Hat.

But like all the rest of the books, they just say do this, but never say WHY........

WHAT IS the difference between, sudo, su -, sudo su, gksu, gksudo?
Or is there an URL I can go to to find out. I've tried sudo --help and man sudo, plus the other forms and got nothing.

Thanks

TTUL
Gary

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by AlanBartlett » 2008/09/13 13:15:28

[b]Gary[/b],

You should find the [i]CentOS Wiki[/i] a useful resource.

[quote]
WHAT IS the difference between, sudo, su -, sudo su, gksu, gksudo?
Or is there an URL I can go to to find out. I've tried sudo --help and man sudo, plus the other forms and got nothing.
[/quote]
You should be able to answer your question (above) by looking at this URL - http://wiki.centos.org/TipsAndTricks/BecomingRoot Basically, [b]su -[/b] gives you a [i]super-user[/i] shell with [i]root[/i]'s login environment for as long as you wish - in other words, until you terminate it (by an [i]exit[/i] command or a [i]d[/i] key-pair press) whereas [i]sudo[/i] will allow the one command, that follows the [i]sudo[/i] command as an argument, to be executed with [i]super-user[/i] privilege.

As an example, try the [b]lspci[/b] command as an ordinary user (with a [b]$[/b] prompt). You will get the response: [b]bash: lspci: command not found[/b]. Now try [b]sudo lspci[/b].

Regarding books, Section #4 of http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47 has a short list of books recommended by members of the [i]CentOS Community[/i].

With regards to getting your [b]CentOS 4[/b] system behaving as you require on your LAN, I think it best if I let others (with [b]C-4[/b] systems to hand - er fingers!) assist you.

Kellemora
Posts: 8
Joined: 2008/09/08 20:01:24
Location: From St. Louis, MO but now live in Knoxville, TN
Contact:

Re: Set-Up LAN in CentOS 4.6?

Post by Kellemora » 2008/09/13 18:11:15

Hi Alan

Thank you very much Sir, you've given me a whole new world to study from!

I'm looking for a button to mark this thread as [solved] for the time being.

It don't mean I got the local LAN (actually file and print sharing) working yet.

But from messing around, I've created other problems. I need to learn what things do before trying them, hi hi........

I've done something that caused a line in my sudo route -n to disappear.

Under Destination, there was a line starting with 169.254.0.0 between the top line 192.168.1.0 and the default 0.0.0.0 to disappear.

In other words, it went from this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@HPpav753nCentOS ~]#

To this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@HPpav753nCentOS ~]#

Internet still works just fine!

Time to crack some more books, study that Wiki URL and come back again maybe in a week or two after I learn some more of the basics.

Again, thanks for you help and much needed directives!

TTUL
Gary

Post Reply

Return to “CentOS 4 - Networking Support”