LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu-adding To My Windows Network (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-adding-to-my-windows-network-408205/)

Moose3565 01-26-2006 09:39 AM

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! :study: :scratch: :confused:

rylan76 01-27-2006 03:47 AM

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!


All times are GMT -5. The time now is 10:35 PM.