[Guessnet-devel] ifdown sand resolvconf issue
J. Bakshi
j.bakshi at unlimitedmail.org
Sun Aug 22 04:58:50 UTC 2010
Dear list,
I have been using guessnet since last a few months and it is a great application. I like to do some more customized configuration in guessnet, so I have come here. hope to get some enlightenment from you all, the developer behind guessnet.
[1] First of all I like to inform you that suddenly the ifdown stops working. Even last week, It worked successfully. But now it throws an error like
`````````````
ifdown eth0
ifdown: interface eth0 not configured
````````````````````
Obviously "ifconfig eth0 down" works but what is the wrong with ifdown ?
[2] I have installed resolvconf to provide dns also. The syntax is as suggested
dns-nameservers 208.67.222.222 208.67.220.220 4.2.2.2
but even it is also not working. I have made the /etc/resolv.conf empty and restarted ifplugd. guessnet correctly assigned the IP and gateway but not nameserver entry. Providing my config here is the best
```````````````````
#One important thing is to remove the line "auto eth0" from /etc/network/interfaces, so that we make sure #that eth0 is controlled by guessnet (if you want to control another interface with guessnet, you have to #remove the corresponding "auto" line of course)
# The loopback network interface
auto lo
iface lo inet loopback
# We first have to tell ifupdown that instead of just configuring the interface,
# it should first ask guessnet to find out in which network we are
mapping eth0
script guessnet-ifupdown
map default: unknown
map home office-airtel office-tata unknown disconnected
# If no test succeed after this amount of seconds,
# then guessnet selects the default profile.
# Default is 5, but some network drivers need more.
map timeout: 7
# uncomment for debugging
map verbose: true
map debug: true
iface home inet static
address 10.10.54.111
netmask 255.255.255.128
network 10.10.29.1
broadcast 10.10.29.128
gateway 10.10.54.1
dns-nameservers 208.67.222.222 208.67.220.220
test peer address 10.10.54.1
post-up /usr/local/bin/wishnet start
post-up /root/FIREWALL start
post-down /usr/local/bin/wishnet stop
iface office-airtel inet static
address 192.168.1.99
netmask 255.255.0.0
network 192.168.1.0
broadcast 192.168.1.0
gateway 192.168.1.1
dns-nameservers 208.67.222.222 208.67.220.220 4.2.2.2
metric 1
test peer address 192.168.1.1 mac 00:15:17:62:39:4f
pre-up /usr/local/bin/wishnet stop
post-up /root/FIREWALL start
# It's likely that you will also use your laptop within a new network where you
# haven't been before, and in such a case it's always a good idea to try to
# get an IP address via DHCP
iface unknown inet dhcp
pre-up /usr/local/bin/wishnet stop
post-up /root/FIREWALL start
#if you don't have a cable plugged in at all, the system
#should know what to do. In this case, we don't assign a IP address to the interface at all:
iface disconnected inet static
pre-up false
pre-up /usr/local/bin/wishnet stop
pre-up echo No link present
`````````````````````````````````
Hope to get some clue, please.
Thanks
More information about the Guessnet-devel
mailing list