1830930 Members
2374 Online
110017 Solutions
New Discussion

lan config queries

 
SOLVED
Go to solution
Omar Alvi_1
Super Advisor

lan config queries

Hi,

i've installed my first linux.

To connect to lan I did the following

# netconfig
-after entering relevant information
# service network restart

Now when I do netstat -rn I get the following
(showing only fields of interest)

Destination Gateway Genmask Flags interface
0.0.0.0 10.10.30.254 0.0.0.0 UG 0eth0

This is supposed to be my default gateway. Why doesn't it say default under Destination, and how can I configure its netmask?

I ping the above IP and I recieve 0% transmission. Therefore I cannot connect to my proxy server.

Is there a simple PRACTICAL Redhat networking; internet and lan connectivity guide?

Thanks a lot

Regards,

-Alvi
15 REPLIES 15
Jerome Henry
Honored Contributor

Re: lan config queries

Yes !
Run redhat-config-network
On a shell, you can also read man ifconfig.
On internet, read at http://www.europe.redhat.com/documentation/rhl9/rhl-cg-en-9/ch-network-config.php3

hth

J
You can lean only on what resists you...
Huc_1
Honored Contributor

Re: lan config queries

I am not sure You will have rehat_config_network if I refer to your previous question you are running 7.3, but you should be able if you are login as root to invoke setup

#setup

will present a menu with option including network setup.

As for the documentation follow Jerome leed, and keep use informed of your progress.

J-P
Smile I will feel the difference
Huc_1
Honored Contributor

Re: lan config queries

Discard my previous answer !
You do have redhat_config_network in 7.3 of Redhat, I have just ckeck.
Mea Culpa (My fault) Jerome you are right as usual , but Alvi if you are running 7.3 then the documentation link is http://www.europe.redhat.com/documentation/rhl7.3/rhl-cg-en-7.3/ch-network-config.php3

J-P
Smile I will feel the difference
Stuart Browne
Honored Contributor

Re: lan config queries

Umm, if those two lines were all you got when you did a 'netstat -nr', I'd suggest that you're network card isn't getting configured correctly.

For the record, 0.0.0.0/0.0.0.0 = deafult gateway. The '-n' forces netstat not to resolve any names, including 'default.

'netconfig' (as Huc said) is on most RedHat systems, the newer one being as Jerome said, 'redhat-config-network' (from RH8 onwards).

Both are practically identical in any case. They both modify '/etc/sysconfig/network-scripts/ifcfg-*' files, which can easily be modified by hand. The details of what the flags are in this file are in '/usr/share/doc/initscripts-*/sysconfig.txt'.

Might be a good idea to confirm all of the IP addressing details. You might also want to ensure that '10.10.30.254' responds to ICMP traffic.
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: lan config queries

Here is another resource:
http://www.tldp.org/HOWTO/Net-HOWTO/index.html

http://www.tldp.org

If my friends who posted on time got were helpful, please point them.

Happy New Year 5764 to my fellow Yidden.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Omar Alvi_1
Super Advisor

Re: lan config queries

Thanks for all the assistance!!!

.. the documentation is also very helpful.

I searched for redhat-network-config using find, and its simply not there, don't know why. I have redhat-config-dat,services,users,time,printer, but no network.

Installed redhat 7.3 and in Linux release it says 2.4.18-3

Thanks

-Alvi
aparna challagulla
Valued Contributor
Solution

Re: lan config queries

hi Alvi,

pl go thro this link and see if it is able to answer ur queries.

http://www.ncsu.edu/resnet/pages/setup/redhat.php

HTH
aparna
If you don't have time to do it right you must have time to do it over
Stuart Browne
Honored Contributor

Re: lan config queries

What does 'ifconfig -a' return?

What type ofnetwork card do you have in the machine?

What does 'lsmod' and 'cat /proc/pci' show you?
One long-haired git at your service...
Jerome Henry
Honored Contributor

Re: lan config queries

Oh sorry,

redhat-config-network comes from rh8. In rh7.3 use (from a shell windows under X, being root) 'neat' (for network administration tool)...

J
You can lean only on what resists you...
Huc_1
Honored Contributor

Re: lan config queries

It say's on the RedHat doc in "http://www.europe.redhat.com/documentation/rhl7.3/rhl-cg-en-7.3/ch-network-config.php3"
that you have the /usr/bin/redhat-config-network that what I trusted by saying I checked !, but if it is not there then use

/usr/sbin/netconfig

have a look at the last messages from dmesg
#dmesg
some where at the end there should be a few lines telling you about your ethernet card,irq etc.

also post here the result of
#ifconfig -a
so whe are able to futher help if needed.

whatever enjoy you new system

J-P
Smile I will feel the difference
Omar Alvi_1
Super Advisor

Re: lan config queries

Hi

I have attached the outputs of ifconfig -a and netstat -r.

I am still not able to connect to the internet.

10.10.30.56 is my gateway with a netmask (lan) 255.255.255.0

Proxy server is 172.22.1.2 with netmask (internet) 255.255.255.0

We have IIS which doesn't allow netscape browsers access to the internet. So i'm testing internet connectivity as follows

telnet www.google.com 80

followed by two

Any ideas.

Really appreciate all the help you've given so far.

A few other things

- how can I change swithc between Gnome and KDE?

- how can I see whether an installed machine is a server or a workstation?

thanks and regards,

-Alvi
Huc_1
Honored Contributor

Re: lan config queries

To switchdesk do the following from an xterm
I will read our set up file in a whileto see if i can help, busy now !

Please Alvi dont forget to assign point to all the reply's this help us know if or reply's are of some use to you.

J-P

Smile I will feel the difference
Huc_1
Honored Contributor

Re: lan config queries

Sorry, realy in a rush there forgot to include the command to switch desk

from xterm in X session type
switchdesk

you will be presented with a gui interface that let you chose the desktop you want (Gnome, KDE)

I have had a look at your file nothing wrong with the ifconfig output (eth0 did transmit and received a few bytes)

if you do the following command as root what do you get in return ?

#traceroute 10.10.30.254

J-P
Smile I will feel the difference
Omar Alvi_1
Super Advisor

Re: lan config queries

My default route is in fact 10.10.30.254, just as it shows in netstat, and my host IP address is 10.10.30.56 ... just clarifying

Following is the output of traceroute to the gateway and also to the proxy server

[root@localhost root]# traceroute 10.10.30.254
traceroute to 10.10.30.254 (10.10.30.254), 30 hops max, 38 byte packets
1 10.10.30.254 (10.10.30.254) 2.326 ms * 5.007 ms

[root@localhost root]# traceroute 172.22.1.2
traceroute to 172.22.1.2 (172.22.1.2), 30 hops max, 38 byte packets
1 10.10.30.254 (10.10.30.254) 0.966 ms 2.139 ms 4.020 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * *

By the way incoming ICMP requests are blocked by the proxy server (172.22.1.2)

Machines on the internet are not pingable by hostname.

However using the following

telnet www.google.com 80

I can read the default page in html (thereby confirming access to external addresses) and to the proxy server.

As for switchdesk, it says that I have to restart my X sefrver. It seems that probably the best idea would be to put

id:3:initdefault in /etc/inittab

and then run switchdesk from here whenever starting up, but to actually change from one GUI to the other reboot is the only option right?

Thanks
-Alvi

Huc_1
Honored Contributor

Re: lan config queries

to start x use from console prompt

> startx

when in X you can switch desk using

switchdesk

On my system this can be made permanent or tick "Change only applies to current settings"

this is if you just want to use once without saving it. (ex: just to test KDE but keep Gnome as default)

J-P
J-P
Smile I will feel the difference