LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-18-2006, 05:05 PM   #1
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Rep: Reputation: 16
routing


Hi! I've set up ubuntu 5.10 with dhcp3-server
Gives away ip addresses ok, but can't get it to route through out on the net for the clients. What do I do?

eth0 192.168.2.200 / 255.255.255.0 (internet)
eth1 10.1.1.1 / 255.255.255.0 (local) dhcp3-server

my friend have a router at 192.168.2.1
need to use this 192.168.2.200 as "internet" because of a wireless connection to my friends house which the server is connected to through eth0

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
10.1.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

this is what is shown when typing "route"

here is from dhcpd.conf

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.20 10.1.1.30;
option domain-name-servers 192.168.2.1;
option domain-name "linuxnet";
option routers 10.1.1.1;
option broadcast-address 10.5.5.255;
default-lease-time 600;
max-lease-time 7200;
}

anyone see the problem?
used clarkconnect not long a go, that worked ok!
 
Old 01-18-2006, 05:37 PM   #2
fdahl_009
Member
 
Registered: Oct 2005
Location: Norway
Posts: 148

Original Poster
Rep: Reputation: 16
OK NOW!

root@linuxserver:/proc/sys/net/ipv4# echo "1" > ip_forward
root@linuxserver:/proc/sys/net/ipv4# /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
  


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
Routing ? LAR12345 Linux - Networking 2 02-12-2005 02:22 PM
routing(again????) willigiann Linux - Networking 5 11-13-2004 09:06 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Help Routing RH 8.0 LAR12345 Linux - Networking 9 04-13-2003 08:04 PM
routing help eclipsetech Linux - Networking 1 03-08-2003 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:13 PM.

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