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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i have two computers with one using redhat fedora core3 and another one using knoppix 4, i try to connect them together using the following commands:
on redhat one:
ifconfig eth0 down
ifconfig eth0 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
on knoppix one:
ifconfig eth1 down
ifconfig eth1 192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0
route add -net 192.168.1.0 netmask 255.255.255.0 eth1
these two computers can ping each other, and redhat one can ssh to knoppix one, but the problem is knoppix one can not ssh to redhat one, and can not telnet to any ports, it said something like: there is no route to the remote host.
i also try to add an gateway with
route add default gw 192.168.1.254 eth1(eth0)
but it doesn't make any different.
yeah, first question is are you using dhcp. second question is are you behind a router? if you are behind a router, then the gateway ip address you put in has to match your router's ip address. mine is 192.168.1.1 (which is fairly common). so
route add default gw 192.168.1.1
for that. for ip addresses for your two machines, why not stick to the traditional 192.168.1.100 and 192.168.1.101? then at least we can narrow down the problem if it continues.
Originally posted by vito_huang the answers are i don't using dhcp and not behind any routers, but why the machine with redhat can ping and ssh to knoppix one, and canot use knoppix machine to any ports???
Make sure that the redhat machine is not running any firewalls which might be blocking
the connection to it. You can know this by running the shell command "iptables -L" on
the redhat machine.
I don't know what are you exactly trying to do, but for me I just wanted to connect
two machines directly to copy a couple of files. This meant they needed to be
on the same network.
So specifying the ipaddress and the netmask are enough.
- machine one: 192.168.1.1
- machine two: 192.168.1.2
- netmask for both : 255.255.255.0
Restart the network services and everything should work.