km wrote:
After everything done and working, route -n gives me the following:
kamal@kMax:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.23.119.14 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
and the contents of interfaces file are as follows; which i guess is really crappy, but still working. any clues on cleaning it up? :P --------- GNU nano 2.0.6 File: /etc/network/interfaces
auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0
iface dsl-provider inet ppp pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf provider dsl-provider
auto eth0 iface eth0 inet static address 10.10.80.1 netmask 255.0.0.0 gateway ---------
Address 10.10.80.1 < this is the addr i chose on LAN, which i don't use any more. Is it safe to remove? Also, is it safe to comment out the `provider` line? i am not using that dsl-provider any more.
You can comment the entries you think are not necessary. If you are no longer using the ethernet, you can simply keep two lines. This is useful for those who use cablenet pppoe where there is no static ip for ethernet and no dhcp server at the other end.
auto eth0 iface eth0 inet manual
If you are not using dsl-provider, you can replace it with the one you are using (pppoe). The name should exist in the /etc/ppp/peers directory. The PPPoE entry is written to the interfaces file only because you pressed enter when you were asked if you want it to start during boot time.