Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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;
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... .
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;
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 ????
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;
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.