Re: [opensuse] dhcp server forwarded with wifi
- From: Rodney Baker <rodney.baker@xxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 15:32:10 +1030
On Thu, 27 Mar 2008 09:55:13 Chris H wrote:
Greets:
Followed the howto on Novel on setting up a dhcp server for the internal
network but while Im getting an IP the machines being served by the
internal network can seem to find the net. The following is the setup I
used:
Machine 1 (router)
============
ath0 external
gets IP from router connected to ISP via dhcp from router
address is non routable 192.168.x.x
eth0 internal
dhcp server set to 10.0.0.1 serving addresses on 10.0.0.x
route
============
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 ath0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 ath0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0
0 ath0
Firewall is set to masquarading and forward
Can you draw a line diagram of this? I suspect that the default gateway for
the wi-fi connected machine (or the wired machine connected to the wi-fi
connected machine) is wrong.
Let me see if I have this correct:
ISP -----> Router/Wi-Fi interface ------> openSuse machine ------> other box
External IP 192.168.1.x 10.0.0.x
In the "other box" (the wired one) it's default gateway needs to be 10.0.0.1.
The openSuse machine (acting as a router) needs to have a static route via
eth0 to 10.0.0.x and its default gateway set as the wifi router address on
192.168.1.1.
The default route should also be via 192.168.1.1. The wifi router may need a
static route to 10.0.0.x via 192.168.1.x (the openSuse machine's ip address)
and it's default route should be via the ISP's gateway address.
There is probably little point in using DHCP unless you regularly have other
machines connecting to the network. Routing will be much easier to set up if
you use static ip's.
After making changes you should restart your network (/etc/rc.d/network
restart) which will flush the route and arp caches and get things off on the
right foot. Do that after making changes and before testing.
Hope this is helpful.
--
===================================================
Rodney Baker VK5ZTV
rodney.baker@xxxxxxxxxxxx
===================================================
If this is timesharing, give me my share right now.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] dhcp server forwarded with wifi
- From: Chris H
- [opensuse] dhcp server forwarded with wifi
- Prev by Date: Re: [opensuse] /bin/rm: Argument list too long
- Next by Date: Re: [opensuse] USB Audio error after Kernel update, openSuSe 10.3!
- Previous by thread: Re: [opensuse] dhcp server forwarded with wifi
- Next by thread: Re: [opensuse] dhcp server forwarded with wifi
- Index(es):
Relevant Pages
|