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.
I'm trying to network my PS2 (running Linux, of course), but it ain't workin'. I don't have a default gateway and something tells me I need one. None of my books really say what it is or if I really need one.
a default gateway is the machine through which all your network traffic goes through to the other networks
what is your network setup. do you have a static ip or dhcp. if you get the ip by dhcp then it will automatically take care of it. if you did setup a static ip then you need to specify the default gateway.
if you are connecting through other machine then the first machine in the line will be the default gateway for the second machine.
internet
|
machine 1
| |
machine 2 machine 3
now you see machine 1 will be the default gateway for machine 2 and 3. if machine 2 and 3 get their ip by dhcp from machine 1then it will automatically set the default gw. but if you are giving static ips to the 2 and 3 machines then you need to specify the default gateway.
put this line in '/etc/sysconfig/network-scripts/ifcfg-eth0'
If it has internet access then it obviously has all the routes set. If you want internet access through another linux box you will need to enable ip forwarding and masquerading. If the other box is windows you will need to have ICS installed.
No, it's not connected to the Internet. It can't even ping anything. I thought it was a problem with the default gateway, but I'm beginning to see it isn't the default gateway and something else is wrong. I have no idea what it could be now.
I believe the scource of your confusion is that you assume I know what I'm doing. I had a network problem where I couldn't ping anything. I knew that all the network information was correct, except I didn't have anything as the default gateway. I didn't know what a default gateway was and thought I might need one. I see now that I don't. A default gateway is kind of like your proxy server, right?
Strangely enough, everything works normally now. I don't know what was wrong, and I don't know what fixed it, but at least it works.
Thank you all for enlightening me about default gateways.
But, if you sill think it's important, here is the readout of ifconfig:
lo Link encapLocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX pacets:12 errors:0 dropped:0 overruns:0 frame:0
collisions:0 txqueuelen:0
... and here is the readout of route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Ifase
10.0.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
And yes, folks, that last addres is 127.0.0.0 . I just noticed that right now, and I don't think it's right, but I don't know enough to know if I should worry. When I ping 127.0.0.0 it says:
Do you want to pring broadcast? Then -b
When I "ping 127.0.0.0 -b" it says "pinging broadcast address". I thought my broadcast address was 10.255.255.255 . What's going on?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.