Find the answer to your Linux question:
Results 1 to 2 of 2
I want to use a Linux box to bridge 2 etherogenous networks. Network 1 (eth0): The Internet Network 2 (eth1): An Ethernet segment where everybody could plug his computer. Don't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    1

    Can I use proxy-arp and NAT to route an "alien" computer to the Internet?


    I want to use a Linux box to bridge 2 etherogenous networks.

    Network 1 (eth0): The Internet
    Network 2 (eth1): An Ethernet segment where everybody could plug his computer. Don't even think of subnets...

    I want to allow computers connected to Network 2 to initiate requests to the Internet (browsing...).

    Of course, I can't figure out what is the IP address of a computer plugged on Network 2. If that computer is configured to use DHCP, I can provide it with all the parameters to route to the Network 1. If that computer uses a static IP address, I imagine to use proxy-arp to answer to that computer the MAC address of the Linux box, as its gateway. Then, I could use NAT to let him access the Internet.

    Can I consider such a scenario? What is needed to accomplish this?
    ================================================== ===
    I have already set:
    echo "1" > /proc/sys/net/ipv4/conf/eth1/proxy_arp
    arp -i eth1 -s 172.16.14.1 00:E0:4C:B0:1B:A5 pub
    where:
    IP_eth1=172.16.14.1
    MAC_eth1=00:E0:4C:B0:1B:A5
    ================================================== ===

    Thanks,


    mson77

  2. #2
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •