LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   simple network (https://www.linuxquestions.org/questions/linux-networking-3/simple-network-265137/)

sa1nt 12-11-2004 04:11 AM

simple network
 
Hi, i've got the following problem. Trying to build simple home network. Router address is 192.168.0.1
routing table is empty
#ifconfig eth1 192.168.0.2
#route -n
Target: 192.168.0.0
Gate Way: 0.0.0.0
Mask: 255.255.0.0
and loopback on 127.0.0.1
I can't delete this first routing rule. I'm trying to make a flush with root previlegies by:
#route flush
and i'm getting "flush is unsupported"
then i tried remove this rule manually by: route del <something>
and always got "host is not found"
I am frustrated. Have no idea what to do. Tryed to add the default route way:
#route add default gw 192.168.0.1
But it's still not working because the stupid first routing table entry.
Guys please help me. I am desperate.

And one more question how can i activate DHCP on the client (192.168.0.2)?

maxut 12-11-2004 10:56 AM

what is your distro? u must tell us about your distro if u want us to help u.
"man route" will give u enough info about route command
u may laso want to read man of dhclient.

good luck.


All times are GMT -5. The time now is 05:43 AM.