LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-14-2008, 10:40 PM   #1
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Rep: Reputation: 15
Setting up a home network problem


I have two interfaces on my ubuntu 8.04 machine, eth0 and eth1. eth0 is for internet(working) and eth1 uses dhcp with a static ip(not working) for my other computers on the network.

My windows machine can't ping domain names or ips when connected to eth1. It acquires an ip address from my dhcp3 server and can ping the static ip, but nothing on the internet. I also tried disabling ufw.

-----------------------
/etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet dhcp

iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1

auto eth0
auto eth1
-----------------------
/etc/dhcp3/dhcpd.conf

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 64.71.255.198;
option domain-name "shwick.mydomain";

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.100;
}
-----------------------
/etc/default/dhcp3-server

INTERFACES="eth1"
-----------------------
/etc/resolv.conf

search phub.net.cable.rogers.com
nameserver 64.71.255.198


I'm thinking this has something to do with the gateway. When I enter a gateway in interfaces for eth1, interface eth0 can't connect/ping the internet.

I read through the ubuntu server guide but I'm really confused right now, any help is welcome.
 
Old 08-14-2008, 10:55 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's probably just that nothing is getting forwarded on the Ubuntu box. Can you post the output of

cat /proc/sys/net/ipv4/ip_forward

iptables -L

route

(you'll need to enter these commands from a terminal, and probably add "sudo" before each command, so "sudo iptables -L")

What is "ufw"?
 
Old 09-23-2008, 09:35 PM   #3
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Original Poster
Rep: Reputation: 15
Sorry for the long time before reply.

The problem was that I didn't have port forwarding enabled. I disabled ufw because it was going to cause problems moving forward with other services. I used this as a guide to enable port forwarding with iptables: https://help.ubuntu.com/community/In...nectionSharing
 
  


Reply



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
Setting up a home network reverse Linux - Networking 2 07-14-2007 11:53 PM
Need help setting up a home network. joe83 Linux - Networking 7 08-09-2004 02:58 PM
Help with setting up home network plehman Linux - Networking 1 02-14-2004 12:15 PM
Problem setting up home network bcarl314 Linux - Networking 2 12-04-2003 07:38 AM
Setting up a home network gi13s Linux - Networking 1 08-06-2001 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration