Article View: comp.os.linux.networking
Article #393Re: how to set up a 192.168.xxx.xxx network next to existing network
From: ronnie
Date: Tue, 30 Jul 2002 11:45
Date: Tue, 30 Jul 2002 11:45
87 lines
4343 bytes
4343 bytes
test "hugo" <hugo@fractalgraphics.com.au> ???????:3CF4400C.D16FE45C@fractalgraphics.com.au... > Hi > > I received a useful reply on how to set up a 192.168.xxx.xxx network > next to my existing one, but I am still not quite sure on how to > implement the changes. Aor my gateway and router I am running linux 6.2 > (kernel 2.4.2-2) with iptables-1.2.1a-1 and iproute-2.2.4-10. I have > received instructions from Jerzy Jamrozy, and below are the answers he > gives and the further questions I have: > > Jerzy Jamrozy wrote: > > > > Hi, > > > > The thing is very simple.. do not try to complicate it too much :) > > 1) On your gateway you should have two interfaces: one with address in your > > old subnet, the other with address in your new address, e.g. 192.168.0.1 > > mask 255.255.0.0. > > Where do I add the information for the second interface? On my linux > machine, do I simply add another gateway entry in the > /etc/sysconfig/network file by adding a line: > > GATEWAY=192.168.0.1 > > > 2) define a NAT (masquarade) on the 192.168 network - you have to do that > > since 192.168 netwok can not be seen from the internet > > Can someone tell me where to add the requisite information under linux > to define a NAT? I am using IP tables and I have a firewall script. I > think I may have to put a line in my firewall script, something like: > > iptables -append FORWARD -i eth0 204.49.23.64/26 -dst 192.168.0.0/24 -j > MASQ > > Would this both forward as well as masquerade to 192.168.0.0/24? > > > 3) enable IP forwarding > > Hopefully the above line takes care of that? Can someone correct that > line if it is wrong? > > > 4) setup a separate DHCP on your gateway - just for 192.168 machines with > > def. gateway set to 192.168.0.1 > > Do I have to set up the DHCP on the gateway? I was hoping I could set it > up on one of my servers, then have make it so that the server has an IP > address on the old as well as on the new network. > > > 5) voila.. i think.. ;) > > > > J.J. > > If someone can help me with the details, that would be tremendously > appreciated. > > Thanks > > Hugo > > -- > Dr Hugo Bouckaert > R&D Support Engineer/Systems Administrator > > Fractal Graphics > 57 Havelock St > West Perth, WA 6005 > PO Box 1675, West Perth 6872 > > Ph: 61 08 9211 6000 > Fax: 61 08 9226 1299 > > www.fractalgraphics.com.au > > ------------------------------------------------------------------------ > This email and any attachments may be confidential or legally > privileged. If you received this message in error or are not the > intended recipient, you should destroy the e-mail message and any > attachments or copies, and you are prohibited from retaining, > distributing, disclosing or using any information contained herein. > Please inform us of the erroneous delivery by return e-mail. Thank you > for your cooperation.
Technical Details
Message-ID:
<3d467c57$1@newsgate.hknet.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!ctu-gate!news.nctu.edu.tw!newsgate.cuhk.edu.hk!cuhk-bullish!newsgate.hknet.com!not-for-mailReferences:
<3CF4400C.D16FE45C@fractalgraphics.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4ee5,5a9a9edbaac586f3 X-Google-Attributes: gidf4ee5,public X-Google-Thread: 105af6,5a9a9edbaac586f3 X-Google-Attributes: gid105af6,public X-Google-Thread: 108a34,5a9a9edbaac586f3 X-Google-Attributes: gid108a34,public X-Google-Thread: 10669a,5a9a9edbaac586f3 X-Google-Attributes: gid10669a,public X-Google-ArrivalTime: 2002-07-30 04:45:30 PST From: "ronnie" <siupak_ng@yahoo.com> Newsgroups: comp.os.linux.networking,be.comp.networking,comp.os.ms-windows.networking.misc,microsoft.public.win98.networking References: <3CF4400C.D16FE45C@fractalgraphics.com.au> Subject: Re: how to set up a 192.168.xxx.xxx network next to existing network Date: Tue, 30 Jul 2002 19:45:37 +0800 Lines: 89 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: vp161001.kln.uac1.hknet.com X-Original-NNTP-Posting-Host: vp161001.kln.uac1.hknet.com Message-ID: <3d467c57$1@newsgate.hknet.com> X-Trace: newsgate.hknet.com 1028029527 vp161001.kln.uac1.hknet.com (30 Jul 2002 19:45:27 +0800) X-Original-Trace: 30 Jul 2002 19:45:27 +0800, vp161001.kln.uac1.hknet.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!ctu-gate!news.nctu.edu.tw!newsgate.cuhk.edu.hk!cuhk-bullish!newsgate.hknet.com!not-for-mail