LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-29-2013, 02:38 AM   #61
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Here's an idea: try them both.

Evo2.
 
Old 05-29-2013, 03:01 AM   #62
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi,
Neither works , it connects through ifupdown instead of wired, and it has the same value as I set in the interfaces file !
I feel so frustrated, I use linux since 2005, and in Mandriva never encountered such a thing .
I just want it to work.

thanks,

Last edited by lin66uxx; 05-29-2013 at 03:06 AM.
 
Old 05-29-2013, 03:18 AM   #63
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by lin66uxx View Post
Neither works , it connects through ifupdown instead of wired,
what do you mean by that? After editing /etc/network/interfaces what command are you running to bring the interface up?

Quote:
and it has the same value as I set in the interfaces file !
So bringing the interface up does work? What are you actually doing and what what happens?

Quote:
I feel so frustrated, I use linux since 2005, and in Mandriva never encountered such a thing .
I just want it to work.
What are you encountering exactly?

Evo2.
 
Old 05-29-2013, 03:28 AM   #64
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Quote:
what do you mean by that? After editing /etc/network/interfaces what command are you running to bring the interface up?

Quote:
After edition the interfaces file I restart the NetworkManager, by /etc/init.d/network-manager restart.

Quote:
So bringing the interface up does work? What are you actually doing and what what happens?
In the NetworkManager and under wired, there are two options ifupdown(eth0) and DSL, it refuses to connect through DSL, but succeeds to connect to the ifupdown, and it has the same IP and netmask like those on the interface file.
Quote:
What are you encountering exactly?
When I boot into debian 7, sometimes it connects successfully into DSL, and after about an hour the connection drops, and any attempt to reconnect later fails.
 
Old 05-29-2013, 03:38 AM   #65
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Where is the DSL connection coming from? How is your router set up and how is it connected to your computer?
 
Old 05-29-2013, 03:44 AM   #66
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi,
I created the DSL connection using graphical tool(which I don't remember its name), under system -> network -> DSL, there are the options to create wired, Broadband,VPN ... .

Quote:
How is your router set up
I don't know what you mean .

It is connected to my computer through a cabel to the ethernet card.
 
Old 05-29-2013, 03:56 AM   #67
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Why would you you create a DSL connection if you're not using a DSL modem? If the router is not connected by a USB port or set up to run in bridged mode, then you are probably not using a DSL connection.
 
Old 05-29-2013, 03:59 AM   #68
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
I am sorry, actually I do use a DSL modem, it is D-Link DSL 2500U.
Regarding bridge connection, I am not expert, but what I do know, is that, I don't have the option to set my username and password through the IP asddress of the modem, but rather while creating the DSL connection.
 
Old 05-29-2013, 04:20 AM   #69
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Well the wifi connection is not much use to you with that router/modem...

It does seem to be a router and supports, NAT, PPPoE, PPPoA and bridged. I suggest reading the manual and getting it set up to allow you to connect via ethernet (not as a DSL modem).

http://www.dlink.ir/en/ADSLModem/ADS...ter/DSL_2500U#
Quote:
NAT , IP Static Route , Port Forwarding , DHCP Server/Client/Relay , DNS relay , DDNS
 
Old 05-29-2013, 04:29 AM   #70
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
I read through the link above, but could not find any useful information as to how to connect?
 
Old 05-29-2013, 04:56 AM   #71
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Read the manual which came with your router/modem or hunt for it online...

https://www.startpage.com/
https://duckduckgo.com/
https://encrypted.google.com/
http://www.bing.com/
etc
 
Old 05-29-2013, 08:56 AM   #72
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi,
OK, so I read through the link below, I managed to understand that to set the username and password I get from the ISP I have to choose a different WAN option rather than Bridged, is that write?
Next I am not sure which option to choose, is it PPPoA or PPPoE ? (page 17)
Third if my router ip address ends with 138, from where does my IP address starts from and till where it ends ?is it 139-254 ?
Also what is PPPoE service name? is it the name of ISP?
Any help is greatly appreciated ?
Thanks

Last edited by lin66uxx; 05-29-2013 at 09:03 AM.
 
Old 05-29-2013, 09:52 AM   #73
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
OK the bridged mode (not the same thing as a bridged modem) is correct - don't mess with that. The device is a router and DSL modem, it it is not a modem and you should not be trying to set up network manager to use it as a modem. I would advise that you just get rid of network manager and set up your connection using the networking daemon. You won't see any benefit from using network manager if you don't have a wireless connection.

Stop and disable networkmanager (for now)

Code:
# /etc/init.d/network-manager stop
Code:
# update-rc.d network-manager disable
Edit /etc/network/interfaces as follows
Code:
# The loopback network interface
auto lo
    iface lo inet loopback
# The primary network interface
auto eth0
    allow-hotplug eth0
    iface eth0 inet dhcp
(ensure your primary interface is called eth0 if it's eth1, substitute with that etc)

Restart networking daemon (not network-manager)
Code:
# /etc/init.d/networking restart
You should see "dhcpdiscover" and then a connection.

If there is a problem, you need to post the full output and the contents of /etc/network/interfaces
 
Old 05-29-2013, 10:20 AM   #74
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi,
network-manager has no option to disable, only stop,restart,start,status... .
What modification shall I do to the router through its IP?
Here is the output I get, I delete the MAC address of my eth0 and the IP of the router .
Quote:
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/my-mac-address
Sending on LPF/eth0/my-mac-address
Sending on Socket/fallback
DHCPRELEASE on eth0 to x.x.x.138 port 67
Reloading /etc/samba/smb.conf: smbd only.
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/my-mac-address
Sending on LPF/eth0/my-mac-address
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from x.x.x.138
DHCPACK from x.x.x.138
Reloading /etc/samba/smb.conf: smbd only.
bound to x.x.x.1 -- renewal in 1764 seconds.
ifup: interface eth0 already configured
done.
And there is no internet connection.
Thanks

Last edited by lin66uxx; 05-29-2013 at 10:21 AM.
 
Old 05-29-2013, 10:30 AM   #75
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Well from that output - it's working...

If the IP addresses you're hiding starts with e.g. 192.168.x then there is no point in hiding them as they're supposed to be private addresses - that's the whole idea of a NAT router.

Can you ping the router?

e.g.

Code:
$ ping x.x.x.138
(substitute the full gateway address)
If yes can you ping a hostname?
Code:
$ ping google.com
If not can you ping the IP address for that hostname?
Code:
$ ping 173.194.41.64
Post output
Code:
$ cat /etc/resolv.conf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to dual boot opensuse 11.3 and windows xp (opensuse 11.3 is installed first) varunb Linux - Newbie 13 11-10-2011 03:10 AM
Triple-booting Windows 7, Debian (6) and OpenSUSE (Newest: haven't installed yet) Omnilogist Linux - General 3 08-09-2011 04:31 PM
OpenSuSE 10.3 failing to uninstall openSuSE installer from the windows boot Lucens Linux - Newbie 5 10-11-2008 08:08 AM
Restarting Windows machine stops Linux machine mounting/connecting jamespetts Linux - Networking 3 05-29-2008 03:12 AM
Printing from Debian machine to Win machine, What I did wrong. sarajevo Debian 8 04-30-2008 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration