Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-26-2006, 09:39 AM   #1
LQ Newbie
Registered: Aug 2005
Location: Ft. Laud Florida
Posts: 17

Rep: Reputation: 0
Post Ubuntu-adding To My Windows Network

Hey whomever can help me. I just installed Ubuntu on one of my computers in my room, and I would like to connect it to my Linksys wireless router through ethernet, but be connected to my network. I have a Comcast Cable modem connected to my router, and the main reason I want ubuntu on the network is for internet. I tried connecting my computer directly to the modem during install for it to detect DHCP but to no avail. Im a newbie to linux, so I would appreciate as much help as I can get. Thanks!
Old 01-27-2006, 03:47 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,506

Rep: Reputation: 100Reputation: 100
I have much the same setup under FC3 but I don't use DHCP. What I did was to statically configure my router to an IP address, statically configure my Linux machine to an IP address, and then setup the gateway on my Linux machine to point direct to the router.

Can you ping your router? What do you see if you go


in a terminal?

Mine looks like this:

[rylan@StefanLinux ~]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 eth0
default UG 0 0 0 eth0
[rylan@StefanLinux ~]$

Note that on your system also there must at least be one UG flagged line - if there is none it means your routing table does not have a gateway defined, and it will be impossible to access the net from that PC.

If you see you don't have a UG line, try typing

/sbin/route add default gw netmask eth0

as root in a terminal.

Of course, substitute my router's LAN address ( with the LAN address of your router.

After doing the above, try and ping your router and see if you get a response. If you do, you also need to ensure that your system has some DNS servers configured.

In a terminal, do

vi /etc/resolv.conf

(at least, this works in FC3)

and see if the file contains anything. It must look something like this:


where the IP addresses of course, are the DNS servers provided by your ISP. If there are no IP addresses configured, simply add some lines beginning with "nameserver" and enter the IP addresses for the DNS servers as shown above.

Once you've done that, also edit the file


(at least on FC3) and make sure it contains


where, of course, you again substitute the IP address on your LAN of your router into the GATEWAY line's IP address.

Hope this helps!


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
cdrom: open failed. windows network install from hdd ubuntu boot jgams Linux - General 2 01-02-2006 03:37 PM
ubuntu will not see windows network pc guardianx Linux - Networking 3 08-09-2005 01:38 PM
Adding a network interface in C/C++ rozeboom Programming 2 03-19-2004 08:33 AM
adding a windows network printer Cedtech23 Linux - Hardware 1 02-22-2004 01:48 PM
Adding a Linux Server to a Windows network DrGump Linux - Networking 11 03-01-2002 09:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration