Simple application of transparent gateway Proxyarp on APN

xiaoxiao2021-03-06  70

Original network LAN -------------------------------- WAN192.168.32.0 / 24 192.168.32.254GW: 192.168 .32.254

Today's network LAN ---------------- APN ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---- WAN192.168.32.0 / 24 192.168.32.0 / 24 192.168.32.250 192.168.32.254GW: 192.168.32.254 ETH0 LAN, Eth1 The IP of the IP of Router Eth0 and Eth1 GW is 192.168.32.254

As the APN access network, and set IP and GW will generate the following route Destination Gateway Genmask Flags Metric Ref Usef Use192.168.32.250 0.0.0.0 255.255.255.255 UH 0 0 0.0.0.0 255.255.255.255 UH 0 0 0 Eth0192.168.32.0 0.0.0.0 255.255.255.0 U 0 0 0 Eth0192.168.32.0 0.0.0.0 255.255.255.0 U 0 0 0 Eth1127.0.0 0.0.0.0 255.0.0 U 0 0 0 LO0 .0.0.0 192.168.32.254 0.0.0.0 UG 0 0 0 Eth1

Making startup scripts as follows #vi /etc/rc3.d/s89proxyarpecho 1> / proc / sys / net / ipv4 / ip_forwardecho 1> / proc / sys / net / ipv4 / conf / eth0 / proxy_arpecho 1> / proc / sys / net / IPv4 / conf / eth1 / proxy_arp / usr / sbin / ip route del 192.168.32.0/24 dev eth1 / usr / sbin / ip route add 192.168.32.0/24 dev eth0 / usr / sbin / ip route add 192.168.32.254 dev Eth1

#CHMOD 755 / Etc/rc3.d/s89proxyarp#mysys save sdf /etc/rc3.d/s89proxyarp

After routing the set as follows Destination Gateway Genmask Flags Metric Ref UseIface192.168.32.250 0.0.0.0 255.255.255.255 UH 0 0 0 eth1192.168.32.250 0.0.0.0 255.255.255.255 UH 0 0 0 eth0192.168.32.0 0.0.0.0 255.255.255.0 U 0 0 0 Eth0192.168.32.254 0.0.0.0 255.255.255.255 U 0 0 0 Eth1127.0.0.0 0.0.0 255.0.0 0.0.0.0.0.0.0 192.168.32.254 0.0.0.0 UG 0 0 0 Eth1 Set the effect of the gateway in the MS system: 1. No gateway ............................... Address to the address other than this network 2. The gateway is set to own ................................................................................................................................................................................................................................................................................................................................................................................. 3. The gateway is set to the router address ................ Ordinary mode, PC ARP interpret the router address, then cross-network segment data package transfire 4. The gateway is set to unused books Network segment address .... normal mode, PC ARP interpret the router address, failed, unable to across network segments 5. The gateway is set to non-this network segment address ............. PROXY ARP, Any address sent ARP request, router response

转载请注明原文地址:https://www.9cbs.com/read-87159.html

New Post(0)