Routing/networking..
I seem to have a problem or at least I don't understand why things are working
this way.
When I take down and bring up my ethernet connection using 'ifup eth0', I
can't go anywhere on the internet . Nothing seems to work. A 'route' query
shows the following:
----------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
44.0.0.0 * 255.0.0.0 U 0 0 0 eth0
default linux.ve1drg.am 0.0.0.0 UG 0 0 0 eth0
--------
My interface file reads:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian
installation# (network, broadcast and gateway are optional)
iface eth0 inet static
address 44.139.34.209
netmask 255.0.0.0
network 44.0.0.0
broadcast 44.255.255.255
gateway 44.135.34.201
With this present setup I can't telent nowhere, including to
myself (44.135.34.209).
Now - if I taken down eth0 (ifdown eth0) and then TYPE in the following at a
command line everything works fine:
/sbin/ifconfig eth0 44.135.34.209 broadcast 44.255.255.255 netmask 255.0.0.0
/sbin/route del -net 44.0.0.0 netmask 255.0.0.0 eth0
/sbin/route add 44.135.34.201 eth0
/sbin/route add default gw 44.135.34.201 eth0
A 'route' command gives me the following and things now work:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
linux.ve1drg.am * 255.255.255.255 UH 0 0 0 eth0
default linux.ve1drg.am 0.0.0.0 UG 0 0 0 eth0
----------------------
Does anyone anyone know why my 'interfaces' file and the networking process
of Debian will not produce a proper networking/routing setup?
Obviously I am not doing something right and probably just need to purge the
system or something like that. Although a reboot does nothing more for me than
doing an 'ifdown' and then an 'ifup'. I get the same thing. I can't go
anywhere until I type things in at the command line..???
Life can be frustrating...
--
Ted Gervais
Coldbrook, Nova Scotia Canada
Reply to: