Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Kendancer1
k3lt01: I pulled up Ip address from windows run box, got the following:
Connection-specific DNS Suffix.... Gateway.2wirenet
Ethernet Adapter Local Area Connection
IP Address.........................192.168.0.64
Subnet Mask........................255.255.255.0
Default Gateway....................192.168.0.1
When I entered command "route add default gw 192.168.0.64 into terminal, response was:
SIOCADDRT: Operation not permitted"
This is starting to sink in...like water thru clay.
The bold underlined bit is your modem. That is the number you need to tell your computer about so in a terminal type
Thor: in regard to "How about eliminating that factor? Ken, can I tempt you to use a static IP address on the inside? That could eliminate at least one "loose end"." Please explain how to.
Fairly simple, again, in the console, enter this
Quote:
ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255 up
Where the bit marked in red is the IP address you want to use, permanently. Caution (this is a bit of networking theory) though about the choice.
Let's assume you have tow PC's on trhe same network, consider this:
Quote:
PC 1 192.168.1.25
PC 2 192.168.0.25
They will never be able to reach/see each other - I marked the crucial bits in red. For all participating hosts (PC's, printers, modems and what have you) in a network to function together, only the LAST bit has to change. If a bigger network is called for - this scheme only allows for some 255 hosts - a different scheme is called for. These schemes have been determined by IANA and are documented. There is a scheme for each particular use...
Okay, your modem has 192.168.0.1 as address, fair enough, then you'd set the IP address like so:
Quote:
ifconfig eth0 192.168.0.X netmask 255.255.255.0 broadcast 192.168.10.255 up
This is the setup for the loopback deviice, but I dont see the setup of the network card...
There should be an entry that starts with eth0 as well...it almost looks as if the network card itself is not (yet) installed in the Linux section...
Quote:
Again, my gratitude to you gents for taking your time to help, Ken.
Dont worry, in fact, I enjoy doing this, and I suspect I'm not the only one...
Thor: The networking address makes more sense. I entered command "ifconfig eth0 192.168.0.1
(whereas the last digit was tried 3 different times as .1, .2, .3) netmask 255.255.255.0 broadcast 192.168.10.255 up" Reply was same each time:
SIOCSIFADDR: Permission denied
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: Permission denied
SIOCSIFBRDADDR: Permission denied
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
tobiSGD: Thank you, I entered command "sudo route add default gw 192.168.0.1"
Response: "[sudo] password for kenken:" I entered my password
Response: "SIOCADDRT: No such process"
Ken
Thor 2, K3lt01 & TobiSGD: Some points about computer. I originally set up my desktop w/ a modem from the local telephone company Qwest (now CenturyLink), the modem was simple but effective. Several months ago I found a different modem on craigslist, also from Qwest but this one has several Internet ports in back to run several pc's, netflix at same time. So this is the one I currently have, this is the one I found IP Address, Subnet Mask & Default Gateway in windows. Could the changing to a different modem cause issues, I had run fine for several months before this whole thing began. Second, I am getting a weird issue w/ my desktop/linux, it began at same time the "firefox can't find the server at start.ubuntu.com" issue began. It is this, when I start up my computer and leave on for several hours with no activity, the screen goes black and the green-lit on/off button goes yellow and I cannot get the screen back on. The Processor, which has a green on/off button is lit but nothing happens. I have to hold Processor button in for several seconds till the processor shuts down, wait several seconds, then I am able to turn computer back on. Computer & screen then works again, only to go thru the process all over again. Any suggestions? Ken
K3lt01: Per TobiSGD, he suggested the following, "sudo route add default gw 192.168.0.1", I posted my results, prior was Thor's entry. I posted my results for that also. Kinda stuck as to what to try next. Did you read the latest thread about the switching to a different modem? I'm not sure that has any bearing, it's worked fine for the windows os, actually it worked fine for about 2 months w/ linux. Ken
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Yeah I did read that, sory got a bit on my mind lately so didn't really notice your question about the modem. Did Firefox in Ubuntu work at all with this current modem? If it hasn't then are you able to try the old modem? You will probably need to reset the gateway again if the IP address is different.
K3lt01: Yes, they both worked when I switched over to the new modem, windows is still running with it. I did hook the old modem back up to check it and had the same issue, one up, one down. The Gateway listed above is of the new modem. Ken.
k3lt01: Just a quick thought, would upgrading or reloading my current linux version solve anything? I realize it would take away the trouble-shooting process but...Ken
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Kendancer1
k3lt01: Just a quick thought, would upgrading or reloading my current linux version solve anything? I realize it would take away the trouble-shooting process but...Ken
Possibly, but I doubt it. I'm just a little stumped as to what the issue may be. Have you got encryption on the modem? WEP or WPA or anything like that? In other words do you have a password to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.