LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-26-2006, 09:39 AM   #1
Moose3565
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
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
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

/sbin/route

in a terminal?

Mine looks like this:

[rylan@StefanLinux ~]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.255.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 169.254.255.100 0.0.0.0 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 169.254.255.100 netmask 0.0.0.0 eth0

as root in a terminal.

Of course, substitute my router's LAN address (169.254.255.100) 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:

nameserver 192.21.14.235
nameserver 192.71.16.34
..etc..

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

/etc/sysconfig/network

(at least on FC3) and make sure it contains

NETWORKING=yes
HOSTNAME=YourHost
GATEWAY=169.254.255.100

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!
 
  


Reply


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


All times are GMT -5. The time now is 03:38 AM.

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