Thursday, February 24, 2011

Re: [LINUX_Newbies] Linux servers on internet

 

On Thu, Feb 24, 2011 at 06:53:06PM -0000, brusberri wrote:
> Sorry to disturb you guys i just need some quick tips if possible.
>
>

> In my job as a software consultant almost daily i step into Linux servers (mostly if not all RH Enterprises 3, 4, 5 and some Fedora) on small networks which are not open to the internet.
>
> i need this connection for my job and i rarely have access to the system administrators of my company as i mostly work on remote, and they are engulfed too!
>
> of course i know the ip address of the server, of the router and of the proxy, if any (rarely the case). i can also copy the DNS and whatever from the windows machines in the network, i suppose.
>
> the problem is i don't know where to put this informations in order to access the internet (only strictly CLI commands and scripts please, there are no GUI on those machines).

I'm not quite sure what you mean. You're at the machine and it has to
reach the Internet or you have to reach the machine from the Internet?

To find out current ip address

ifconfig -a

Which will give you information on all cards in the machine.

To see the gateway

route -n

Usually the first and last lines both show the gateway. Not sure how it
works on RH3, but 4 and 5 should also show the gateway with

cat /etc/sysconfig/network

For DNS

cat /etc/resolv.conf

will show the settings.

To edit a network connection, you should be able to use

system-config-network-tui

It's a curses based tool, so should show in terminal.

This should enable you to configure interface, gateway and DNS.

If I have misunderstood the question, apologies.

--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment