In the case where you have two (or more) physical networks that you want to work as if a single physical network:
Code:
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
(What h.h. mentioned.)
If "all" is not suitable for your physical configuration -
explore the file tree below /proc/sys/net/ipv4/**
You have fairly fine-grained controls in that tree.
A worked example (Here wan0 is the NIC on the physical cabling to the wireless networking equipment, lan0 is the NIC on the physical cabling to the wired equipment, mod0 is the cabling to the modem):
Using 'ip' - which your Kindle probably does not have unless you installed the build of 'ip' that twobob posted - -
(Your address ranges will be different, but principles are the same. These NICs are renamed from the kernel default names in udev rules.)
Code:
# Local lan - 1Gbs cabling
/bin/ip address flush dev lan0
/bin/ip -f inet address add 169.254.0.4/22 brd + dev lan0
#
# plus the HP printer link - (this could be the Kindle or any single-address device)
/bin/ip -f inet address add 169.254.0.4 peer 169.254.57.36 dev lan0
/bin/ip link set up dev lan0
# Local wireless - cabling to access points
/bin/ip address flush dev wan0
# Dynamically assigned ip range for wireless connects
/bin/ip -f inet address add 169.254.0.225/27 dev wan0
# Scattering of point-to-point control panel links
# wrt160
/bin/ip -f inet address add 169.254.0.225 peer 169.254.0.40 dev wan0
# dwl900
/bin/ip -f inet address add 169.254.0.225 peer 169.254.0.50 dev wan0
# befw11s5
/bin/ip -f inet address add 169.254.0.225 peer 169.254.0.70 dev wan0
/bin/ip link set up dev wan0
# World - is on another NIC, to an adsl modem, config'd as a media bridge only
/bin/ip address flush dev mod0
# put up the aDSL control panel
/bin/ip -f inet address add 169.254.2.2 peer 169.254.2.1 dev mod0
# crank up the firewall on World
/etc/network/dhcp.bash
#
/bin/ip link set up dev mod0
# ask Tel-Co for an IPv4 address (dhcp client)
/sbin/dhclient -4 -v -pf /var/run/dhclient.mod0.pid -lf /var/lib/dhcp/dhclient.mod0.leases mod0
# that should move to the background once it is done
# None of the equipment running in the "Wifi range" is allowed to contact Amazon here:
# Put a full block on Chatty Kathy's attempts to call home (note: will not work on a Kindle, kernel isn't configured for this):
/bin/ip rule add from 169.254.0.225/27 to 207.171.160.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 107.20.0.0/14 prohibit
/bin/ip rule add from 169.254.0.225/27 to 184.72.0.0/15 prohibit
/bin/ip rule add from 169.254.0.225/27 to 204.246.160.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 205.251.192.0/18 prohibit
/bin/ip rule add from 169.254.0.225/27 to 72.21.192.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 50.16.0.0/14 prohibit
/bin/ip rule add from 169.254.0.225/27 to 23.0.0.0/12 prohibit
# my gateway machine runs some local network services/servers:
# Start local services after network setup
SERVICES="bind9 ssh ntp"
for i in $SERVICES; do
[ -x /etc/init.d/"$i" ] && /etc/init.d/"$i" start >/dev/null 2>&1
# Ok - its soup.
# Does all of that work ?
# root@Microknoppix:/etc# uptime
# 19:04:56 up 431 days, 3:37, 3 users, load average: 0.00, 0.01, 0.05
# ah, yeah, it works.