Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-21-2013, 07:09 PM
|
#1
|
Member
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57
Rep: 
|
Linux box on a Windows domain ran network, can't get the dang thing on the internet.
I can get it hooked up and all but I can't get the dang thing on the internet.
My school just allowed personally owned devices, and of course, everything except the printers run Windows...
And so, being different, I decide to introduce *Nix to the "Virgin" network.
I hook it up, and I can access all devices on the network, but I can't connect to the internet. Any ideas?
(Sorry about how stupid I may sound, I'm tired.)
|
|
|
06-21-2013, 09:06 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,887
|
What distro/version of Linux? Does your schools policy ban non-Windows devices?
It might help get things started if you post the output of ifconfig (you may have to run it as root, depending on the distro), being sure to surround it with "code" tags, which become available when you click the "Go Advanced" button at the bottom of the quick reply window.
Also, try pinging devices within the network. If the ping is successful, try pinging outside the network (ping google.com, for example) and seeing what happens. If the internal ping succeeds and the external fails, try a traceroute [somewhere] outside; that could indicate the location of the failure.
If the ping is not successful, you likely aren't getting out of your box, but be aware that ICMP settings in some devices prohibit them from returning pings.
Last edited by frankbell; 06-21-2013 at 09:10 PM.
|
|
|
06-22-2013, 12:52 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
in addition to what frankbell stated also using code flags post your /etc/resolv.conf, it should look something like the following:
Code:
[user@server ~]$ cat /etc/resolv.conf
nameserver 192.168.222.111
this is were your DNS is stored in Linux, well at least the RedHat flavors (fedora and the like) I think it is the same for Debian based as well like Ubuntu and Mint.
|
|
|
06-23-2013, 04:36 AM
|
#4
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
Are you using DHCP to setup your networking or did you assign an IP address statically?
In addition to the listing of /etc/resolv.conf, can you post the output of `ifconfig` and `route -n` ?
|
|
|
08-26-2013, 08:23 PM
|
#5
|
Member
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57
Original Poster
Rep: 
|
Sorry it's taking so long guys...
Had to talk to IT guys.
Yeah, it's fine, I was told not to expect support for any issues.
They love me 
I'm using a Debian fork.
I CAN ping devices on the network and get replies, I just can't leave the network.
As for the tracert...
I forgot 
Here's the output of ifconfig.
Code:
eth2 Link encap:Ethernet HWaddr 88:51:fb:80:07:92
inet addr:172.20.3.118 Bcast:172.20.255.255
Mask:255.255.0.0
inet6 addr: fe80::8a51:fbff:fe80:792/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3583 errors:0 dropped:0 overruns:0 frame:0
TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:352025 (343.7 KiB) TX bytes:10452 (10.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:620 (620.0 B) TX bytes:620 (620.0 B)
I'm using DHCP to setup my networking.
Last edited by abcde597; 08-26-2013 at 08:27 PM.
Reason: Forgot to mention how I got IP address
|
|
|
08-28-2013, 02:20 PM
|
#6
|
Member
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96
Rep:
|
...and then we need the output of `route -n`. To get packets to leave the local network, the computer needs to know the "gateway" address. That should be setup via DHCP, but we should check.
Something like:
Code:
Host# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[snip]
0.0.0.0 172.20.0.1 0.0.0.0 UG 204 0 0 eth0
If you don't have a default route entry you'll need to ask your IT friends what it is (or see below). You can add it temporarily with:
Code:
route add default gw 172.20.0.1
If there is a default route entry, try to ping an outside IP address:
Code:
ping 173.194.34.177
If that works you have a working gateway and default route.
Then try to ping www.google.com to test name resolution. Per LLEB's post, the file that controls name resolution is /etc/resolv.conf. You can get the information you need to populate the file from a Windows machine by running `ipconfig /all` from a DOS window and finding the configured interface. The Connection-specific DNS Suffix value will go into the 'search' line (ie. LAN). The DNS Servers value(s) will go into the 'nameserver' line(s). If your IT friends weren't any help with the gateway address, you can get it from the 'Default Gateway' line.
A good /etc/resolv.conf would look like:
Code:
search LAN
nameserver 172.20.x.x
nameserver 172.20.y.y
|
|
|
All times are GMT -5. The time now is 08:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|