Sponsored Content
Full Discussion: Routing between two LAN
Top Forums UNIX for Dummies Questions & Answers Routing between two LAN Post 6524 by haha25 on Thursday 6th of September 2001 06:36:50 AM
Old 09-06-2001
It seems that u need a router or gateway to connect ur two lans.
I don't know how to setup a UNIX box as a gateway, but i ever did it in a windows.
In ur case, Lan1 is connected to internet through router and set NAT in the router or fireware.
Lan2 is another lan which u want to connect to internet.
U can setup a windows with two nics, lets call it Gateway. First nic is nicA, the second one is nicB.
Connect nicA in lan1, assign it the ip address and default gateway of lan1.
Connect nicB in lan2, assign it the ip address of lan2, leave the default gateway blank.
Install Winroute in ur Gateway, inside Winroute, enable NAT in nicA.
Set all other computers in lan2 to use the ip address of nicB as their default gateway.
Then all computers in lan2 can connect internet through the Gateway.


I am very interesting in how to setup a UNIX box as a gateway and enable NAT, any one can give me an example? Thanks
 

10 More Discussions You Might Find Interesting

1. Solaris

Wireles Lan...

Someone know how to configure a Wireles NetWork Card (PCI Adapter) on Solaris 10 OS? After install the correct driver, what must i have to do? I´m a client desktop and i´m obrigatory to put an IP to get conection whith Server... Thanks... Help me please... (0 Replies)
Discussion started by: marpin
0 Replies

2. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

3. UNIX for Dummies Questions & Answers

lan setting

heyyy im using ferdora 7 ...but systems on my lan have windos xp ..so im able to access those systems but they r not can u help me out.... (1 Reply)
Discussion started by: mightypp.nits
1 Replies

4. Linux

lan help

iam using open suse 10.3 in dual boot with windows internet is through Lan(ethernet) in windows by entering below data in Lan properties net is coming the information is bellow ip 10.2.45.67 subnet 255.255.0.0 default gate way 10.1.1.4... (3 Replies)
Discussion started by: seshumohan
3 Replies

5. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

6. Red Hat

Different hostnames with reboot while lan cable, no lan cable

I am facing strange problem regarding hostname on my Linux(2.6.18-164.el5xen x86_64 GNU/Linux), the hostname changes if reboot with lan cable and with NO lan cable Reboot with lan cable: The hostname is ubunut Unable to connect Oracle database using sqlplus some times database is not... (2 Replies)
Discussion started by: LinuxLearner
2 Replies

7. IP Networking

lan

how can i make lan between two or more computers having linux fedora as os...? (1 Reply)
Discussion started by: Ravi Kumar Mish
1 Replies

8. Fedora

about lan

how can i lan between two or more computers having linux fedora as os? (1 Reply)
Discussion started by: Ravi Kumar Mish
1 Replies

9. IP Networking

Routing traffic problem between 3G and Office Lan Network

Hi, I would like to ask some networking solution regarding my work LAN and 3G usb network problem. I want to route my internet traffic to the 3G network and sometimes connect to some of my work network for ssh to configure some workstation or print something. Currently my problem is i can't... (0 Replies)
Discussion started by: jao_madn
0 Replies

10. UNIX for Dummies Questions & Answers

Routing issue - local vs LAN

hi guys suse 11 SP1 x64 I have a server (4 NIC ports 192.168.100.100-103) that connects point to point to a storage device (same thing 4 ports 192.168.110.100-113) but this server connects to normal LAN 10.6.100.x - gateway 10.6.100.1 the issue is when testing connectivity to the storage... (7 Replies)
Discussion started by: karlochacon
7 Replies
natutil(8)						    BSD System Manager's Manual 						natutil(8)

NAME
natutil -- Query and configure supported Network Address Translation (NAT) devices SYNOPSIS
natutil [-vx] [-a auth] [-n name] {-1 | -d | -m | -s | -i | -L} natutil [-vx] [-a auth] [-n name] {-t | -u} {-T | -U} -p ports DESCRIPTION
natutil uses the ACP protocol to detect, configure, and extract status information from Internet gateway devices (IGDs) (such as AirPort Base Stations) on the local network. Since most IGDs provide Network Address Translation (NAT) service, they are often interchangably referred to as "NAT devices" or simply "NATs". The first synopsis line (with the exception of -L) returns various information from NAT devices. The second invocation modifies settings on the device. After modifying settings, AirPort Base Stations must be rebooted for the changes to take effect. ( servermgrd(8) also reboots the AirPort Base Station when it modifies port mappings.) OPTIONS
The following options / commands are available: -1 Only return data if the IGD found is also our current gateway. [AirPort only] Will only return if this base station can be autocon- figured -a auth [AirPort only] The authentication string to use when communicating with a device protected with a password other than the default "public". Used mostly for scripted operation. Use -i to get the authentication string interactively. -i Get the authentication string interactively. This preferred over -a for security reasons. -d Reports the IGDs (Internet Gateway Devices) that were found during the discovery. -m Retrieves the port mapping table from the NAT. -n name The prefix of the targeted NAT device's name (useful in a LAN with multiple NAT devices). -p ports A comma-separated list of the ports to tap or untap. Must be used with -t or -u. -s Retrieves the WAN & LAN status and configuration from the IGD. -t Configures the NAT to forward the given ports to this machine. Requires -p and either -T or -U. -u Removes the given ports from the NAT's port forwarding rules. Requires -p and either -T or -U. -v Verbose output. Provides progress and status information on standard output. -x XML output. This option provides the most information. -L [AirPort only] Convert existing DHCP lease into a static reservation so the host will receive the same IP address after each reboot. -T Ports will be tapped / untapped for the TCP protocol. Must be used with -t or -u. -U Ports will be tapped / untapped for the UDP protocol. Must be used with -t or -u. SEE ALSO
ifconfig(8), ipconfig(8) Mac OS X Server 10.5 July 23, 2007 Mac OS X Server 10.5
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy