Re: [opensuse] dhcp server forwarded with wifi



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



Relevant Pages

  • Re: [SLE] connection redundancy
    ... which is the router just this side of the ... >>because it's own gateway is still up. ... You'll also need three network cards to put into this Linux box. ... your internal LAN can route packets to the Internet. ...
    (SuSE)
  • Re: Networking between Irix and Osx
    ... Is your router a DHCP server? ... My router is a DHCP server and my G5 was already configured to ... keep networking information (ip, dns,etc.) from it. ... In the panel Modify Network Settings on Iris, i also try to write the ...
    (comp.sys.sgi.admin)
  • Re: Problem with IP Masquerade + routed internal network (pretty newbie question)
    ... The network looks like this: ... > other way to define routes other than typing route add... ... If you have a proper router set up, each box on each subnet should only ... would route everything to our factory WAN over frame relay. ...
    (comp.os.linux.networking)
  • Re: please advise - problem with routing
    ... and a network is a very important distinction in IP address configuration. ... you show that the 192.168.1.0/24 subnet has two devices ... ROUTE PRINT on NT4 ... ROUTE PRINT on router ...
    (microsoft.public.windows.server.networking)
  • Re: XP SP2 cannot contact DHCP after a restart
    ... We have a private LAN, which connected to a router, and it connected to the ... Here is my network breakdown: ... gateway, dhcp server 192.168.1.2 ... Your LAN includes a DHCP server which assigns dynamic settings (including IP ...
    (microsoft.public.windowsxp.network_web)