Host file for 2 LAN's

Hello
I have 2 LAN's at home:
LAN1 has a iMacG5 and has a connection to the internet (192.168.1.xxx)
LAN2 has a MacBookPro and 2 printers connected to it (192.168.2.xxx)
LAN1 connects to LAN2 using a Belkin router
Devices in LAN1 and LAN2 can both access the internet without problem both by using the internet connection present in LAN1
Devices in LAN2 can ping devices in LAN1
My issue:
Devices in LAN1 can not ping devices in LAN2, therefore no networking is possible nor usage of the printers in LAN2 by devices from LAN1
How do I resolve this? In a windows world I would edit a host file, how is it done in MAC OSX 10.4.
Thank you in advance for any help. Best regards

Devices in LAN1 can not ping devices in LAN2, therefore no networking is possible nor usage of the printers in LAN2 by devices from LAN1
Saying that you cannot ping does not necessarily mean that you cannot use other services. It is possible for the router to block ICMP (ping) while still permitting other traffic.
It may be the case, I just wanted to clarify that ICMP is not an absolute test.
My guess as to the problem is that the belkin router is actually performing NAT so that traffic from LAN2 is getting translated into a LAN1-based IP address as it passes through the Belkin. Since devices in LAN1 see a LAN1-based IP address they can reply and the Belkin does the work of re-translating the connection to the LAN2 device.
However, this does not work the other way around. It's the same issue with whatever device you have connecting you to the internet - it takes the LAN1 traffic and translates it into real-world IP addresses and passes the response back, but no one on the outside world can get to the LAN1 devices directly (unless you setup port forwarding to tell the router what external traffic to let in, and what to do with it).
Your options really are to either
1) setup port forwarding on the router to allow traffic to allow traffic from LAN1 to LAN2
2) Do not use NAT on the intermediate router (if it's supported) and use static routes between LAN1 and LAN2
3) Unify the network so that all the devices are on the same network, without an intermediate router
#3 is probably easiest, but I'm guessing you set it up this way for a reason.

Similar Messages

  • Help.  I don't have a host file for textedit anymore?

    Hello everyone.  I just recently got my iMac.
    My younger brother was messing with it, which I thought was fine.  After I got back onto the computer I accidentally pasted his latest clipboard item onto an email... apparently it was this:
    sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
    I know enough about osx to know that sudo is a command for terminal, but I'm a bit worried about what happened after I put the comman into terminal.
    It DOESN'T EXIST at all.
    I don't know what could've happened and I don't really see why textedit would need a host file, but I was wondering if there was a way to correct the problem?  I know that host files are pretty important, but I'm not exactly sure for what (or what they even do since I'm guessing it's only to block websites).
    Any advice?  Your help would be greatly appreciated.  I'm not sure what the file is supposed to be, but anyway to get it back/replace it would be amazing.
    Thanks in advance.

    How...thoughtul of him.  I'm sure you're already thinking of ways to repay him for his efforts....
    Anyway, it's a pretty easy fix.  In the Terminal, type or paste:
    sudo nano /etc/hosts
    Paste this into Nano:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1          localhost
    255.255.255.255          broadcasthost
    ::1             localhost
    fe80::1%lo0          localhost
    Then hit CTRL-X and Y to save when prompted.

  • What's the equivalent to a host file for iPad 3?

    Yesterday, I noticed that I couldn't browse to any pages or web apps on my own local web server with my new iPad and Safari. Also, when I looked at web mashups on my rented webserver that used some resources on the web and some from my local web server,  the resources from my local web server didn't show up. 
    Then late in the day, I remembered that I had fixed this problem before on my office PCs.  Back last year, I abandoned a rented T1 line between my office and headquarters beacuse of cost and reliability,  and got my office internet provider switched over to Charter.  To connect back to the office to share files, and remote login to servers, I set up a VPN. Headquarters IT wanted to route all my traffic to inside their IronGate, then route my internet traffic out. But Headquarters IT couldn't figure out how to pass DNS back out of their firewall so it wasn't working. I told HQ IT let's set up the VPN so just traffic heading into headquarters is directed through the VPN, and the internet traffic from my office could be just be handled by Charter. Since they couldn't make it work any other way, they had to agree. I just had to add one line in the host file of each PC that needs browser access to our web server  that resolves the host name of our local web server to an IP address that is valid inside our NAD LAN.
    However, I don't know yet how to add this name resolution to the iPad. The problem though is that I'll have to reverse this host name resolution when I'm out of our LAN, because accessing our web server by host name works perfectly when I'm on a differnt WI-Fi network or if I turn Wi-Fi off. 

    There isn't one.

  • Syncing Files for LAN on one drive

    Is it possible to set an external harddrive to handle all the files on my home network? I am getting copies of files that started on one computer and then were accessed and modified and saved on another computer (laptop). Now, of course, I have a mess. Is there anyway to go from here and set up a network drive where all is accessed from one drive and saved to one drive?
    If so, how?
    Paul

    Well, if you have an external drive, e.g. network accessible storage (NAS), you could find files sorted by "last modified" date in your Documents folder, and just manually drag them into the appropriate folder on the NAS. You'd know when you disconnected last so it'd be easy enough to get into the habit of doing this after a trip or whatever.
    IF you are looking for an automated solution, if you were comfortable with Terminal.app I'd say write a unix bash script that relied heavily on the rsync command. But since you're not, a back-up solution like back-to-my-mac or iDisk would seem to me to be a candidate, maybe. You might try searching macupdate.com or versiontracker.com for a freeware/donationware/shareware product, but I'm personally not familiar with any such product myself, though.

  • Cannot use hosts file with 10.5.1

    Hi,
    Not sure when this problem creeped in, I think it is since my upgrade to Leopard.
    The problem is that whatever I put into my /etc/hosts file is not used. Restards, cache flushes do not help.
    If I have in the hosts file
    xx.xx.xx.xx anotherHost
    nslookup anotherHost fails
    What I think is the root cause is that the resolver is hardwired only to DNS and does not read the hosts file. Unfortunatelly I cannot find a way how to change the resolving order in Leopard. lookupd is gone and was replaced by what ?
    Reproducable on colleague's macbook.
    So short summary :
    * how do I make my resolver use hosts file
    * how do I control the lookup sequence of my resolver
    Regards,
    Georgi

    As described by others NSLOOKUP looks up onto the name server not the host file
    Samba instead would use your host file first then an NSLOOKUP then WINS and finally broadcast
    So what kind of service do you want to use your host file for?

  • HOSTS file does not retain changes between boots

    I make a number of changes to my HOSTS file for various reasons. Lately, though, I've noticed that attempts to alter the HOSTS file are reverted automatically for some reason.
    I modify my HOSTS file by using the command at the terminal: sudo nano /private/etc/hosts
    After editing the HOSTS file, I will save while exiting with control+X. At this point the changes are retained. Looking at /private/etc/hosts or /etc/hosts will show the changes I've made. Pining the domains I've modified will show the relevant changes.
    Everything is working at this point.
    However, at some point after a reboot, the HOSTS file will revert all of my changes without my asking. Looking at the HOSTS file will show it in the state it was before I made any changes at all, despite the file being modified and saved in the previous session.
    Could anyone please advise as to how I can permenantly modify my HOSTS file? Again, I AM editing the file as root, and I AM saving the file. It works fine until reboot.
    Thanks for any help.

    With Lions should be fine editing the standard /etc/hosts file
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1           localhost
    add here your IPv4 hosts list
    255.255.255.255     broadcasthost
    ::1                 localhost
    fe80::1%lo0         localhost

  • Simulate GSS in local host file

    Hi,
    I would like to test out the GSS without publishing it on the internet DNS.
    So the only way I think is to update the local host file (Win XP). What would be an equivalent entry in local host file for the below in Internet DNS
    abc.com IN NS gss.abc.com
    gss.abc.com IN A 22.11.22.11
    Mapping a domain/hostname to IP is straight foward, but how can an NS record be added.
    Thanks.

    Thanks. But I would like to avoid DNS effort and just manage with the local host file. So I would like to know whether it is possible to enter NS record in the local host file.
    If I were to ask for hostname abc.com, the process should be
    1. Check local host file for abc.com
    2. abc.com is pointed to NS record in local host file.
    3. The Name Server has a IP mapping in the local host file.
    All of the above without any DNS setup. A local host file at the moment is like
    abc.com 22.11.22.11
    which I want to change to
    abc.com IN NS gss1.abc.com
    gss1.abc.com 22.11.22.10 (GSS IP)
    How can I acheive 'abc.com IN NS gss1.abc.com' in local host file.

  • Edit hosts file in WRVS4400N

    Hi all,
    Just wondering if there's a hosts file (for setting DNS name to IP address association) in Linksys routers, specifically the WRVS4400N, that can be edited? I'm living in an area where certain DNS entries are high-jacked, such as dyndns.org, and as such I can't use DDNS unless I set the host's IP address manually - ideally I'd like the Linksys router to do DDNS.
    Thanks in advance!
    Mike.

    if your internet provider is messing around with the dns service that it provides then stop using their dns service completely and use OpenDNS instead
    http://www.opendns.com
    basically, this means using the publicly available dns servers from OpenDNS (see below) instead of the ones that your isp has.
    208.67.222.222 and
    208.67.220.220
    Fill those in in the router wan connection setup page -> dns servers to use fields, give the router a normal reboot (just to make sure it uses those... but sometimes is not needed) and you're all set to go.
    Message Edited by Ady on 2009-Jan-08 12:08 PM

  • How could a java process bypass etc\hosts file while doing dns lookup ?

    Hi,
    I am developing a java web proxy and developer tool [http://www.tcpcatcher.org|http://www.tcpcatcher.org] .
    Right now it is working as a none transparent web proxy.
    In some situation and for some hosts, I would like to turn it into a transparent web proxy.
    Suppose, user's browser and java proxy are running on same host (typically on localhost). An entry is added in etc\hosts file, for example:
    127.0.0.1 google.com
    So without any change in browser config , if user visits google.com with its browser , http request is received at proxy level.
    Now my proxy has to get the actual ip address of google.com bypassing the etc\hosts file (right now the proxy is doing a loop on itself).
    Any idea how this could be achieved ?
    Am I searching in wrong direction ?
    thanks !

    This is a shot in the dark, but I'll try anyway.
    Take a look at dnsjava (open source, I never played with it).
    My understanding is that using this to resolve names instead of normal Java API's would allow you to bypass etc/hosts in the java code
    (see [http://old.nabble.com/DNS-Resolve-from-hosts-file-first-then-DNS-Server-td15431381.html]).

  • Creating a Host file record between two trusted domains?

    In each domain DNS, create a conditional forwarder for the other domain DNS server. That will resolve the issue. Keeping track of host files is an easy thing to forget and drop off the radar.

    I've got two domains that end users RDP between. Recently, we ran into a problem with a .bat file that was used to create and map a shared drive (for scanned images) failing. I speaking with the software vendor who created the .bat file, they suggested that I make an entry in the Host file for the specific end user who is having this problem since the issue seems to be DNS related (can not resolve the computer name to the IP address from the server that is being RDP's into). When I attempt to create the A record, it tags the home domain onto the end of the FQDN.Like this,Name: end-user-pc.domain.orgFQDN: end-user-pc.domain.org.hostdomain.comIP address: 10.0.3.3Where the domain that the end user's desktop resides is domain.org and the domina that the server being remote'd into is hostdomain.com.The hostdomain.com server is 08R2 and the...
    This topic first appeared in the Spiceworks Community

  • Hosting files with Creative Cloud webBasics

    I have Creative Cloud webBasics, can I host files for users to download through my Business Catalyst web site? or will I have to upgrade to a paid plan?

    Anyone who signs up for the Creative Cloud can share files. You do not need to be a Creative Cloud member to view a shared file, only to do the sharing.
    Adobe Bridge does not see the files unless you use Creative Cloud Connection to sync the files to your local computer.
    There is no version control yet. It is on our road map.
    Being in Australia should not be an issue, but I will let other customers from Australia comment.

  • Editing etc\hosts file on windows xp for apps. problem post installation.

    Hi all,
    I was able to install 11.5.10.2 apps on my win xp prof machine. During that process I had to edit the etc/hosts file in windows directory as a work around for that domain name field during installation. Also added the primary DNS suffix as 'suneel.com' . I gave the domain name as 'suneel.com' during installation. The RapidWiz is taking localhost as the system name and referring to this system as localhost.suneel.com, though the actual system name is 'websoft-xp' .
    The host file on Apps machine has the following entries:
    127.0.0.1 localhost
    127.0.0.1 localhost.suneel.com suneel.com
    127.0.0.1 websoft-xp.suneel.com
    So when I connect to apps login server from other systems in lan, I've to edit their hosts file and add an entry for localhost.suneel.com to point to its ip address or else the apps throws an error after logging in as operations/welcome using a different url say 192.168.1.4:8000 . Is there a way to get around this issue?
    More over I'm not able connect to VIS db from other systems. The oracle clients give an error 'No listner' at this address. (The original listener was listening at localhost.suneel.com:1521). So I tried to create a new listerner from Net Manager that actually listens at websoft-xp (the real system name) but it throws me an error 'A valid log file is required' while saving the network configuration and prevents me from saving the network configuration.
    Did I do something wrong with the hosts file during installation or did i miss any entries in that file thats causing this? Any solutions for the above problems will be appreciated?
    Thanks
    Suneel
    Message was edited by:
    suneelgv

    Well I tried that option but for some reason it didn't work for me. It kept giving the tns:connection closed error. Then I searched in metalink and found this note : Note:333158.1
    It suggested setting tcp.validnode_checking = no
    in sqlnet.ora. in
    F:\oracle\visdb\9.2.0\network\admin\VIS_websoft-xp
    And it works. Hope this helps someone facing a similar problem. Good luck.
    BTW how do I run autoconfig?
    Thanks,
    Suneel Gundlapalli

  • Update hosts file and Change proxy settings for all users on Mac

    I am in a large environment with many Mac users. We have a Windows based proxy server that we are switching over within a few weeks. So far we are manually having to go to each Mac and change the proxy settings under the users account. This is a very long and painstaking process as users are on vacation etc. and our cutoff date is fast approaching for the old proxy.
    we also are having to log into each workstation as administrator go into the terminal and so sudo passwd root then change the password then do sudo vi /etc/hosts to edit the hosts file.
    Is there a way to change the proxy server setting for safari and firefox globally without having to log in as each user on the Mac ?
    Or is there an automated way through a script that the users can run ?
    These macs authenticate to active directory. They do not have a mac server but I was told to post this question here versus the desktop area.

    Most browsers include an [automatic proxy configuration (PAC) mechanism|http://en.wikipedia.org/wiki/Proxy_auto-config] and the transparent configuration of proxies, and Safari and Firefox are no different here.
    The usual approach here is to have folks visit a site and select the PAC file, or to push the file out. Here is a comfiguration example from [UConn|http://helpdesk.uconn.edu/trouble/proxy/autoprox.html], and another from [Rice|http://proxy.rice.edu/setup.php], and there are others around and visible via Google.
    The [pactester|http://code.google.com/p/pactester> tool might be useful, too.
    If y'all get some DNS entries set up (various web browsers have [Web Proxy Auto Discovery (WPAD)|http://en.wikipedia.org/wiki/WebProxy_AutodiscoveryProtocol], when last I checked [Safari needed a little help|http://www.macosxhints.com/article.php?story=20090711031033128]) and have your firewall raise an appropriate diagnostic page, you won't have to go through this again, either.
    None of this stuff is particularly specific to Mac OS X or to Safari; the PAC stuff is fairly generic, and WPAD is used with various boxes. (Try Safari with WPAD, but you might still need to reference that PAC file. And if you do, using WPAD-compliant naming would probably be a reasonable approach.)
    The hosts files? You're really still using those? Any chance you can get real DNS working? That's a whole lot less work, and now is the time to deploy that; if you're going to mess with everything, then you can use that effort and that requirement to (also) move forward in your networking capabilities.

  • Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    I had the same problem. It fixed itself when I opened Internet Explorer (I don't normally use it). I was opening Support Portal to get some support help, but I'm not sure if it was the page or simply opening IE that did the trick.

  • I want to restore my ipod 4g to ios 6.1.2 but it said error code 3194 i updated itunes and i checked my host file and it won't work Thank you for choosing the Apple Store. If you have any additional questions, please chat us again. You are currently not i

    i want to restore my ipod 4g to ios 6.1.2 but it said error code 3194 i updated itunes and i checked my host file and it won't work and i am running 6.1.5 at the moment

    That's because downgrading is not supported.

Maybe you are looking for