root account can access the internet, the other account can only access google
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, so, no, dont change the resolv back (just yet) - now, as things stand, you can ping 127.0.0.1, the gateway, but...can you ping anything outside? Let's leave google aside for a moment, try to ping yahoo instead. Just to mix the results...
Okay! And, yes...a university. Did'nt see that comming. But, you can get to te gateway on that box. Okay, did you get the IP address? Look if it's in the gateway list:
how can I check the route list?
I typed "route -n"
and it says "command not found"
the only reason I talk about the university is that I tried to describe my internet connection status clearly.
Okay, so, no, dont change the resolv back (just yet) - now, as things stand, you can ping 127.0.0.1, the gateway, but...can you ping anything outside? Let's leave google aside for a moment, try to ping yahoo instead. Just to mix the results...
Now I am using the root account, I ping 8.8.8.8 got one line back, and "ping www.yahoo.com" got one line back too.
If I use the FireFox, I can log in the website of yahoo.
the only reason I talk about the university is that I tried to describe my internet connection status clearly.
Yes, and that could be a clue in solving this one. By the way, repo mentioned proxy settings in Firefox. Had any luck in finding these? Could be a give-away...
Quote:
I typed "route -n"
and it says "command not found"
Not installed (yet) - I dont know offhand where RHEL gets route. Of course, you did try the command as Root (just checking)...I hope. Otherwise, the command could be "out of reach" indeed...
Yes, and that could be a clue in solving this one. By the way, repo mentioned proxy settings in Firefox. Had any luck in finding these? Could be a give-away...
Not installed (yet) - I dont know offhand where RHEL gets route. Of course, you did try the command as Root (just checking)...I hope. Otherwise, the command could be "out of reach" indeed...
o, I did not know I should use root account to use this command.
I tried again.
this time I got some result. what should I look for ?
Well, let's see if the IP assdress of the gateway you just pinged is in there...
no
there are 3 lines
first two lines:
the destination are different numbers, and the gateway is 0.0.0.0, genmask is 255.255.255.0 or 255.255.0.0; flags are U
the 3rd line:
the destination number is 0.0.0.0; the gateway address is similar with the gateway I pinged. but the 3rd number is different. and the genmask is 0.0.0.0 Flags is UG
no
there are 3 lines
first two lines:
the destination are different numbers, and the gateway is 0.0.0.0, genmask is 255.255.255.0 or 255.255.0.0; flags are U
the 3rd line:
the destination number is 0.0.0.0; the gateway address is similar with the gateway I pinged. but the 3rd number is different. and the genmask is 0.0.0.0 Flags is UG
The IP address is clearly not there, let's add this now...
Quote:
route add default gw [that IP address]
...and let's see what happens next
Quote:
You think I am able to hack? I even can't access the internet.
...(laughing out loud)...just kidding...dont worry, we'll get ya on the net yet...
Last edited by ButterflyMelissa; 02-11-2012 at 04:21 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.