[Ilugc] Network Problem with SystemRescueCD

  • From: girish1729@xxxxxxxxx (Girish Venkatachalam)
  • Date: Wed Oct 17 15:06:47 2007

On 01:00:41 Oct 17, Mohan R wrote:
 

Here the command I performed to cofigure srcd for network

# dhclient eth0 -s 192.168.1.1


Why -s? What does it do?

There should not be a need to use it.

dhclient eth0 alone will suffice.

But dhclient failed to configure. After that, I gave te below command

# ifconfig eth0 192.168.1.3 netmask 255.255.255.0

I also put the default gateway as follows

# route -v add 192.168.1.0 gw 192.168.1.3
# route -v add default gw 192.168.1.1


There is a problem here.

The first route add command is superfluous. The moment you assign an 
IP address to an interface  along with a subnet mask, the reachability
to all the hosts in that network is implicit.

The basic idea of routing is very simple.

Rule 

#1 ) You can only use directly connected machine as the next hop. 
     Which is to say that the gateway should reside on the local
     network/networks and should be reachable without any route.

    The next hop in linux is specified as the argument to "gw"
    parameter.
#2) There should not be more than default route

#3) Any router has at least two interfaces

There are more but this is sufficient for now.

after that I ping the server as

# ping 192.168.1.1

but It failed to detect the server.

but the local loopback is working correctly because when I ping for
192.168.1.3 it gives the correct output. I think this is not a network
driver priblem for srcd. But I am not able to connect the net through srcd.

I am a beginner on network with linux. I will be thankful if anybody help me
to solve this problem.


No problem. Routing is hard to understand.

Keep trying. You will succeed.

Best of luck!

regards,
Girish

Other related posts: