Network software problem..
ghovs at ghovs.moo.ca
Fri Dec 8 08:02:07 PST 2000
> In a message dated 12/8/00 3:28:05 AM Eastern Standard Time,
> ghovs at ghovs.moo.ca writes:
> << Hm, what do you get out of `route -n` and `ifconfig`?
> have you run `ifconfig eth0 IP_OF_ETH0 netmask NETMASK_OF_ETH0` and
> `route add default gw IP_OF_YOUR_GATEWAY`?
> Are you sure you don't need DHCPcd?
> To fix the (none) thing, run /sbin/hostname -f /etc/hostname after making
> an /etc/hostname containing, surprisingly, your desired hostname on a
> single line. >>
> I ran ifconfig, results are posted below:
> eth0 Link encap:Ethernet HWaddr 00:20:78:1A:93:DB inet
> addr:192.168.0.0 Bcast:192.168.0.255 Mask:255.255.0.0 UP
> BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:262
> errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0
> dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
> Interrupt:10 Base address:0xef80
> Then I ran route -n...,
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface 192.168.0.0 0.0.0.0 255.255.0.0 U 0
> 0 0 eth0
> I ran ifconfig eth0 192.168.0.0 netmask 255.255.0.0, but when it came to
> running the second command I did not know what to put in for the gateway.
Like most people have said, don't ever use an IP ending in .0 for a machine.
Well, what the gateway is is either what your ISP tells you is your gateway
(or your LAN/WAN admin).
It could also be whatever you use for router, whatever it is.
>From this point, I don't have the slightest clue of what your gateway should
Where is the machine?
Is it directly connected to the internet?
Is it in some intranet?
> As far as the "/sbin/hostname -f /etc/hostname" command you offered, do you
> mean "/bin/hostname -f /etc/hostname", cause my hostname file is in the bin
> directory not the sbin directory.
/bin/hostname or /sbin/hostname is the binary, and it doesn't particularly
matter where it goes.
/etc/hostname is a textfile with the actual hostname (like 'www.bunnies.org')
Peter de Freitas
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message
More information about the lfs-dev