Fine network configutarion but network problem, why?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Fine network configutarion but network problem, why?
I am using a RedHat 9. I have a small home network with 2 pcs and a DSL router that join them. The router also connects the pcs to the internet.
I had a Windows configuration and i am trying to do it in Linux. Hardware works fine becasue the windows configurations worked fine.
I have one pc with RedHat 9 and other with Mandrake 9.2.
With the one with Mandrake everything is fine. I can see everthyng in my LAN(even the other pc) and outside. It is configured as getting the ip from the DHCP is in the router. I coudnt get as static. This is the next battle.
In the RedHat9 coumputer I have configured the files in all the ways i have imagined. And it didnt work. I can ping to the router but not to the pc or outside. The files i have configured are:
/etc/sysconfig/network
NETWORKING=yes
In next two lines i have added them and erased them to try both ways.
HOSTNAME=newpc
GATEWAY=192.168.2.1
The @ip is my router ip.
/etc/sysconfig/network-scripts/ifcfg-eth0.
DEVICE=eth0
BOOTPROTO=static
tryed all as none, dhcp (taking off the next 5 lines) and even taking the whole BOOTPROTO line
IPADDR=192.168.2.2
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
GATEWAY=192.168.2.1
ONBOOT=yes
I have put an empty line at the end of the line and i have taken it off, just in case there is any problems with it. I have heard about things like that.
In the etc/resolv.conf theres is a line 'nameserver 192.168.2.1' but i dont remember if i have keyed it in.
There is no configuration files in the directory /etc/sysconfig/networking/ wich is used by the Network Administration Tool (redhat-config-network). And I havent used it.
In the first try i used those tools but it didnt work. I got so desperate that i have reinstalled the OS.
Is there any particular thing to check on the RedHat?
I know this is not really what you are looking for but may be a start, after making changes I always reboot, there is probably an easier way but I've yet to find it
I came back and everything works fine. I guees it needed to reboot. But i am so surprised because i have always heard that Linux doesnt need to reboot to make changes in the configuration. It works, i stop thinking about it. but if anyone knows why, please teel it to me.
you don't.
Redhat lets you restart network services (don't ask me how, I don't use it),
some distros let you ifdown eth0 && ifup eth0
and just about all of them let you ifconfig eth0 down && ifconfig eth0 up
Originally posted by urzumph you don't.
Redhat lets you restart network services (don't ask me how, I don't use it),
some distros let you ifdown eth0 && ifup eth0
and just about all of them let you ifconfig eth0 down && ifconfig eth0 up
The way to work with the services of Linux is by either:
1)
/etc/init.d/"service" {start|stop|restart|reload|status}
for example :
/etc/init.d/network restart
This works on any distros.
2)
And Red Hat has a shortcut
service "service" {start|stop|restart|reload|status}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.