Re: Proxy ARP with Linux
- From: "Tom" <tomlobato@xxxxxxxxx>
- Date: 27 Apr 2006 08:02:13 -0700
Internet ------ | eth0-LINUX-eth1 | ------LAN
10.0.0.128/26 192.168.0.0/24
eth0=10.0.0.130
eth1=192.168.0.1
eth1:0=10.0.0.130
This script worked:
##
net_ext="10.0.0.128/8"
if_ext="eth0"
if_int="eth1"
ip_if_int="10.0.0.130"
ip_client="10.0.0.131" # Laptop
ifconfig $if_int:0 $ip_if_int up
echo 1 > /proc/sys/net/ipv4/conf/$if_int/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/$if_ext/proxy_arp
ip ro del $net_ext dev $if_int
ip ro del $net_ext dev $if_ext
ip ro add $ip_client dev $if_int
ip ro add $net_ext dev $if_ext
##
Thank you =)
Tom
.
- References:
- Proxy ARP with Linux
- From: Tom
- Re: Proxy ARP with Linux
- From: Tom
- Proxy ARP with Linux
- Prev by Date: Re: 2 NIC in same Server
- Next by Date: IP aliases and iptables forwarding
- Previous by thread: Re: Proxy ARP with Linux
- Next by thread: help on broadcast data lost in linux tcp/ip stack
- Index(es):