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.
I have just installed the network on my linux machine, and i can ping the other PC in my network and my dns server, but i can't start the internet.
how come ?
I am running Red Hat 8.0 (Psyche). My wireless lan card is the MA311 (by Netgear) and the router it is connected to is the MR814 (also by Netgear). From linux, I can access all computers hooked up to the local network - I can even log into the router and play with its settings! I cannot, however, access the internet.
Yes, I have tried using the actual IP addresses of servers rather than their domain names. No affect. Yes I have tried pinging servers outside my local network rather than http'ing to them. I receive no response. Yes I also have a wired ethernet card (by Realtek) and yes it is disabled on startup.
Incidentally, I cannot connect to the router using DHCP - I must manually specify an IP address and SSID, although if I connect to the router through my wired ethernet card, DHCP and the internet work. Also, I my machine is a dual-boot. The card works fine under Windows 98. I have no http proxy settings defined under Windows or Linux.
This sound anything like your setup?
Thanks in advance for any help!
Thanks, Mara. Truthfully, I have very little concept of what I am doing. My wireless device is configured as "wlan0". I think the following file defines the gateway (the comments were added by me):
Filename: /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=static #DHCP hasn't been working
IPADDR=192.168.0.3 #I've configured my router to reserve this address for my machine
GATEWAY=192.168.0.1 #This is the same ip address I use to configure the router
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAYDEV=wlan0
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes
I think the gateway is defined here, but perhaps I need to define it somewhere else as well...? Also, should the last two lines be altered since DHCP isn't working? I hope you can figure this out!
Originally posted by kc8tbe How do I know wether or not my gateway is set correctly - is their a command I can use to determine what my current gateway settings are?
Type:
route
And it should display your default route which should be your router/gateway. Also make sure you have your default DNS server's listed in /etc/resolv.conf
If you can access the internet then your gateway is set correctly. You defined what your gateway is in your /etc/sysconfig/network-scripts/ifcfg-wlan0:
GATEWAY=192.168.0.1 #This is the same ip address I use to configure the router
As you can see in my previous posts, my gateway is properly set in ifcfg-wlan0 but I cannot access the internet - only the local network.
Upon typing route I received the following output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
127.0.0.0 * 255.255.255.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
(sorry I couldn't format the table better)
Does this look correct - and if not, how to I go about changing it?
Thanks again!
My router identifies my computer as being named "Jack" (this is its windows name). Just for poops and giggles, I changed my linux hostname to "Jack" - voilla! Now I can access the internet... but only through giving the browser the IP address of the site I want to view (previously, even this didn't work).
My resolv.conf file simply says:
search Jack
("Jack" used to be "localhost". Doesn't work either way.)
Also, since changing my hostname I get the following error from lpd on startup:
localhost Get_local_host: 'localhost' IP address not available!
I don't actually know the IP addressed of any nameservers. Should I use the IP address of my ISP, Ameritech?
Originally posted by kc8tbe My router identifies my computer as being named "Jack" (this is its windows name). Just for poops and giggles, I changed my linux hostname to "Jack" - voilla! Now I can access the internet... but only through giving the browser the IP address of the site I want to view (previously, even this didn't work).
My resolv.conf file simply says:
search Jack
("Jack" used to be "localhost". Doesn't work either way.)
Also, since changing my hostname I get the following error from lpd on startup:
localhost Get_local_host: 'localhost' IP address not available!
I don't actually know the IP addressed of any nameservers. Should I use the IP address of my ISP, Ameritech?
nameserver 67.38.255.254
Yes, it would be your ISP's DNS servers you are connected to, unless your running your own.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.