DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im having problems with downloading torrents..Very low download rates.Under windows rather than use UPnP I assign a static IP and open port on router.Has always worked.Now problem is I cant figure how to set a static IP under Debian.Im using lenny and I tried to use Sysem>network to assign IP but It wont connect.As far as UPnP it dosent work either.Which is easier to get working?A static IP or getting UPnP working?And how?For UPnP do i need to install something or make sure a service is running?I have UPnP on on my router..
user@it-etch:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
Ok..I tried for about half hour trying to get it to work,but cant get it to connect.I basically copied code and pasted into interface file.I just changed the IP..
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
I wasnt sure If i need to change broadcast,network??My resolv lookis like..
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 2678
#
### END INFO
nameserver 192.168.1.1
Im not sure what Im missing.Ive tried different things in interface file..From changing network to 192.168.1.1 instead of 192.168.1.0..Ive remvoed the network and broadcast from file,because when I use GUI it dosent add that to file..I used GUI to set up static then added network,broadcast to it.I tried rebooting each time I edited interfaces file..but I sill cant get it to connect to internet.I can connect to router..so Im not sure what setting is wrong ..Is it the resolv??Should it be 192.168.1.7,,I treid that but it didnt work either..Not sure what Im doing wrong..
if you can connect to your router then the NIC is working..
resolv.conf allows you to resolve DNS names. When you system is able to connect to the router see if you can put the following in your web browser and get to Google.
If googles web page loads then your problem is definitely with resolv.conf, because your system is not resolving DNS.
instead of 192.168.1.1 (the IP address of your Router) in resolv.conf you could enter the IP address of your ISP's DNS server(s)
Ok,I was mistaken.I thought it was connecting to router because router DD-WRT main page came up,,I use Epiphany as browser and it was just bringing page up because it had it in cache.when i tried to access setting it wouldnt connect.I basically just gave up and just use DHCP..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.