LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2012, 09:58 AM   #16
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Moderator Response


Moved: This thread is more suitable in <Linux-Networking> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-28-2012, 10:50 AM   #17
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
Any help please, I hate using windows while I have linux on my computer !!!
 
Old 10-28-2012, 01:42 PM   #18
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Moderator Response

Hi,

Please do not bump your thread without adding useful content.

Your ADSL modem username is Admin with a password Admin, once you enter the address 10.0.0.138 in your browser address bar you will get the UI to input both. Be sure you computer has a IP in the same range as your modem. If the modems IP is 10.0.0.138 then either use DHCP to get address from the modem when you restart inet. Or use a static IP in the range, say 10.0.0.139 if that is available.

You can check your IP with 'ifconfig'. Or;
Quote:
I would setup a static IP first, do as root from cli;
For Ethernet(wired) use this part;

Code:
~#/sbin/ifconfig eth0 10.0.0.139
~#/sbin/route add default gw 10.0.0.138
Then proceed to this part;
Code:
  ~#route -n                         #show the kernel route table
 ~#ifconfig eth0 up                #should be up already
Code:
 Then test;
 ~#ping 10.0.0.138                 #ping your gateway
 ~#ping 208.69.32.130               #google.com IP
 ~#ping google.com                  #test DNS, if fail then
                                    #check /etc/resolv.conf
 
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.

Code:
sample '/etc/resolv.conf';

 search 10.0.0.138     
 nameserver xxx.xxx.xxx.xxx   #ISP DSN 'replace xxx.xxx.xxx.xxx
                                              #with IP from your ISP
nameserver  8.8.8.8              #Google
nameserver  67.215.65.132 #OpenDNS 
nameserver 4.2.2.1               #Verizon third level DNS
nameserver 4.2.2.2               #OK to use
nameserver 4.2.2.3
nameserver 4.2.2.4
 
 
Old 10-29-2012, 09:39 AM   #19
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
Hi,
I'll try this soon, but just wanted to know where do I insert the username and password I get from my provider??
Can you please explain your last code,the last quotation ??
What is the inet and how I restart it ? how do I use static IP ?

Please excuse me for the questions, but I am sort of newbie, I use linux for long time now(since 2006) but I used mandriva and never delved into details, only used specific tools such as emacs,gcc,g++, mplayer,firefox... .


Thanks

Last edited by lin66uxx; 10-29-2012 at 10:19 AM.
 
Old 10-29-2012, 02:39 PM   #20
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Member Response

Hi,

Quote:
Originally Posted by lin66uxx View Post
Hi,
I'll try this soon, but just wanted to know where do I insert the username and password I get from my provider??
Can you please explain your last code,the last quotation ??
What is the inet and how I restart it ? how do I use static IP ?

Please excuse me for the questions, but I am sort of newbie, I use linux for long time now(since 2006) but I used mandriva and never delved into details, only used specific tools such as emacs,gcc,g++, mplayer,firefox... .

Thanks
Very self explanatory with the sentences above the code sample. You can use 'Google' or 'DuckDuckGo' to search keywords. 'inet' is a service that you use when communicating over the network. The 'inet' service are started at boot but most support 'start, restart & stop' as arguments passed to the script on the 'cli'. I believe if you do 'man service' the information will be presented for 'Mandriva'. I do not use 'Mandriva' but you should have a terminal or console to launch in order to input commands. These system commands will require you to be 'root'. You can use 'su -' or 'sudo', be sure to 'man command' to get the command functions, options and details. If you do a 'man ifconfig' you will be presented with details. 'Man' is your friend, so use it to learn.

In the 'code' information above you can use the console to input the commands at the command line(cli) to setup a static IP for particular device & your nameserver from your ISP within '/etc/resolv.conf' for DNS by editing with 'vi', 'nano' or other favorite text editor. You can leave/use the third level nameserver for fall back.

Some useful information to gain some experience or knowledge;
Quote:
Just a few links to aid you to gaining some understanding, item 10 should be of assistance;



1
Linux Documentation Project
2
Rute Tutorial & Exposition
3
Linux Command Guide
4
Bash Beginners Guide
5
Bash Reference Manual
6
Advanced Bash-Scripting Guide
7
Linux Newbie Admin Guide
8
LinuxSelfHelp
9
Utimate Linux Newbie Guide
10
Linux Home Networking
11
Virtualiation- Top 10

The above links and others can be found at '
Slackware-Links'. More than just Slackware® links!
Plus be sure to look at my 'signature'.
 
Old 10-30-2012, 10:58 AM   #21
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
I used Mandriva till recently but now I use openSUSE ..!
 
Old 10-30-2012, 11:31 AM   #22
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
Here are the output of the commands you gave:

Quote:
the resolv.conf file :
# Generated by dhcpcd for interface eth0
nameserver 10.0.0.138
nameserver 10.0.0.138
Quote:
ping 208.69.32.130
PING 208.69.32.130 (208.69.32.130) 56(84) bytes of data.
From 10.0.0.138 icmp_seq=1 Destination Net Unreachable
From 10.0.0.138 icmp_seq=2 Destination Net Unreachable
From 10.0.0.138 icmp_seq=3 Destination Net Unreachable
From 10.0.0.138 icmp_seq=4 Destination Net Unreachable

Quote:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
I am not sure what shall I do with the sample resolv.conf file ????

HELP !!

Thanks,
 
Old 10-30-2012, 12:30 PM   #23
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Member Response

Hi,

From the 'cli' within a terminal as root(issue 'su -' and provide the root password') then do 'nano /etc/resolv.conf'. Copy the below sample between the dashes and paste into the open file that you are editing with 'nano'. Then write the file with a 'ctrl o' then exit using 'ctrl x'. Notice the commands at the bottom of the nano session screen. Please note that the '#' is a comment identifier within posted material, you do not need the comments but it helps at a later time to have comments.
Code:
 '/etc/resolv.conf'; 
------------------------------------------------------- 
search 10.0.0.138               ##ISP DNS will be provide from the modem

nameserver xxx.xxx.xxx.xxx   #ISP DSN 'replacexxx.xxx.xxx.xxx
                                             #with IP from your ISP 
nameserver  8.8.8.8              #Google 
nameserver  67.215.65.132 #OpenDNS  
nameserver 4.2.2.1               #Verizon third level DNS 
nameserver 4.2.2.2               #OK to use 
nameserver 4.2.2.3 
nameserver 4.2.2.4
-----------------------------------------------------------
Note that the 'xxx.xxx.xxx.xx' should be replaced with the ISP DNS that you are given by provider.

After exiting 'nano' you should still be root. Then from 'cli' do;
Quote:
~#/sbin/ifconfig eth0 10.0.0.139
~#/sbin/route add default gw 10.0.0.138
Note the '~#' is my root prompt, yours may differ .

Then do this;
Quote:

~#route -n #show the kernel route table
~#ifconfig eth0 up #should be up already
Please post the output for the 'route -n'.

To test do this;
Code:
~#ping 10.0.0.138            #ping your gateway 
~#ping 208.69.32.130           #google.com IP 
~#ping google.com                #test DNS, if fail then                                              #check /etc/resolv.conf
First ping is to see if your route is proper and configs OK.
Second ping is to test outside your LAN by using IP address. If this fails then you still have problems. If you get response then after a few lines, press 'cmtrl c' to stop. Then you will ping using the name, if this fails then your DNS is not working. If it passes then you should be good to go.

BTW, you really should look at some of the referenced links to LEARN. Whenever at the 'cli' you can do 'man command' where command could be 'ifconfig', 'nano', 'route' or whatever command you question.

I cannot get any simpler nor plain, you do need to learn. You can use several of the before mentioned reference links.

Last edited by onebuck; 10-31-2012 at 02:12 PM.
 
Old 10-31-2012, 06:10 AM   #24
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
That does not work !?

the output of route -n is :
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
Also you didn't said where do I feed the username and password given by the provider ??

Last edited by lin66uxx; 10-31-2012 at 06:12 AM.
 
Old 10-31-2012, 08:28 AM   #25
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Member Response

Hi,
Quote:
Originally Posted by lin66uxx View Post
That does not work !?

the output of route -n is :

Also you didn't said where do I feed the username and password given by the provider ??
Is that for your ISP account or for the modem UI.

Please post the output for 'cat /etc/resolv.conf', ifconfig -a. You did follow the commands sequentially as given? When you do the 'sbin/ifconfig eth0 10.0.0.139' then do a 'ifconfig -a' & post that output.
 
Old 10-31-2012, 11:04 AM   #26
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
Hello,
I did follow the commands as you gave them except the test part, which I didn't execute since I didn't know what my Gateway is .

I will follow your last post in a while, BUT, I just wanted to make a comment about these problems I face under Linux, now my openSUSE hangs while booting sometimes, when I first installed it, it was getting stuck while booting with kernel panic, and never booted, I burned a new DVD and reinstalled it, it worked for about 10 times without getting stuck and now it get stuck sometimes while booting, I am afraid that it will get stuck all the time like before and loose all my data and all of the configurations I made, I used Mandriva for about six years, some versions were buggy but nothing so serious, Powerpack 2011 has damaged sound and obsolete Gnome, I am just so disappointed, I really like Linux, but I wasted the past month trying to find a distro with reputation that will work for me, and regarding investing some time to study textual Linux, I am a student and I don't have that much time especially with this disappointment, with Mandriva I used the MCC(Mandriva Control Center) which allowed me to configure the whole system, the last Mandriva I used was 2010.0 32bit, as an upgrading from 2009, the only bug it had was that occasionally the window decorator crashed, I don't know what to say, I am considering going back to Windows and do all of my programming tasks under Windows.

I didn't touch the modem UI this time only executed the commands that you gave as a root from my Konsole.

Thanks,

Last edited by lin66uxx; 10-31-2012 at 11:10 AM.
 
Old 10-31-2012, 12:20 PM   #27
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
Quote:
for ping google.com :

ping: unknown host google.com
Quote:
resolv.conf:

search 10.0.0.138 ##ISP DNS will be provide from the modem

nameserver ip of DNS as found on internet #ISP DSN 'replacexxx.xxx.xxx.xxx
#with IP from your ISP
nameserver 8.8.8.8 #Google
nameserver 67.215.65.132 #OpenDNS
nameserver 4.2.2.1 #Verizon third level DNS
nameserver 4.2.2.2 #OK to use
nameserver 4.2.2.3
nameserver 4.2.2.4

Quote:

ifconfig -a :

eth0 Link encap:Ethernet HWaddr my MAC address
inet addr:10.0.0.139 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::ba88:e3ff:fe36:7359/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:893 errors:0 dropped:0 overruns:0 frame:0
TX packets:1259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:99660 (97.3 Kb) TX bytes:124624 (121.7 Kb)
I omit the wlan0 and lo.

after 'sbin/ifconfig eth0 10.0.0.139' :

Quote:
eth0 Link encap:Ethernet HWaddr my mac address
inet addr:10.0.0.139 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::ba88:e3ff:fe36:7359/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:893 errors:0 dropped:0 overruns:0 frame:0
TX packets:1259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:99660 (97.3 Kb) TX bytes:124624 (121.7 Kb)

I omit the wlan0 and the lo.
 
Old 10-31-2012, 02:09 PM   #28
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,907
Blog Entries: 14

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Hi,

Your gateway is '10.0.0.138'. Correct typo in my post.
 
Old 10-31-2012, 02:15 PM   #29
lin66uxx
Member
 
Registered: Oct 2012
Posts: 120

Original Poster
Rep: Reputation: Disabled
I realized that after I took a look at the output of route -n ...!

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
adsl modem in opensuse 11.4 64 bit artclub Linux - Hardware 1 08-17-2011 05:45 PM
How to configure Broadband (ADSL MODEM) in openSUSE 10.2 gsmanes SUSE / openSUSE 2 04-02-2007 05:16 AM
opensuse 10.2 speedtouch usb adsl modem lorne444 SUSE / openSUSE 0 02-12-2007 07:13 AM
Using a D-Link adsl modem Ubuntu can't find it silver66 Linux - Newbie 15 12-17-2006 04:09 AM
D Link DSL200 USB ADSL modem Scuzi Linux - Newbie 2 03-12-2004 06:03 PM


All times are GMT -5. The time now is 10:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration